Disjunctive Programming by GAMS
-
- User
- Posts: 2
- Joined: 4 years ago
Disjunctive Programming by GAMS
Hello, how could I code a disjunctive problem of this type Maximise{f(X)| X |= eq1 or eq2 or eq3...} by GAMS?
-
- User
- Posts: 2
- Joined: 4 years ago
Re: Disjunctive Programming by GAMS
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?
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?
Re: Disjunctive Programming by GAMS
I suggest really reading the section, then you easily find "ELSEIF". -Michael