gams:define_a_static_set_from_1_to_n_1_where_n_is_some_integer_provided_by_the_user_at_the_beginning

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

Both sides previous revision Previous revision | |||

gams:define_a_static_set_from_1_to_n_1_where_n_is_some_integer_provided_by_the_user_at_the_beginning [2015/09/18 12:20] Jarungjit Parnjai |
gams:define_a_static_set_from_1_to_n_1_where_n_is_some_integer_provided_by_the_user_at_the_beginning [2017/09/02 19:06] support |
||
---|---|---|---|

Line 1: | Line 1: | ||

====== How do I define a static set from 1 to N+1, where N is some integer provided by the user at the beginning? ====== | ====== How do I define a static set from 1 to N+1, where N is some integer provided by the user at the beginning? ====== | ||

- | You will have to use the ''eval'' feature, which has been added to GAMS in distribution 147. You can read about it in our [[http://www.gams.com/help/topic/gams.doc/releasenotes/index.html|release notes]]. I also include an example to compute N+1 from N: | + | You will have to use the ''eval'' feature, which has been added to GAMS in distribution 147. I also include an example to compute N+1 from N: |

<code> | <code> | ||

$ontext | $ontext |

IMPRESSUM / LEGAL NOTICE
PRIVACY POLICY
gams/define_a_static_set_from_1_to_n_1_where_n_is_some_integer_provided_by_the_user_at_the_beginning.txt ยท Last modified: 2017/09/02 19:06 by support