Page 1 of 1

Endogenous function in lag operation

Posted: Wed Mar 27, 2019 9:08 am
by suprafluid
Hi everyone,

I want to use a lag operation in an equation which is dependent on another variable. I am not allowed to do that. Do you know of any workaround?

Code: Select all

[...] .. c(i,lc,t) =l= c(i,lc++step(i,t),t+1)
Many thanks,
supra

Re: Endogenous function in lag operation

Posted: Sat Jun 15, 2019 5:11 pm
by bussieck
This restriction exists because that is not allowed in mathematical programming. Endogenous variables can't be used model types like LP, MIP, NLP or MINLP. These type of operators can be easily used in local search and other methods, but GAMS is not a good language for this.

-Michael