Complex expression as intermediate vairable Topic is solved

Problems with modeling
Post Reply
deepak.agrawal
User
User
Posts: 9
Joined: 7 years ago

Complex expression as intermediate vairable

Post by deepak.agrawal »

Hi,

I have a complex nonlinear expression in my objective function, which occurs several times in the objective function. To make the GAMS formulation more clearer I want to replace it with an intermediate variable say

Code: Select all

z(i,j) = f(z)
. In AMPL, I can define this as a variable relation instead of a constraint. However, in GAMS I have to write an equation. I am worried that my solver is considering this as a nonlinear constraint. Is there a way, I can avoid nonlinear constraint?
cladelpino
User
User
Posts: 108
Joined: 7 years ago

Re: Complex expression as intermediate vairable

Post by cladelpino »

Not that I know of. But,

a- CONOPT in fact encourages this https://gams.com/latest/docs/solvers/co ... XPRESSIONS
b- You should experiment if it really affects model solving performance. My guess is it shouldn't in most cases.
Post Reply