equation control

Problems with syntax of GAMS
Post Reply
cladelpino
User
User
Posts: 108
Joined: 7 years ago

Re: equation control

Post by cladelpino »

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;
Post Reply