Endogenous function in lag operation

Problems with syntax of GAMS
Post Reply
suprafluid
User
User
Posts: 7
Joined: 5 years ago

Endogenous function in lag operation

Post 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
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Endogenous function in lag operation

Post 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
Post Reply