Page 1 of 1

Uncontrolled set entered as constant

Posted: Wed Jan 12, 2022 8:29 pm
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.

Re: Uncontrolled set entered as constant

Posted: Thu Jan 13, 2022 2:55 pm
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

Re: Uncontrolled set entered as constant

Posted: Wed Jan 19, 2022 3:32 pm
by chessosskar
yes that works very well- thanks