Page 1 of 1

sum

Posted: Thu Jul 25, 2019 2:27 am
by Omi
how to code constraint 15 in the attachment?
where x(i,t) is variable.

Re: sum

Posted: Thu Jul 25, 2019 7:15 am
by Renger
Hi

Once again use $-constraints to restrain the sum

Code: Select all

sum(k$(ord(k) > 1), 1/x(k)
If the set k has numbers as set elements (e.g. /1*10/) you can use k.val instead of ord.
Cheers
Renger