<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Look at row scale options in clp.<br>
    You have terrible scaling The constraint matrix inf-norm is 275591,
    with a dynamic range of 2.19171e+017.<br>
    Or when you generate the cut__6_119: and sur__6:&nbsp;&nbsp; type rows<br>
    scale them by rhs / 100 so they all have coefficients &lt; 100.<br>
    It would be good to do something about the columns in the obj that
    are far away from the useless 0.008333333<br>
    namely the last 3 .&nbsp; Yould be mutch better off with an obj&nbsp;&nbsp; like
    ... +1 C0000119 &nbsp; +1590 C0000660 +1297 C0000661 +685 C0000662;<br>
    C0000114 +0.008333333 C0000115 +0.008333333 C0000116 +0.008333333
    C0000117 +0.008333333 C0000118 +0.008333333 C0000119<br>
    &nbsp;+1590 C0000660 +1297 C0000661 +685 C0000662;<br>
    <br>
    <br>
    Why do you carry rows like this?&nbsp; Because of assumed positive vars,
    these force&nbsp; them to be 0 and so can be deleted.<br>
    Make sure you give a presolve option to enforce this.&nbsp; Same with the
    fixed at 0 vars.<br>
    &nbsp;FX BOUND C0000567 0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
    &nbsp;FX BOUND C0000568 0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
    &nbsp;FX BOUND C0000569 0.0&nbsp;&nbsp;&nbsp;&nbsp; <br>
    <br>
    <br>
    <br>
    OR maybe just run it cold! I renamed it&nbsp; akhil.mps<br>
    <br>
    H:\lpsolve-55\glpk445bin<b>&gt;clp2 akhil.mps<br>
      Coin LP version 1.14.4, build Nov 10 2011<br>
      command line - clp2 akhil.mps</b><br>
    At line 1 NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BLANK&nbsp;&nbsp;&nbsp;&nbsp; FREE<br>
    At line 2 ROWS<br>
    At line 910 COLUMNS<br>
    At line 97677 RHS<br>
    At line 98086 BOUNDS<br>
    At line 98630 ENDATA<br>
    Problem BLANK has 906 rows, 663 columns and 192701 elements<br>
    Model was imported from .\akhil.mps in 0.179 seconds<br>
    Presolve 846 <b>(-60)</b> rows, 403<b> (-260)</b> columns and
    192104 (-597) elements<br>
    Perturbing problem by 0.001 % of 9.175031 - largest nonzero change
    1.8688792e-00<br>
    5 (% 15.602748) - largest zero change 1.9162731e-005<br>
    0&nbsp; Obj 0 Primal inf 3.4531696e+011 (726)<br>
    82&nbsp; Obj 2533.5625 Primal inf 2032910.4 (84)<br>
    173&nbsp; Obj 2779.3107 Primal inf 1.1564748e+008 (45)<br>
    264&nbsp; Obj 29990.164 Primal inf 3.2332069e+010 (284)<br>
    319&nbsp; Obj 68623.309 Primal inf 9.8482044e+009 (112)<br>
    410&nbsp; Obj 84542.754 Primal inf 34343.11 (1)<br>
    411&nbsp; Obj 84543.041<br>
    411&nbsp; Obj 79648.885 Dual inf 0.011916972 (6)<br>
    418&nbsp; Obj 79596.394<br>
    Optimal - objective value 79596.394<br>
    After Postsolve, objective 79596.394, infeasibilities - dual
    1.4620643e-005 (1),<br>
    &nbsp;primal 0 (0)<br>
    <b>Presolved model was optimal, full model needs cleaning up</b><br>
    0&nbsp; Obj 79596.394 Primal inf 1.6093254e-005 (8) Dual inf 8e+008 (11)<br>
    End of values pass after 22 iterations<br>
    22&nbsp; Obj 79596.394<br>
    22&nbsp; Obj 79596.394<br>
    Optimal - objective value 79596.394<br>
    Optimal objective 79596.39385 - 440 iterations time 0.302, Presolve
    0.08<br>
    <br>
    H:\lpsolve-55\glpk445bin&gt;<br>
    <br>
    H:\lpsolve-55\glpk445bin&gt;<b>cbc2 akhil.mps</b><br>
    <b>Welcome to the CBC MILP Solver<br>
      Version: 2.7.5<br>
      Build Date: Nov 10 2011<br>
      Revision Number: 1759</b><br>
    <br>
    command line - cbc2 akhil.mps (default strategy 1)<br>
    At line 1 NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BLANK&nbsp;&nbsp;&nbsp;&nbsp; FREE<br>
    At line 2 ROWS<br>
    At line 910 COLUMNS<br>
    At line 97677 RHS<br>
    At line 98086 BOUNDS<br>
    At line 98630 ENDATA<br>
    Problem BLANK has 906 rows, 663 columns and 192701 elements<br>
    Coin0008I BLANK read with 0 errors<br>
    Presolve 846 (<b>-60)</b> rows, 403 (<b>-260)</b> columns and 192104
    (-597) elements<br>
    <b>Perturbing problem by 0.001 % of </b>9.175031 - largest nonzero
    change 1.8688792e-00<br>
    5 (% 15.602748) - largest zero change 1.9162731e-005<br>
    0&nbsp; Obj 0 Primal inf 3.4531696e+011 (726)<br>
    82&nbsp; Obj 2533.5625 Primal inf 2032910.4 (84)<br>
    173&nbsp; Obj 2779.3107 Primal inf 1.1564748e+008 (45)<br>
    264&nbsp; Obj 29990.164 Primal inf 3.2332069e+010 (284)<br>
    319&nbsp; Obj 68623.309 Primal inf 9.8482044e+009 (112)<br>
    410&nbsp; Obj 84542.754 Primal inf 34343.11 (1)<br>
    411&nbsp; Obj 84543.041<br>
    411&nbsp; Obj 79648.885 Dual inf 0.011916972 (6)<br>
    418&nbsp; Obj 79596.394<br>
    Optimal - objective value 79596.394<br>
    After Postsolve, objective 79596.394, infeasibilities - dual
    1.4620643e-005 (1),<br>
    &nbsp;primal 0 (0)<br>
    <b>Presolved model was optimal, full model needs cleaning up</b><br>
    0&nbsp; Obj 79596.394 Primal inf 1.6093254e-005 (8) Dual inf 8e+008 (11)<br>
    End of values pass after 22 iterations<br>
    22&nbsp; Obj 79596.394<br>
    22&nbsp; Obj 79596.394<br>
    Optimal - objective value 79596.394<br>
    Optimal objective 79596.39385 - 440 iterations time 0.322, Presolve
    0.10<br>
    Total time (CPU seconds):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.51&nbsp;&nbsp; (Wallclock seconds):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    0.51<br>
    <br>
    <br>
    H:\lpsolve-55\glpk445bin&gt;<br>
    <br>
    <br>
    On 5/27/2012 6:18 PM, Jonathan Currie wrote:
    <blockquote
cite="mid:6588F6A32DCF6A498DAD108D389A15E710115384@Lewis.autuni.aut.ac.nz"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@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: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;}
span.EmailStyle17
        {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:72.0pt 72.0pt 72.0pt 72.0pt;}
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:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi
            Akhil,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Test
            Problem [LP] Result<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--------------------------------------------------<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;
            Solver&nbsp;&nbsp;&nbsp; Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;Fval&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;
            cplex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;+79596.2542&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;0.7609s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;
            mosek&nbsp;&nbsp;&nbsp; FAIL&nbsp;&nbsp;&nbsp;&nbsp; +79596.2164&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;1.0940s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">clp
            (dual)&nbsp;&nbsp; OK&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;+114009.8970&nbsp;&nbsp; 0.3482s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">clp
            (primal) OK&nbsp;&nbsp;&nbsp;&nbsp; +79605.5292&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;0.7370s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;
            glpk&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FAIL&nbsp;&nbsp;&nbsp;&nbsp; +0.0000&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.9977s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;
            qsopt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;+79596.2542&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;0.8384s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;
            matlab&nbsp;&nbsp;&nbsp;&nbsp; OK&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;+79596.2542&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;7.7259s<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">--------------------------------------------------<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Jonathan
            Currie<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"
              lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"
            lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:clp-bounces@list.coin-or.org">clp-bounces@list.coin-or.org</a>
            [<a class="moz-txt-link-freetext" href="mailto:clp-bounces@list.coin-or.org">mailto:clp-bounces@list.coin-or.org</a>]
            <b>On Behalf Of </b>Akhil langer<br>
            <b>Sent:</b> Sunday, 27 May 2012 2:17 p.m.<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a><br>
            <b>Subject:</b> [Clp] different optimal values with primal
            and dual methods.<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">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></p>
        <div>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        </div>
        <div>
          <p class="MsoNormal">Some help as early as possible will be
            useful as I am in a critical phase of my project.<o:p></o:p></p>
          <div>
            <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Thanks,<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Akhil<o:p></o:p></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Clp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a>
</pre>
    </blockquote>
  </body>
</html>