[Top][All Lists]

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

[Help-glpk] Fwd: Re: MIP Help

From: Andrew Makhorin
Subject: [Help-glpk] Fwd: Re: MIP Help
Date: Fri, 14 Nov 2014 16:50:02 +0300

On Fri, 2014-11-14 at 09:06 +0100, Erik Quaeghebeur wrote:
> Dear Sam,
> > I am new to GLPK and I can't the MIP solver to report integer values.
> > Basically, when I first call the simplex, and then cal glp_inop, the
> > message report that it found a solution but when I call glp_mip_col_val, it
> > reports double numbers, (same as glp_get_col_prim output) not integers.
> > What am I doing wrong?
> Probably nothing: the return type of `glp_mip_col_val` and friends is
> always `double` indeed, and not `int`, but their *value* should be
> integer, not non-integer. If you get non-integer return *values* from
> those functions, you should get back to the list with a concrete
> example.
> Best,
> Erik

reply via email to

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