Re: equation control
Posted: Fri Nov 03, 2017 9:02 pm
Hi Yan: Check out this example, inspired with the help of the great Erwin at http://yetanothermathprogrammingconsult ... y-set.html
Code: Select all
$onempty
set a /a1*a10/
set b(*) / /;
variable x(a),dummy;
equation r1,fobj;
r1(a,b).. x(a)=e=1;
fobj.. dummy=e=1;
model c /all/;
solve c using lp minimizing dummy;