Uncontrolled set entered as constant

Problems with syntax of GAMS
Post Reply
chessosskar
User
User
Posts: 12
Joined: 2 years ago

Uncontrolled set entered as constant

Post by chessosskar »

Hi
I am new to GAMS and want to use it for partial equilibrium modeling. Supply shouldn't exceed the capacity of the mine. So I put the following code:

Positive Variable
s(n) 'supply';
Parameter Capacity1(n) /one 20,two 20, three 20/;
Equation
Capacity 'maximum mining capacity';

Capacity.. s(n) =l= Capacity1(n);

which gives the error: 'Uncontrolled set entered as constant'

what mistake am I making? Many thanks in advance.
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

Re: Uncontrolled set entered as constant

Post by abhosekar »

Equation
Capacity(n) 'maximum mining capacity';
Capacity(n).. s(n) =l= Capacity1(n);

Check this for more details.https://www.gams.com/latest/docs/UG_Fix ... ors_ErrorG
-Atharv
chessosskar
User
User
Posts: 12
Joined: 2 years ago

Re: Uncontrolled set entered as constant

Post by chessosskar »

yes that works very well- thanks
Post Reply