help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model


From: Noli Sicad
Subject: Re: [Help-glpk] A Simple MIP model in MathProg - (simple cplex mip model included)
Date: Wed, 7 Nov 2012 12:00:05 +1100

Hi Reniere,

> #######
> var x{n in NUMBER_OF_INTEGER}, integer;
> var y{n in NUMBER_OF_REAL};
> #####

OK. You are talking about 2 variables now. It is different topic, 2
matrices involved.

We need to return to the original question, how to translate this
simple CPLEX MIP model into MathProg using equation.

1 matrix involving var x var x{n in NUMBER}.

We narrow down to this problem

How do you translate this

############
var x1, >=0, <=40;
var x2;
var x3;
var x4, >=2, <=3;
#############

into (MathProg equation format)

var x{n in NUMBER}

The var x{n in NUMBER} that would accept integer as well as real number.

Noli



reply via email to

[Prev in Thread] Current Thread [Next in Thread]