Error 143

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

Hi gnaeidj ,

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

Thanks
Regards,
Snigdh