[Top][All Lists]

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

[Help-glpk] Re: Print gap of an MIP

From: Andrew Makhorin
Subject: [Help-glpk] Re: Print gap of an MIP
Date: Fri, 24 Dec 2010 15:41:36 +0300

> I want to print the gap of the mip problem. 
> But, the out put of the glp_ios_mip_gap(tree) routine is a very large number.
> >fprintf(f, "Final Toralance %2.1lf \n", glp_ios_mip_gap(tree));
> output>179769313486231570814527423731704356798070567525844996598...........

This large number is DBL_MAX (1.798e308 for 64-bit IEEE 754) defined in
<float.h>. It is returned by glp_ios_mip_gap if no integer feasible
solution has been found yet.

reply via email to

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