Error 143

Problems with syntax of GAMS
Post Reply
gnaeidj
User
User
Posts: 8
Joined: 7 years ago

Error 143

Post by gnaeidj »

Hi everyone
I've got a problem while modeling my problem and I wanted you to help me, if you can so:

My model contains a quadratic term in the objective function and this makes my Linear model non-linear.

I tried to write the quadratic term separately as a condition and use its result as a first-order term in my objective function to make my model linear, like this:

Cost =e= sum(g,a0Coeff(g) + bCoeff(g)*Pg(g) + cCoeff(g)*Pg2(g))
...
Pg2(g) =e= Pg(g)*Pg(g)

but while debugging, I've encountered this message:

Error 143: a suffix is missing

I'll be so thankful if anyone could help me
snigdh
User
User
Posts: 2
Joined: 4 years ago

Re: Error 143

Post by snigdh »

Hi gnaeidj ,

Could you post the solution to your question if you have found any?

Thanks
Regards,
Snigdh
Post Reply