You can formulate in a way that manages what you want.
I can think of two ways now.
Mode 1:
Parameter Include/0/;
Equation1()..
Equation2()..
…
EquationToAdd()$(Include=1)..
Model MyModel/all/;
Loop(i,
If( i>=5, Include=1)
Solve MyModel usiong ….);
*** In this example, you create or not the equation “EquationToAdd” based on the condition that Include is 1 or not. If is 0, that equation is not included. If is 1, it is included.
MODE 2:
Equation1()..
Equation2()..
EquationToAdd()..
Model MyModel1/Equation1,Equation2/
Model MyModel2/All/
Loop(i,
If(i<=5, Solve MyModel1…)
If(i>5,Solve MyModel2…));
***In this case you generate 2 models, one with the equation to include and one without it, and you run them discriminatively in according to your condition.
Best Regards
JM
--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.