LoveOptimization
unread,Jun 19, 2011, 6:11:59 PM6/19/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AIMMS - The Modeling System
1) In my optimization model, I have a variable in the form of
X(i,j,t,t-1). When I define the domain index of Variable X as
(i,j,t,t), I encounter an error message saying that index t is
repeated. How can I define variables with repetitive indices?
2) Y(i,t)+Y(j,t-1)-X(i,j,t,t-1)≤1 ∀i,j,t≠1
in the above constraint, i and j represent the same set but as you can
see, i and j get different values for each constraint (i.e. ∀i,j). I
do not know how to define variable Y so that both i and j can be used
when I define the constraint. For example, when I define Y as Y(i,t),
I can not use j for the next Y in the constraint. Moreover, how can I
define t#1 or i=j while defining a constraint both in Index domain and
definition parts?
3) Y(i,t)+Y(j,t-1)-X(i,j,t,d)≤1 ∀i,j,t,d∈{1,2,..,t}
How can I define d∈{1,2,..,t}?
Thank you,