Giter Site home page Giter Site logo

times_demo's Introduction

TIMES Demo model

This is a demo model presenting the use of the TIMES model generator.

The demo model (the GAMS input data files specifying the model) is in the subfolder Model. All the input data files are text files, usually generated from a database by a user shell, but they can also be created and edited with any text editor.

The TIMES source code is in the subfolder source (licensed under GPLv3).
The TIMES_Demo model data is in the subfolders model and model-ge (licensed under CC-BY-4.0).

You can run the model with GAMS in the Model subfolder, using the following command:

GAMS rundemo

This demo model is based on the Demo12 model documented in the TIMES documentation available on the ETSAP site TIMES Documentation Part IV and on GitHub TIMES_Documentation.

The demo model runs using the CBC solver which is an open-source mixed integer programming solver working with the COIN-OR LP solver CLP and the COIN-OR Cut generator library Cgl.

times_demo's People

Contributors

antti-l avatar ggiannakidis avatar olejandro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

times_demo's Issues

recursive submodule rather than source folder

Wouldn't it be cleaner if TIMES_Demo would just include TIMES_model as a git submodule? This way one would get automatically all the updates to TIMES_model in TIMES_Demo and it would show that TIMES_Demo/source is nothing else than TIMES_model. TIMES-DK_COMETS does this too.

TIMES_Demo on Linux

When I try to run TIMES_Demo on Linux (with a case sensitive file system) I get problems compiling. The first error is

*===========================================================================================
35915           SUM(RTP_VINTYR(R,V,T,P),(%UPSCAPS%)))$UC_ATTR(R,UC_N,SIDE,'CAP','ONLINE')
****                                     $119   $140,8,37,409
**** LINE     42 BATINCLUDE  /home/mbussieck/tmp/TIMES_MIRO/TIMES_Demo/source/uc_cap.mod

It has all to do that some file are not found in the expected casing and $if exist doesn't do the right thing. I got the model to run by introducing symlinks for all files in source. I created an all upper case and a lower case basename and uppercase extension. Not sure exactly for what files this is required, but all three casings (all lower, all upper, base lower + ext upper) seem necessary. Here is the bash script that does this when executing in the source directory:

for file in *
do 
  EXT=`echo $file | cut -d\. -f2 | tr '[:lower:]' '[:upper:]'`
  BASE=`echo $file | cut -d\. -f1 | tr '[:lower:]' '[:upper:]'`
  base=`echo $file | cut -d\. -f1`
  ln -sf $file $BASE.$EXT
  ln -sf $file $base.$EXT
done

While this is a workaround, I guess it would be much better if this gets fixed. Also not sure if this is a TIMES_Demo or TIMES_Model issues. Probably the latter.

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.