Posts: 67
Threads: 24
Joined: Jan 2016
Dear Dr. Antti,
Greetings of the day.
Once again, I am struck with a modelling issue in AnwerTIMES. I have attached my query in the document for your reference.
Looking forward for your guidance on this.
Warm Regards
Vinay Saini
Attached Files
Modelling Issue with Export.docx (Size: 112.39 KB / Downloads: 7)
Posts: 391
Threads: 18
Joined: May 2010
vsaini Wrote: Is there any constraint in TIMES that prevents it to achieve a negative objective function?Yes, and likely that's the problem here. See:
http://forum.kanors-emr.org/showthread.php?tid=368
To quickly add the UC_RHS parameter, you could add the following line into the RUN file, before the call for maindrv.mod:
SET UC_N / OBJVAR /; PARAMETER UC_RHS / OBJVAR.N -1 / ;
But you can do it also within the ANSWER shell.
Posts: 67
Threads: 24
Joined: Jan 2016
Dear Dr. Antti,
Thank you for your reply, but I am not sure I followed you on how to work around this in AnswerTIMES.
By "RUNFILE" you mean the to edit in the "Edit Gen File Template" under the RUN Tab on the main window or to "edit the GAMS Control File" while running the Model.
And which parameter to be edited I couldn't locate the SET UC_N / OBJVAR /; PARAMETER UC_RHS in both the files.
Can you please explain more on this.
Regards
Vinay Saini
Posts: 391
Threads: 18
Joined: May 2010
Ah yes, it is the GEN file under ANSWER (=RUN file under VEDA).
You can just add that line into the GEN template, above the call for maindrv:
SET UC_N / OBJVAR /; PARAMETER UC_RHS / OBJVAR.N -1 / ;
* Do the rest.
$BATINCLUDE maindrv.mod mod
Posts: 67
Threads: 24
Joined: Jan 2016
Dear Dr. Antti,
Thank you so much. It worked.
Now the model is utilizing full potential of 15 GW by 2050.
Thank you for always being so supportive.
Warm Regards
Vinay Saini