[Top][All Lists]

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

Re: [Help-glpk] type of variables

From: Nigel Galloway
Subject: Re: [Help-glpk] type of variables
Date: Mon, 05 Sep 2011 05:54:53 -0700

The question is how do you solve the problem, and how do you obtain the solution.
When you make all these columns binary you have a Diophantine Equation. GLPK can solve these, though there are other ways which may be better.
GLPK will first solve it as a linear problem. It is then necessary to perform Integer Optimization.
Having done this there are different routines to obtain the integer optimal solution as opposed to the linear solution.
Nigel Galloway
On Mon, 05 Sep 2011 14:26 +0200, "name name" <address@hidden> wrote:

On Mon, Sep 5, 2011 at 1:18 PM, Nigel Galloway <address@hidden> wrote:
Do you obtain this value with GLPK.glp_get_mip_col_val ?

no with .glp_set_col_kind
Even if the type of variable is binary Lp give non integer value
Nigel Galloway
On Mon, 05 Sep 2011 09:52 +0200, "name name" <address@hidden> wrote:

I have a very strange problem

I solve un Lp problem but the and the value of my  variables are not ineger I got x(0,1)=0.2... even thaught when I print the type of my variables I got 3 coresponding to type binary( I got type to binary for all variables with GLPK.glp_set_col_kind(lp, i, GLPKConstants.GLP_BV)).

Can you tell my where the problem could be?

Thank you

Help-glpk mailing list
-- - Email service worth paying for. Try it for free

Help-glpk mailing list
-- - Does exactly what it says on the tin

reply via email to

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