PowerChile
unread,Nov 25, 2010, 12:46:22 PM11/25/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gamsworld
Dear all,
I have some issues running my gams model. I'm really new using model
and I will appreciate a lot some help.
--------------------------------------------------------------------
MODEL
--------------------------------------------------------------------
$title Deterministic 3 Generation Technologies as MCP
sets
k tech / 1*3 /
l time_seg / 1*6 / ;
parameters
I(k) investment per tech k
/ 1 140000
2 80000
3 60000 /
e(k) emission of tech k
/ 1 1
2 0.35
3 0.6 /
c(k) fuel cost per tech k
/ 1 25
2 45
3 80 /
d(l) demand in time_seg l
/ 1 86000
2 83000
3 80000
4 60000
5 40000
6 20000 /
Tau(l) duration of time_seg l
/ 1 10
2 40
3 310
4 4400
5 3000
6 1000 / ;
SCALAR PC Price cap / 300 / ;
VARIABLES
x(k)
y(k,l)
z(l)
Mu(k,l)
Pi(l)
POSITIVE VARIABLE x ;
POSITIVE VARIABLE y ;
POSITIVE VARIABLE z ;
POSITIVE VARIABLE Mu ;
POSITIVE VARIABLE Pi;
EQUATIONS
UNO(k,l) Capacity
DOS(l) Demand
TRES(k,l) Prod cost
CUATRO(l) Price
CINCO(k) Inv ;
UNO(k,l).. x(k) - y(k,l) =G= 0 ;
DOS(l).. SUM(k, y(k,l)) + z(l) - d(l) =G= 0 ;
TRES(k,l).. c(k) + Mu(k,l) - Pi(l) =G= 0 ;
CUATRO(l).. PC - Pi(l) =G= 0 ;
CINCO(k).. I(k) - SUM(l, Tau(l)*Mu(k,l)) =G= 0 ;
MODEL pedro /all/ ;
SOLVE pedro using mcp ;
--------------------------------------------------------------------
MODEL
--------------------------------------------------------------------
In the log appears the following message:
**** The following MCP errors were detected in model pedro:
**** 484 UNO unmapped equ =l= =g= or =n= in mcp
**** 484 DOS unmapped equ =l= =g= or =n= in mcp
**** 484 TRES unmapped equ =l= =g= or =n= in mcp
**** 484 CUATRO unmapped equ =l= =g= or =n= in mcp
**** 484 CINCO unmapped equ =l= =g= or =n= in mcp
GAMS Rev 235 WEX-VS8 23.5.1 x86/MS Windows 11/25/10
17:35:49 Page 2
Deterministic 3 Generation Technologies as MCP
Error Messages
256 Error(s) in analyzing solve statement. More detail appears
Below the solve statement above
484 Unmapped MCP equations cannot be =g= =l= or =n=
**** 2 ERROR(S) 0 WARNING(S)
Thanks in advance for your help,
Cheers,
Pedro