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.
Uncontrolled set entered as constant
Re: Uncontrolled set entered as constant
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
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
-
- User
- Posts: 12
- Joined: 2 years ago
Re: Uncontrolled set entered as constant
yes that works very well- thanks