Endogenous function in lag operation

Problems with syntax of GAMS
Post Reply
suprafluid
User
User
Posts: 7
Joined: 3 months ago

Endogenous function in lag operation

Post by suprafluid » 3 months ago

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: 335
Joined: 2 years ago

Re: Endogenous function in lag operation

Post by bussieck » 1 month ago

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