discrete variables in MINLP

Archive of Gamsworld Google Group
Post Reply
Archiver
User
User
Posts: 7876
Joined: 7 years ago

discrete variables in MINLP

Post by Archiver »


Dear All,
I want to use MINLP solvers for solving my problem, but my discrete variables are not binary or integer variables,e.g (2.4, 3.6, etc).
How can I do that?

Best regards,
Soheil

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to gamsworld@googlegroups.com
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en
-~----------~----~----~----~------~----~------~--~---

Archiver
User
User
Posts: 7876
Joined: 7 years ago

Re: discrete variables in MINLP

Post by Archiver »



Soheil,

Special Ordered Set type 1 (SOS1) can be used to define discrete variables
that are not integer valued. SOS1 uses binary variables and continuous
variables to define discrete values.

You could also use an integer variable and multiply it by an appropriate
factor in your model. e.g., Y=1.2y, where Y does not need any integrality
requirements and y is integer. so if y=2 then Y= 2.4, if y = 3 Y= 3.6,
etc...

Regards, Andres Guerra

On Fri, 31 Oct 2008, soheil sadat hosseini wrote:

> > Dear All,
> > I want to use MINLP solvers for solving my problem, but my discrete
> > variables are not binary or integer variables,e.g (2.4, 3.6, etc).
> > How can I do that?
> >
> > Best regards,
> > Soheil
> >
>> > >
> >

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to gamsworld@googlegroups.com
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en
-~----------~----~----~----~------~----~------~--~---


Post Reply