this is part of my GAMS code.
variables
Hpompalanan(p,s) decision variable
z objective function
E(p,s) s time period energy consumption of pump p
dH(s) water difference s time period
H(s) water in tank in s time period;
scalar
Hmin minimum water height /3/
Hmax maximum water height /5.7/
Hilk initial water height /4/;
equations
amac
kisit1 for demand sustainability
kisit2 water height between min and max
kisit3 pumps max energy consumption
kisit4 for demand response call
;
amac.. z =e= sum((p,s), M(s)*(0.056195*(15000*Hpompalanan(p,s)/6))- Edr(s)*G(s)-Edr(s)*Mdagitim(s));
kisit1.. sum (s, -dH(s)) =l= Hilk-Hmin- sum (s, Htuketim(s));
kisit2(s)..Hmin =l= H(s)=l= Hmax;
kisit3(p,s)..E(p,s) =l= Emax(p);
kisit4..sum (p,s), E(p,s) =g= Edr(s);
E(p,s)..(0.056195*(15000*Hpompalanan(p,s)/6));
dH(s) =e= Hpompalanan(s)- Htuketim(s);
H(s) =e= Hilk+dH(s);
model dr /all/;
option mip=CPLEX;
option optcr=0;
option optca=0;
option intvarup=0;
solve dr using MIP minimizing z;
display Hpompalanan.l;
display Hpompalanan.lo;
display dH(s).l;
display H(s).l;
I have some error how can I correct them?
***** Error 409 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,175,27][LST:179]
Unrecognizable item - skip to find a new statement
looking for a ‘;’ or a key word to get started again
— DR_model.gms(177) 3 Mb 5 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,177,0]
***** Error 148 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,177,17][LST:184]
Dimension different - The symbol is referenced with more/less
indices as declared
***** Error 653 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,177,18][LST:184]
The left side of an equation cannot be a set expression
***** Error 37 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,177,18][LST:184]
‘=l=’ or ‘=e=’ or ‘=g=’ operator expected
***** Error 409 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,177,18][LST:184]
Unrecognizable item - skip to find a new statement
looking for a ‘;’ or a key word to get started again
— DR_model.gms(178) 3 Mb 9 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,178,0]
***** Error 143 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,178,1][LST:192]
A suffix is missing
***** Error 81 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,178,8][LST:192]
A ‘=’ expected for assignment statements. Alternative
assignment operators are ‘=' and ':='.
*** Error 143 in C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:"C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms",178,36][LST:192]
A suffix is missing
***** Error 141 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:"C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms",178,36][LST:192]
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
--- DR_model.gms(179) 3 Mb 11 Errors[FIL:"C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms",179,0]
***** Error 143 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:"C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms",179,2][LST:202]
A suffix is missing
***** Error 36 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:"C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms",179,9][LST:202]
'=' or '..' or ':=' or '=’ operator expected
rest of statement ignored
— DR_model.gms(180) 3 Mb 13 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,180,0]
***** Error 143 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,180,1][LST:207]
A suffix is missing
***** Error 36 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,180,8][LST:207]
‘=’ or ‘…’ or ‘:=’ or ‘$=’ operator expected
rest of statement ignored
— DR_model.gms(187) 3 Mb 14 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,187,0]
***** Error 257 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,187,32][LST:218]
Solve statement not checked because of previous errors
— DR_model.gms(190) 3 Mb 17 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,190,0]
***** Error 143 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,190,10][LST:223]
A suffix is missing
***** Error 141 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,190,10][LST:223]
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
***** Error 409 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,190,11][LST:223]
Unrecognizable item - skip to find a new statement
looking for a ‘;’ or a key word to get started again
— DR_model.gms(191) 3 Mb 20 Errors[FIL:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,191,0]
***** Error 143 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,191,9][LST:233]
A suffix is missing
***** Error 141 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,191,9][LST:233]
Symbol declared but no values have been assigned. Check for missing
data definition, assignment, data loading or implicit assignment
via a solve statement.
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
***** Error 409 in** C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms[ERR:“C:\Users\towkins\Documents\GAMS\Studio\workspace\DR_model.gms”,191,10][LST:233]
Unrecognizable item - skip to find a new statement
looking for a ‘;’ or a key word to get started again