IEA-ETSAP Forum
Modelling Issue with Trade - Printable Version

+- IEA-ETSAP Forum (http://iea-etsap.org/forum)
+-- Forum: Model Generators (http://iea-etsap.org/forum/forumdisplay.php?fid=2)
+--- Forum: TIMES (http://iea-etsap.org/forum/forumdisplay.php?fid=8)
+--- Thread: Modelling Issue with Trade (/showthread.php?tid=148)



Modelling Issue with Trade - vsaini - 10-06-2019

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


RE: Modelling Issue with Trade - Antti-L - 10-06-2019

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.


RE: Modelling Issue with Trade - vsaini - 10-06-2019

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


RE: Modelling Issue with Trade - Antti-L - 10-06-2019

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



RE: Modelling Issue with Trade - vsaini - 10-06-2019

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