Coder Social home page Coder Social logo

etsap-times / times_model Goto Github PK

View Code? Open in Web Editor NEW
95.0 9.0 36.0 1.48 MB

The Integrated MARKAL-EFOM System (TIMES) - a bottom-up optimization model for energy-environment systems

Home Page: https://iea-etsap.org/

License: GNU General Public License v3.0

GAMS 100.00%
energy-system-model optimization-model gams integrated-markal-efom bottom-up-model times

times_model's Issues

saving a copy of _dd_.gdx

In prepxtra.mod a put_utility 'shell' is used to rename the _dd_.gdx file and store it in a different location with a file name that contains some kind of time stamp. This saving of the _dd_.gdx which is created and handled at compile time is done at execution time. Due to GAMS save/restart capabilities the compile and execution phase can happen at very different times and even on different machines. It would be cleaner if the saving of this file is done in the compilation phase of GAMS.

file SCREEN with filename CON

In err_stat.mod the file SCREEN uses file name CON to write to the console. I guess the intention on the SCREEN file is to write messages from TIMES to the GAMS log. This works okay on Windows with lo=1 (the current default). A much better way is to use the empty string as a file name (FILE SCREEN / '' /;). This works platform independent and writes to the GAMS log independent of if this goes to con or /dev/tty, stdout, or a log file.

LICENSE.txt recognised as unknown license by GitHub

@robbiemorrison pointed out elsewhere that Github doesn't seem to recognise the license under which TIMES is released. Since then something has changed (?) and Github now shows both an unknown (for LICENSE.txt) and GPL-3.0 (for COPYING.txt) licenses.
@Antti-L , @ggiannakidis, as far as I understand LICENSE.txt contains both a copyright and a license notice, while the license itself is in COPYING.txt. @Antti-L I guess, LICENSE.txt is also used for the startup notice? Do you think LICENSE.txt should be renamed or the notices it contains should be included elsewhere?

getting started

I cloned the repo, unpacked the zip archive, and started gams with gams maindrv.mod as well gams maindrv.mod r=_times in both cases I get

--- maindrv.mod(23) 2 Mb
--- . setglobs.gms(59) 2 Mb
--- maindrv.mod(43) 2 Mb
***
*** Abort "*** ERRORS IN INPUT DATA/COMPILE ***"
--- maindrv.mod(43) 3 Mb 2 Errors
*** Status: Compilation error(s)
--- Job maindrv.mod Stop 01/21/20 08:17:59 elapsed 0:00:00.018

The first error is about a set j:

 572  SET SOLVESTAT(J) /
****                $120

I did not find a short description how to get the model to run with GAMS. Can someone point me to something like a (quick start) guide.

BTW, for git and pull requests it might be much better to have the source files directly in the repo rather than the source files in a zip archive.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.