Search found 6 matches

by anby
5 years ago
Forum: Modeling
Topic: HELP! Augmenting master problem with cuts: GAMS does not permit conditional equations
Replies: 5
Views: 3679

Re: HELP! Augmenting master problem with cuts: GAMS does not permit conditional equations

I can't understand. As you say, the 3rd iteration constraint "2.5 <= x <= 8" will be added iff z result in the 2nd iteration is <= 1, but z reaches its optimum 2 in 2nd iteration. So the constraint will not be triggered. You can observe the Equation list in .lst file to check the constrai...
by anby
5 years ago
Forum: Modeling
Topic: HELP! Augmenting master problem with cuts: GAMS does not permit conditional equations
Replies: 5
Views: 3679

Re: Augmenting master problem with cuts: GAMS does not permit conditional equations

Hi Anby, First of all, your model is apparently infeasible because you have w <= 22 and w >= 26, which is contradictory. Then the way you add your constraint is weird. But it is still doable in GAMS. I have written the code for you, which shows integer infeasible. Hello Gabriel, Thank you for your ...
by anby
5 years ago
Forum: Modeling
Topic: HELP! Augmenting master problem with cuts: GAMS does not permit conditional equations
Replies: 5
Views: 3679

HELP! Augmenting master problem with cuts: GAMS does not permit conditional equations

So I am trying to implement an algorithm by augmenting with cuts after every iteration. The master problem is, minimize w =-x - 10z s.t. -25x + 20z ≤ 30 x + 2z ≤ 10 2x - z ≤ 15 -2x - 10z ≤ -15 w >= -26 w <= -22 x is a nonnegative continuous variable, z is a nonnegative integer variable. After the 1s...
by anby
6 years ago
Forum: Syntax
Topic: Error 150: Symbolic Equations Redefined..Cannot define equations. Help!
Replies: 4
Views: 5271

Re: Error 150: Symbolic Equations Redefined..Cannot define equations. Help!

Thanks Renger, appreciate the clarification! On another note, does GAMS permit tables whose elements consists of variables ? For example, if x1, x2, x3 are variables, then is the following permitted ? table d(ii,*) coefficients d1 d2 d3 d4 ... m26 x1 x1*x2 x3*x1 x1^2 m27................................
by anby
6 years ago
Forum: Syntax
Topic: Error 150: Symbolic Equations Redefined..Cannot define equations. Help!
Replies: 4
Views: 5271

Re: Error 150: Symbolic Equations Redefined..Cannot define equations. Help!

Hi Anby If you define an equation over a set, in Gams you can't write down the single equations. For this you should have defined every single equation like eq_28, eq_29. It is easier to define a table with the coefficients for the X-Variables and write down one equation definition like this: table...
by anby
6 years ago
Forum: Syntax
Topic: Error 150: Symbolic Equations Redefined..Cannot define equations. Help!
Replies: 4
Views: 5271

Error 150: Symbolic Equations Redefined..Cannot define equations. Help!

Hi all, I am really struggling with the Error 150 which pops up when I run my simple script. I am a beginner with GAMS. I am using the elements of a set (within quotes) to define the individual equations, but it is giving me the error. I think it has got something to do with domain violation, but I ...