User Tools

Site Tools


gams:the_sum_of_consecutive_four_elements_in_a_vector_should_be_less_than_10

Differences

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

Link to this comparison view

gams:the_sum_of_consecutive_four_elements_in_a_vector_should_be_less_than_10 [2008/10/01 14:40]
support created
gams:the_sum_of_consecutive_four_elements_in_a_vector_should_be_less_than_10 [2008/10/01 14:41] (current)
support
Line 17: Line 17:
 e(i).. sum(iconseq(i,​j),​ x(i)) =l= 10; e(i).. sum(iconseq(i,​j),​ x(i)) =l= 10;
 </​code>​ </​code>​
-Depending if you want your constraint to interpret "​consecutive"​ in a circular manner, you need to replace ''​+''​ in the ''​loop()''​-statement by ''​++''​.+If you want your constraint to interpret "​consecutive"​ in a circular manner, you will have to replace ''​+''​ in the ''​loop''​-statement by ''​++''​.
  
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/the_sum_of_consecutive_four_elements_in_a_vector_should_be_less_than_10.txt ยท Last modified: 2008/10/01 14:41 by support