[Top][All Lists]

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

Re: [Help-glpk] MIPGAP error with Octave

From: Andrew Makhorin
Subject: Re: [Help-glpk] MIPGAP error with Octave
Date: Thu, 31 Mar 2011 18:37:19 +0400

Hi Marcelo,

The following fragment

. . .
if (errnum == LPX_E_OK)
      if (isMIP)
          *status = lpx_mip_status (lp);
          *fmin = lpx_mip_obj_val (lp);
. . .

which reports status and fmin, is bypassed, because in your case the mip
solver returns LPX_E_MIPGAP, not LPX_E_OK, to indicate that the search
has not been completed.

Best regards,

Andrew Makhorin

PS: I'd like to note that your code uses obsolete glpk api routines
(prefixed with lpx_). If you have a time and wish, I could help you to
reimplement the code using the standard glpk api. I'm not familiar with
Octave internals, however, I could rewrite the glpk function.

reply via email to

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