[Top][All Lists]

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

Re: [Help-glpk] inf as RHS of constraint

From: Xypron
Subject: Re: [Help-glpk] inf as RHS of constraint
Date: Wed, 19 Jan 2011 20:03:03 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101123 SeaMonkey/2.0.11

Hello Robbie,

we are talking about a patch to the code reading CPLEX LP files. These files are text files. IEEE_754 is only applicable to the binary representation.

My patch will translate a right hand side value of a constraint equaling either of the strings "inf" and "infinity" to the constant DBL_MAX. DBL_MAX is a high and valid number. The GLPK code treats this special number internally as infinity in some of the code.

Best regards


Robbie Morrison wrote:
Hello Xypron, hello all

Is this "inf" as a key word or string -- or "inf" as a
genuine IEEE 754 floating point infinity?

The reason I ask is that I recently fed GLPK a NaN and
it simply printed a short message and died:

In this regard, might it also be useful if GLPK
recognized and processed floating point 'inf's ?

Clearly, 'inf's carry more meaning than 'NaN's!


reply via email to

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