User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

gams:conditional_file_include [2007/05/04 12:58] (current)
Line 1: Line 1:
 +====== Conditional file include ======
 +Q:  //I'm trying to optionally include some code into my model. ​ I was thinking this line would work, but it doesn'​t evaluate correctly. ​ Could you please advise? //
 +setglobal isUncertainty 1
 +$if %isUncertainty% == "​1"​ $include ../​uncertainty/​input/​coll10.gms
 +$SetGlobal isUncertainty
 +$if SetGlobal isUncertainty $Include ​
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/conditional_file_include.txt ยท Last modified: 2007/05/04 12:58 (external edit)