Uncontrolled set entered as constant

Problems with syntax of GAMS
Post Reply
chessosskar
User
User
Posts: 2
Joined: 6 days ago

Uncontrolled set entered as constant

Post by chessosskar » 6 days ago

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: 253
Joined: 1 year ago

Re: Uncontrolled set entered as constant

Post by abhosekar » 5 days ago

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

Post Reply