[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] [Fwd: MathProg to Cplex problem]
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] [Fwd: MathProg to Cplex problem] |
Date: |
Tue, 08 Apr 2014 17:40:29 +0400 |
> I'm a new user of both Cplex and Glpsol, and i'm currently facing a
> strange problem which you guys might know how to go through. I want to
> convert a MathProg file into cplex formulation so that i can solve it
> faster.
>
> I use the simple command : glpsol -m model.mod -d data.dat --check
> --wcpxlp model.lp which works fine.
>
> The problem is that in model.lp, my binary variables from model.mod are
> not defined as binary variables but with bounds such that : 0 <= x(1,1)
> <= 1 and as Generals x(1,1).
A general integer variable with lower bound 0 and upper bound 1 is a
binary variable, so there should be no problem.
>
> My question is : Is there a way to automatically convert integer variables
> from model.mod into BINARY variables in model.lp ? Indeed, i could remove
> the bounds and define the variables as BINARY and not Generals but i would
> have a lot of manipulations to do as i've got lots of benchs
No conversion is needed.
>
> More over, i get the feeling that this would make my PLNE easier to solve.
>