<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Nicolas,<br>
<br>
Give up and do it the incorrect way. Don't try and define
CLP_OUTPUT_FORMAT.<br>
<br>
Go to line 58 (about) in CbcSolver.cpp and change the line<br>
<br>
#define CLP_OUTPUT_FORMAT %15.8g<br>
<br>
to whatever you want.<br>
<br>
John Forrest<br>
<br>
On 03/10/17 14:01, <a class="moz-txt-link-abbreviated" href="mailto:nicolas.derhy@engie.com">nicolas.derhy@engie.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:88c7a35849d145c8995d90f0c474013d@DP07CEXC16.MELINDA.LOCAL">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.hoenzb
{mso-style-name:hoenzb;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;
mso-fareast-language:FR;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">I followed your advice and I tried to add
#define CLP_OUTPUT_FORMAT "%20.12g" in
Clp/src/config_default.h but it has no effect.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Then I tried to change compile parameters but
did not know exactly what to do : I modified preprocessor
definitions by adding CLP_OUTPUT_FORMAT=%20.12g; but no
effect.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">I tried with quote
(CLP_OUTPUT_FORMAT=”%20.12g”;), I tried on different vs
projects (cbc, libCbc and libClp) but it was unsuccessful… <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">When I watch the resulting command line, it
seems that percent symbol is not well recognized because I
obtain : /D "CLP_OUTPUT_FORMAT=\" .12g\""<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">If anyone can give me more details, it would be
great !<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Nicolas<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
Fausto Richetti Blanco [<a class="moz-txt-link-freetext" href="mailto:fausto.blanco@gmail.com">mailto:fausto.blanco@gmail.com</a>]
<br>
<b>Envoyé :</b> jeudi 21 septembre 2017 18:59<br>
<b>À :</b> John Forrest <a class="moz-txt-link-rfc2396E" href="mailto:john.forrest@fastercoin.com"><john.forrest@fastercoin.com></a><br>
<b>Cc :</b> Derhy Nicolas (ENGIE SA)
<a class="moz-txt-link-rfc2396E" href="mailto:nicolas.derhy@engie.com"><nicolas.derhy@engie.com></a>; cbc
<a class="moz-txt-link-rfc2396E" href="mailto:cbc@list.coin-or.org"><cbc@list.coin-or.org></a><br>
<b>Objet :</b> Re: [Cbc] Increase number of digits in
solution file<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I think you can add <span
style="font-size:9.5pt">-DCLP_OUTPUT_FORMAT ="%20.12g" to
the compiler parameters in the project settings of visual
studio</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Sep 21, 2017 at 1:05 PM, John
Forrest <<a href="mailto:john.forrest@fastercoin.com"
target="_blank" moz-do-not-send="true">john.forrest@fastercoin.com</a>>
wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Nicolas,<br>
<br>
I only use Linux, so maybe someone else can help.<br>
<br>
I think that for Visual Studio you have to modify
Clp/src/config_default.h by hand. If so then I
would try adding #define CLP_OUTPUT_FORMAT
="%20.12g". I am not sure if you need the "". I
hope someone will correct me if I am wrong.<span
style="color:#888888"><br>
<br>
<span class="hoenzb">John Forrest </span></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On 21/09/17 14:24, <a
href="mailto:nicolas.derhy@engie.com"
target="_blank" moz-do-not-send="true">
nicolas.derhy@engie.com</a> wrote:<o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D">Hi John,</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US">Can you
explain me how to do this ?</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US">I have
downloaded source code and I compiled it
successfully (using Visual Studio 2010).</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US">I found
some CXXDEFS in the configure file but I do
not know what to modify.</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US">Nicolas</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="color:#1F497D" lang="EN-US"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>De :</b>
Cbc [<a
href="mailto:cbc-bounces@coin-or.org"
target="_blank" moz-do-not-send="true">mailto:cbc-bounces@coin-or.org</a>]
<b>De la part de</b> John Forrest<br>
<b>Envoyé :</b> mardi 19 septembre 2017
18:57<br>
<b>À :</b> <a
href="mailto:cbc@list.coin-or.org"
target="_blank" moz-do-not-send="true">cbc@list.coin-or.org</a><br>
<b>Objet :</b> Re: [Cbc] Increase number
of digits in solution file<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Nicolas,<br>
<br>
When you configure cbc add to CXXDEFS<br>
<br>
-DCLP_OUTPUT_FORMAT ="%20.12g"<br>
<br>
or whatever you want.<br>
<br>
John Forrest<br>
<br>
On 19/09/17 16:02, <a
href="mailto:nicolas.derhy@engie.com"
target="_blank" moz-do-not-send="true">nicolas.derhy@engie.com</a>
wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi
everybody,<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">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.</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">My problem is that the values
stored in the solution file lacked
sometimes of precision when I need a lot
of digits.</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">For example, I recently
obtained 1.5596969e+008 whereas I was
hoping for 155969687.</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">I tried several options like
–output but I did not find any option that
will fit my expectations.</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">Is there a way to increase
the number of digits in solution file ?</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">Nicolas</span><o:p></o:p></p>
<p>ENGIE Mail Disclaimer: <a
href="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="
target="_blank" moz-do-not-send="true">
http://www.engie.com/disclaimer/</a><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Cbc mailing list<o:p></o:p></pre>
<pre><a href="mailto:Cbc@list.coin-or.org" target="_blank" moz-do-not-send="true">Cbc@list.coin-or.org</a><o:p></o:p></pre>
<pre><a href="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=" target="_blank" moz-do-not-send="true">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=</a> <o:p></o:p></pre>
</blockquote>
<p> <o:p></o:p></p>
</div>
<p>ENGIE Mail Disclaimer: <a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.engie.com_disclaimer_&d=DwMD-g&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=QLQl3jHZx6hPNKTb0I9pud73uBDZjSYyVOorevkAFrU&m=twctdVqG8x_S3LcNeNMh_E3U3_cH9YdWaXeaESUBOE0&s=IEjdcmffNopDjU_gWPBZ0fyonrmKskqA_k2C5Fqd_AA&e="
target="_blank" moz-do-not-send="true">
http://www.engie.com/disclaimer/</a><o:p></o:p></p>
</blockquote>
<p><o:p> </o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org"
moz-do-not-send="true">Cbc@list.coin-or.org</a><br>
<a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=QLQl3jHZx6hPNKTb0I9pud73uBDZjSYyVOorevkAFrU&m=twctdVqG8x_S3LcNeNMh_E3U3_cH9YdWaXeaESUBOE0&s=tX_0lqmYf6lgmM238Sh7IWf8BgFrOAG2c7GepHYA_tU&e="
target="_blank" moz-do-not-send="true">https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=QLQl3jHZx6hPNKTb0I9pud73uBDZjSYyVOorevkAFrU&m=twctdVqG8x_S3LcNeNMh_E3U3_cH9YdWaXeaESUBOE0&s=tX_0lqmYf6lgmM238Sh7IWf8BgFrOAG2c7GepHYA_tU&e=</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p>ENGIE Mail Disclaimer:
<a class="moz-txt-link-freetext" href="http://www.engie.com/disclaimer/">http://www.engie.com/disclaimer/</a></p>
</blockquote>
<p><br>
</p>
</body>
</html>