determine the maximum value of a variable

Hi,

I would like to determine the maximum value of a variable, but I need my model to stay linear, so I can not use the command smax.
Anyone know how I can do it?


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hello Sonia,

.up(set1 of variable, set2 of variable, …)=[(set1 of variable, set2 of variable, …)] should work.
The part between brackets is optional. In addition, one could also limit only specific values with a left-sided dollar sign or only allow those defined in your statement with a right-sided dollar sign (and forcing the other elements to be lower than 0). (Search “conditional” in the User Guide for a more elaborate explanation).

regards,
Henry JW Vermue

On Friday, February 1, 2013 5:05:03 PM UTC+1, SoniaCardos wrote:

Hi,

I would like to determine the maximum value of a variable, but I need my model to stay linear, so I can not use the command smax.
Anyone know how I can do it?


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\