[Cbc] Increase number of digits in solution file

nicolas.derhy at engie.com nicolas.derhy at engie.com
Thu Sep 21 09:24:59 EDT 2017


Hi John,

Can you explain me how to do this ?
I have downloaded source code and I compiled it successfully (using Visual Studio 2010).
I found some CXXDEFS in the configure file but I do not know what to modify.

Nicolas

De : Cbc [mailto:cbc-bounces at coin-or.org] De la part de John Forrest
Envoyé : mardi 19 septembre 2017 18:57
À : cbc at list.coin-or.org
Objet : Re: [Cbc] Increase number of digits in solution file

Nicolas,

When you configure cbc add to CXXDEFS

-DCLP_OUTPUT_FORMAT ="%20.12g"

or whatever you want.

John Forrest

On 19/09/17 16:02, nicolas.derhy at engie.com<mailto:nicolas.derhy at engie.com> wrote:
Hi everybody,

I often use cbc exe. It works very well and each time I use it, I add to the command line "-solution mySolution.txt" in order to recuperate the optimal solution.
My problem is that the values stored in the solution file lacked sometimes of precision when I need a lot of digits.
For example, I recently obtained 1.5596969e+008 whereas I was hoping for  155969687.

I tried several options like -output but I did not find any option that will fit my expectations.
Is there a way to increase the number of digits in solution file ?

Nicolas

ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.engie.com_disclaimer_&d=DwQFAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=js2M0T-3OIMIVDvokcKjokJbk0F8QOCd0mT4FsVFE88&m=anc8oE2IRL39guSdrbI6atT3s0V2ObFOaTDgJHLf9-c&s=mjNThllnDqmDRcNqpqksHEfbKv9yhq5d4f8mdpJscRs&e=>




_______________________________________________

Cbc mailing list

Cbc at list.coin-or.org<mailto:Cbc at list.coin-or.org>

https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=js2M0T-3OIMIVDvokcKjokJbk0F8QOCd0mT4FsVFE88&m=anc8oE2IRL39guSdrbI6atT3s0V2ObFOaTDgJHLf9-c&s=WQyrZaz7e_48jLExsKGJZLzrV8DuJrdS4pbnzRZCLhM&e=


ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170921/3d093830/attachment.html>


More information about the Cbc mailing list