Hi, I have defined a variable x(i,j) and sets i and j. However i want
to let j equal to some parameter m, which I define as a scalar and
give a value. When I type x(i,m), i get an error.
Any help will be appreciated.
Thank you
\
Hi, I have defined a variable x(i,j) and sets i and j. However i want
to let j equal to some parameter m, which I define as a scalar and
give a value. When I type x(i,m), i get an error.
Any help will be appreciated.
Thank you
\
You can use the Ord operator
Depending where you are using it the syntax may vary but below there is an
example
X(i,j)$(Ord(j) eq m)
Regards
JM
\