[Cbc] Increase number of digits in solution file

John Forrest john.forrest at fastercoin.com
Tue Sep 19 12:57:09 EDT 2017


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 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
> 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=


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170919/e18778dc/attachment.html>


More information about the Cbc mailing list