MINLP with integer range > 100

278 views
Skip to first unread message

Markus Klems

unread,
Feb 26, 2012, 11:53:50 AM2/26/12
to gamsworld
Hello,

I am trying to solve a MINLP with 4 integer variables:
x1 between 1 and 20
x2 between 1 and 5
x3 between 1 and 5
x4 between 1 and 5

The equations have interaction terms and quadratic terms, i.e. x1 * x2
and x1^2.

The results of my optimization don't seem to be correct (I tried
different solvers). I suspect that GAMS ignores the terms where the
integer range exceeds 100. At least, I read in the GAMS tutorial that
only integers between 0 and 100 are allowed. Does this limit apply to
the nonlinear terms stated above (x1 * x2, et cetera)? If this should
be the problem, is there anything I can do?

Thank you so much,

Markus

Lutz Westermann

unread,
Feb 27, 2012, 4:55:18 AM2/27/12
to gams...@googlegroups.com
Markus,

If you are using a recent GAMS system you should see something like this
in your log:

***
*** 6 Integer +INF Bounds have been reset to 100
***

So you are right that by default there is an upper bound of 100 on all
integer variables. With GAMS version 23.1 we introduced the parameter
pf4 to change this behavior. If you start your model like this

gams modelname.gms pf4=0

the upper bound for you integer variables will be +INF. Instead of this
you could also reset the upper bounds of your integer variables manually
(e.g x.up(i,j)=200;). More information about the parameter pf4 can be
found here:

http://www.gams.com/docs/release/release.htm#23.1

I hope that helps,
Lutz


--
Lutz Westermann LWest...@gams.com
GAMS Development Corporation GAMS Software GmbH
1217 Potomac St. NW, Eupener Str. 135-137
Washington DC, 20007, USA 50933 Cologne, Germany
Fon/Fax: +1 202 342-0180/1 Fon/Fax: +49 221 949-9170/1
http://www.gams.com http://www.gams.de

Farzaneh

unread,
Jul 6, 2015, 2:34:53 AM7/6/15
to gams...@googlegroups.com
Hi Lutz,
I have same problem and still couldnt fix it. I use GAMS version 24.1
would you please help me through it?

thank you so much,
farzaneh

Lutz Westermann

unread,
Jul 6, 2015, 3:09:54 AM7/6/15
to gams...@googlegroups.com
Farzaneh,

Can you provide more information about your problem (including a small
example to reproduce it)? As I wrote before, the option pf4 was
introduced with GAMS 23.1, so I don't see an obvious reason, why it
should not work with your version 24.1.

Best regards,
Lutz
> Lutz Westermann LWest...@gams.com <javascript:>
> GAMS Development Corporation GAMS Software GmbH
> 1217 Potomac St. NW, Eupener Str. 135-137
> Washington DC, 20007, USA 50933 Cologne, Germany
> Fon/Fax: +1 202 342-0180/1 Fon/Fax: +49 221 949-9170/1
> http://www.gams.com http://www.gams.de
>
> --
> You received this message because you are subscribed to the Google
> Groups "gamsworld" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gamsworld+...@googlegroups.com
> <mailto:gamsworld+...@googlegroups.com>.
> To post to this group, send email to gams...@googlegroups.com
> <mailto:gams...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/gamsworld.
> For more options, visit https://groups.google.com/d/optout.


--
Lutz Westermann LWest...@gams.com
GAMS Development Corporation GAMS Software GmbH
1217 Potomac St. NW, P.O. Box 40 59
Washington DC, 20007, USA 50216 Frechen, Germany

Farzaneh Darbaniyan

unread,
Jul 6, 2015, 3:17:02 AM7/6/15
to gams...@googlegroups.com
Thank you so much. I misunderstood it. as i read more carefully your answer, now it is fixed.

Thanks again,
Farzaneh

--
You received this message because you are subscribed to a topic in the Google Groups "gamsworld" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/cRnje8DFQJA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages