<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:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">I tried primal, dual and barrier using CLP standalone, all give the same result ~ close enough. 79596.39 79596.40 and 79596.29…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> clp-bounces@list.coin-or.org [mailto:clp-bounces@list.coin-or.org]
<b>On Behalf Of </b>Jonathan Currie<br>
<b>Sent:</b> Sunday, May 27, 2012 6:18 PM<br>
<b>To:</b> 'Akhil langer'; 'clp@list.coin-or.org'<br>
<b>Subject:</b> Re: [Clp] different optimal values with primal and dual methods.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">Hi Akhil,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">I'm not sufficiently experienced to be able to answer why the solvers give such different answers (I assume there are multiple factors), however
note I ran your model using the OPTI Toolbox across the LP solvers I have and found CLP did not return the minimum (using the default settings) for either the dual or primal solvers:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">Test Problem [LP] Result<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">--------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> Solver Status Fval Time<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> cplex OK +79596.2542 0.7609s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> mosek FAIL +79596.2164 1.0940s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">clp (dual) OK +114009.8970 0.3482s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">clp (primal) OK +79605.5292 0.7370s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> glpk FAIL +0.0000 1.9977s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> qsopt OK +79596.2542 0.8384s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"> matlab OK +79596.2542 7.7259s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">--------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">I assume you obtained the same minimums as above using CLP? How was the original model created?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">Jonathan Currie<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> clp-bounces@list.coin-or.org [mailto:clp-bounces@list.coin-or.org]
<b>On Behalf Of </b>Akhil langer<br>
<b>Sent:</b> Sunday, 27 May 2012 2:17 p.m.<br>
<b>To:</b> clp@list.coin-or.org<br>
<b>Subject:</b> [Clp] different optimal values with primal and dual methods.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ">I am attaching a linear program model file in mps format. I am trying to solve it using the driver.cpp program in the examples directory of the coin-clp distribution. Surprisingly, I am getting different optimal values
when solved using the dual and primal methods (model.dual(), model.primal()). Can someone please look into it and help me resolve this issue.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ">Some help as early as possible will be useful as I am in a critical phase of my project.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-NZ">Akhil<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>