Disjunctive Programming by GAMS

Problems with syntax of GAMS
Post Reply
Asraful Islam
User
User
Posts: 2
Joined: 4 years ago

Disjunctive Programming by GAMS

Post by Asraful Islam »

Hello, how could I code a disjunctive problem of this type Maximise{f(X)| X |= eq1 or eq2 or eq3...} by GAMS?
Asraful Islam
User
User
Posts: 2
Joined: 4 years ago

Re: Disjunctive Programming by GAMS

Post by Asraful Islam »

Thank you 'bussieck'
It works if I write

putclose emp
"disjunction d eq1 else eq2 "/

for the condition X |= eq1 or eq2

but how if X |= eq1 or eq2 or eq3? How could I write multiple "else" under disjunction?
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: Disjunctive Programming by GAMS

Post by bussieck »

I suggest really reading the section, then you easily find "ELSEIF". -Michael
Post Reply