Posts: 50
Threads: 15
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Jun 2017
I am working on a case in which I need to run the TIMES model multiple times. The idea is to run TIMES, use a R code to modify one of the excel input files (the file of demand scenarios), access TIMES solution and based on the results, modify excel input files and then run TIMES again. This would be done over and over again, until a convergence criterion is satisfied. There is some way to do this without using the case manager of VEDA-FE every time we want to solve the problem, i.e., there is some way to automate the process?
Thank you!
Posts: 1,058
Threads: 42
Likes Received:
19 in 16 posts
Likes Given: 23
Joined: May 2010
Reputation:
19
18-08-2017, 12:32 AM
(This post was last modified: 18-08-2017, 12:35 AM by AKanudia.)
Here is one way to do it:
1. Check "Create DD Only" option on the Case Manager and click Solve.
2. GAMS_Wrk??? and GAMS_SRCTIMESV??? can be copied to a different computer, if you wish, provided it has GAMS installed on it.
3. Execute VTRUN.CMD (in the GAMS_Wrk??? folder) to launch the TIMES run.
3. Parse the ???.VD file to extract the information you need out of the TIMES run.
4. Edit the .DD file that has information you want to modify for the next TIMES run (demands).
I would avoid the SYNC operation of VEDA in this loop. You may have to do some data processing outside VEDA. For example, if your demands are using GDP as a driver and you are getting these values from a macro model, then you will have to do the demand projection and write it in the DD file in the format expected by the TIMES code.