[Top][All Lists]

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

[Help-glpk] Display precision in solution files

From: Jean-Sebastien Roy
Subject: [Help-glpk] Display precision in solution files
Date: Thu, 10 Apr 2003 19:15:48 +0200

I tend to use glpsol instead of using the C API. Therefore, I read the values returned by glpsol through the '-o' option, and recently observed that many of my constraints were violated by the returned solution. The problem turned out to be the precision (or lack of thererof) of the values printed by lpx_mip_print.
This function uses the "%13.6g" format for printing.

Could it be possible to get a better precision through glpsol (like "%22.15g") ?
(See attached patch)



Attachment: %patch-precision
Description: application/applefile

Attachment: patch-precision
Description: Binary data

reply via email to

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