Hello, im getting a few errors in my code (which is interfaced with Matlab) and I’m unable to solve them.
26 $if exists $ include matdata.gms
**** $668
1 - Can’t understand this error and cant find information about it.
58 PiCalc(b,t).. Pi(b,t) =e= P(b,t) + c(b,t) - d(b,t);
**** $37,409
37 '=l=' or '=e=' or '=g=' operator expected
2 - I dont understand whats the problem here as I clearly use a ‘=e=’ operator.
59 P_linhaCalc(l,t).. P_linha(l,t) =e= sum(b, A(l,b)*Pi(b,t));
**** $8,409
8 ')' expected
409 Unrecognizable item - skip to find a new statement
looking for a ';' or a key word to get started again
3 - Again, I dont understand the missing ‘)’ when It’s present.
Any feedback is appreciated.
Full code is bellow:
opt2.gms (1.66 KB)