<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 10:04:45 Friday, 13 January 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.3293a8a8-046f-45b8-8066-6084657879b2 {
        MARGIN: 0cm 0cm 0pt
}
LI.3293a8a8-046f-45b8-8066-6084657879b2 {
        MARGIN: 0cm 0cm 0pt
}
DIV.3293a8a8-046f-45b8-8066-6084657879b2 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.3293a8a8-046f-45b8-8066-6084657879b2Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Times New Roman",serif;
        font-weight:bold;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:448355545;
        mso-list-template-ids:1472725676;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">John,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This fixes the problem for me, thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Our code sets up signal handlers at run time to trap floating point “errors”, rather than using compiler flags.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you expect to issue a new release of Clp, 1.16.11 or something, in the next few months?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dave<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre>From john.forrest at fastercoin.com  Thu Jan  5 11:47:49 2017<o:p></o:p></pre>
<pre>From: john.forrest at fastercoin.com (John Forrest)<o:p></o:p></pre>
<pre>Date: Thu, 5 Jan 2017 16:47:49 +0000<o:p></o:p></pre>
<pre>Subject: [Clp] Clp floating point overflow exception<o:p></o:p></pre>
<pre>In-Reply-To: <b4e3417693df48fcbd9467cb4028d097@EXCMN203v.osii.com><o:p></o:p></pre>
<pre>References: <b4e3417693df48fcbd9467cb4028d097@EXCMN203v.osii.com><o:p></o:p></pre>
<pre>Message-ID: <cdb5a112-d5ec-f8cb-d33f-fa689585d1ac@fastercoin.com><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Dave,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I managed to get values of inf but code was quite happy - what compiler <o:p></o:p></pre>
<pre>options were you using?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If you checkout latest stable, it should be fixed - simply changed those <o:p></o:p></pre>
<pre>default initializations to COIN_DBL_MAX*1.0e-50 in ClpSolve.cpp<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>John Forrest<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>On 05/01/17 13:10, Elwood, Dave wrote:<o:p></o:p></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> Hi,<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> I am using Clp 1.6.10  and getting a floating point overflow exception <o:p></o:p></i></pre>
<pre>><i> at ClpSimplexPrimal.cpp line 1244 when calling Clp_dual (C interface) <o:p></o:p></i></pre>
<pre>><i> with ifValuesPass = 0 and the problem given below.<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> Just prior to line 1244 of ClpSimplexPrimal.cpp the variables lastInf, <o:p></o:p></i></pre>
<pre>><i> lastInf3, thisInf, thisObj, lastObj, and lastObj3 are all set to <o:p></o:p></i></pre>
<pre>><i> 1.7976931348623157e+308   (the value of COIN_DBL_MAX) via calls to <o:p></o:p></i></pre>
<pre>><i> progress->lastInfeasibility(…) and progress->lastObjective(…).<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> Floating point overflows then occur in the three lines of the form:<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i>       thisObj += infeasibilityCost_ * 2.0 * thisInf;          (line <o:p></o:p></i></pre>
<pre>><i> 1239 – where infeasibilityCost_ = 10000000000.000000)<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> This problem is infeasible and the two rows of constraints are almost <o:p></o:p></i></pre>
<pre>><i> linearly dependent. Presumably this is causing the dual solution to <o:p></o:p></i></pre>
<pre>><i> fail (line 5592 “problemStatus_ = 10;” of ClpSimplexDual.cpp is hit), <o:p></o:p></i></pre>
<pre>><i> and the primal code to be tried.   I’ve previously used Clp to <o:p></o:p></i></pre>
<pre>><i> successfully solve similar problems where the constraint matrix has <o:p></o:p></i></pre>
<pre>><i> linearly dependent rows, this is the first time I’ve had any problem.<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> Any help would be appreciated.  Thanks.<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<pre>><i> Dave<o:p></o:p></i></pre>
<pre>><i><o:p> </o:p></i></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<br>
<img id="IMG1" border="0" src="cid:image158bc8.GIF@8d8b40f1.4aaec0c0" width="179" height="47"><br>
<br>
<table class="3293a8a8-046f-45b8-8066-6084657879b2Table" style="BORDER-COLLAPSE: collapse" cellspacing="0" cols="1" cellpadding="0" border="0">
<tbody>
<tr>
<td style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial; COLOR: #7d7d7d; PADDING-LEFT: 50px" nowrap="">
<span style="font-family:Arial; font-size:x-small; color: #808080; font-weight: bold; ">Dave</span><strong><font color="#808080" size="3"> </font></strong><span style="font-family:Arial; font-size:x-small; color: #808080; font-weight: bold; ">Elwood</span><br>
<span style="font-family:Arial; font-size:xx-small; color: #666666; "></span><span style="font-family:Arial; font-size:xx-small; color: #666666; ">Power Systems Development</span><br>
<br>
<font color="#666666">4101 Arrowhead Drive<br>
Medina, Minnesota 55340-9457<br>
Phone: 763 551 0559<br>
</font><span style="color: #666666; "></span><span style="color: #666666; "></span><font color="#666666">Fax: 763 551 0750<br>
<strong>Email:</strong></font><strong> </strong><span style="font-weight: bold; "><span style="font-weight: bold; "><a href="mailto:dave.elwood@osii.com" title="Click to send email to Elwood, Dave" target=""><span style="font-weight: bold; ">dave.elwood@osii.com</span></a></span></span><br>
<strong><font color="#666666">Website:</font> </strong><a href="http://www.osii.com"><strong>www.osii.com</strong></a></td>
</tr>
</tbody>
</table>
<br>
</body>
</html>