loop question

9 views
Skip to first unread message

Tonghui Zhang

unread,
Apr 18, 2015, 9:57:34 AM4/18/15
to am...@googlegroups.com
I have aquestion with a constrains
y[i,j+1]<=y[i,j]
But I don't know how to write it in ampl. anyone can help?

Robert Fourer

unread,
Apr 19, 2015, 8:29:17 PM4/19/15
to am...@googlegroups.com
You can write y[i,j+1] <= y[i,j] in an AMPL constraint, if j takes numbers as values. To get more help, try posting your entire constraint (beginning with "subject to ...") and also the AMPL definitions of the sets, parameters, and variables involved in the constraint.

Bob Fourer
am...@googlegroups.com

=======
Reply all
Reply to author
Forward
0 new messages