how to code constraint 15 in the attachment?
where x(i,t) is variable.
sum
Re: sum
Hi
Once again use $-constraints to restrain the sum
If the set k has numbers as set elements (e.g. /1*10/) you can use k.val instead of ord.
Cheers
Renger
Once again use $-constraints to restrain the sum
Code: Select all
sum(k$(ord(k) > 1), 1/x(k)
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist