<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body style="background-color: rgb(255, 255, 255); color: rgb(0, 0,
    0);" bgcolor="#FFFFFF" text="#000000">
    <p>Stuart:</p>
    <p>Have you got CoinMP going with parallel CBC under Linux?</p>
    <p>Rod<br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 15/07/2016 8:19 AM, Stuart Mitchell
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAOuNk4ZVFSwaQvK=NF1ry4Q2iuScKCetREAtOcuhLvD86XjDFA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Cool can you make sure you build statically linked
        binaries as well so I can include them in pulp.
        <div><br>
        </div>
        <div>Stu</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jul 14, 2016 at 10:12 PM, Ted
          Ralphs <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div dir="ltr">It seems the binary provided by AMPL works
                in parallel: <a moz-do-not-send="true"
                  href="http://ampl.com/dl/open/cbc/cbc-win64.zip"
                  target="_blank">
                  http://ampl.com/dl/open/cbc/cbc-win64.zip</a>
                <div><br>
                </div>
                <div>That one is at version 2.9.7. Otherwise, it is easy
                  to build a Cbc binary on Windows using MinGW by
                  modifying the instructions here:</div>
                <div><br>
                </div>
                <div><a moz-do-not-send="true"
href="https://projects.coin-or.org/SYMPHONY/wiki/BuildAndInstall#BUILDINGWITHMSys2orCYGWIN"
                    target="_blank">https://projects.coin-or.org/SYMPHONY/wiki/BuildAndInstall#BUILDINGWITHMSys2orCYGWIN</a></div>
                <div><br>
                </div>
                <div>The instructions are for SYMPHONY, but it should be
                  clear how to modify them for Cbc. You also need to add
                  the configuration option --enable-parallel, as Haroldo
                  mentioned. </div>
                <div><br>
                </div>
                <div>By the way, I also got an automated build and test
                  setup for Windows working via Appveyor a while back
                  and it should be relatively easy to upload the built
                  binaries from there to somewhere you can download:</div>
                <div><br>
                </div>
                <div><a moz-do-not-send="true"
                    href="https://ci.appveyor.com/project/tkralphs/cbc"
                    target="_blank">https://ci.appveyor.com/project/tkralphs/cbc</a><br>
                </div>
                <div><br>
                </div>
                <div>I'm thinking about how to make that work. I'm also
                  working on a docker image with pre-built binaries,
                  which will be pushed soon.</div>
                <div><br>
                </div>
                <div>Cheers,</div>
                <div><br>
                  <div>Ted</div>
                </div>
              </div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">On Wed, Jul 13, 2016 at 4:45
                  PM, Bjørn Sigurd Johansen (Spider Solutions AS)
                  <span dir="ltr"><<a moz-do-not-send="true"
                      href="mailto:bjorn.sigurd.johansen@spidersolutions.no"
                      target="_blank">bjorn.sigurd.johansen@spidersolutions.no</a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Thank you, but the build from <a
                      moz-do-not-send="true"
                      href="https://projects.coin-or.org/Cmpl"
                      rel="noreferrer" target="_blank">
                      https://projects.coin-or.org/Cmpl</a>  =>  <a
                      moz-do-not-send="true"
                      href="http://www.coliop.org/download.html"
                      rel="noreferrer" target="_blank">
                      http://www.coliop.org/download.html</a>  seems to
                    be even older:<br>
                    <br>
                    C:\Users\bjorn_000>C:\tmp\cbc.exe<br>
                    <span>Welcome to the CBC MILP Solver<br>
                    </span>Version: Trunk (unstable)<br>
                    Build Date: Mar  9 2015<br>
                    Revision Number: 2156<br>
                    <br>
                    Any other suggestions on how to get 2.9.8 cbc.exe
                    for Win64 ?<br>
                    <div>
                      <div><br>
                        <br>
                        -----Original Message-----<br>
                        From: Haroldo Gambini Santos [mailto:<a
                          moz-do-not-send="true"
                          href="mailto:haroldo.santos@gmail.com"
                          target="_blank">haroldo.santos@gmail.com</a>]<br>
                        Sent: 13. juli 2016 16:06<br>
                        To: Bjørn Sigurd Johansen (Spider Solutions AS)
                        <<a moz-do-not-send="true"
                          href="mailto:bjorn.sigurd.johansen@spidersolutions.no"
                          target="_blank">bjorn.sigurd.johansen@spidersolutions.no</a>>;
                        <a moz-do-not-send="true"
                          href="mailto:cbc@list.coin-or.org"
                          target="_blank">cbc@list.coin-or.org</a><br>
                        Subject: Re: [Cbc] Parallell CBC<br>
                        <br>
                        Hi,<br>
                        <br>
                        AFAIK the visual studio build does not includes
                        pthread and is not parallel.<br>
                        <br>
                        It is possible to build in windows a parallel
                        version using MINGW<br>
                        (<a moz-do-not-send="true"
                          href="http://www.mingw.org/" rel="noreferrer"
                          target="_blank">http://www.mingw.org/</a>) by
                        adding --enable-cbc-parallel .<br>
                        <br>
                        I strongly suggest that you update to version
                        2.9.8, many bugs were solved.<br>
                        <br>
                        I think that CMPL provides the 2.9.8 CBC version
                        for windows bundled.<br>
                        <a moz-do-not-send="true"
                          href="https://projects.coin-or.org/Cmpl"
                          rel="noreferrer" target="_blank">https://projects.coin-or.org/Cmpl</a><br>
                        <br>
                        <br>
                        Cheers,<br>
                        <br>
                        <br>
                        <br>
                        Em 13-07-2016 03:54, Bjørn Sigurd Johansen
                        (Spider Solutions AS) escreveu:<br>
                        > Dear CBC,<br>
                        ><br>
                        ><br>
                        ><br>
                        > I am using CBC 2.9.4 for MILP problem, but
                        is not able to run in<br>
                        > parallel.  Using the option "-threads
                        <some number>" makes CBC hang<br>
                        > after a few seconds.<br>
                        ><br>
                        > Is there a new Win64 cbc.exe that properly
                        handles the "-threads"<br>
                        > option?  (And possibly with improved MILP
                        performance?)<br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        > *CBC stops after the following print:*<br>
                        ><br>
                        >
C:\Users\bjorn_000>C:\Users\bjorn_000\AppData\Roaming\Microsoft\AddIns<br>
                        > \Solvers\win64\cbc.exe -threads 2
                        -directory<br>
                        > "C:\Dropbox\kh\Optimize\ModelsAndSolutions"<br>
                        > -import
                        "C:\Dropbox\kh\Optimize\ModelsAndSolutions\ModelForGurobi.lp"<br>
                        > -seconds 20 -maxIterations 50000 -ratioGap
                        0 -solve -solution<br>
                        >
                        "C:\Dropbox\kh\Optimize\ModelsAndSolutions\Solution.txt"<br>
                        ><br>
                        > Welcome to the CBC MILP Solver<br>
                        ><br>
                        > Version: 2.9.4<br>
                        ><br>
                        > Build Date: May 18 2015<br>
                        ><br>
                        ><br>
                        ><br>
                        > command line -<br>
                        >
                        C:\Users\bjorn_000\AppData\Roaming\Microsoft\AddIns\Solvers\win64\cbc.<br>
                        > exe -threads<br>
                        > 2 -directory
                        C:\Dropbox\kh\Optimize\ModelsAndSolutions
                        -import<br>
                        >
                        C:\Dropbox\kh\Optimize\ModelsAndSolutions\ModelForGurobi.lp
                        -seconds<br>
                        > 20 -maxIterations 50000 -ratioGap 0 -solve
                        -solution<br>
                        >
                        C:\Dropbox\kh\Optimize\ModelsAndSolutions\Solution.txt
                        (default<br>
                        > strategy 1)<br>
                        ><br>
                        > threads was changed from 0 to 2<br>
                        ><br>
                        > seconds was changed from 1e+100 to 20<br>
                        ><br>
                        > maxIterations was changed from 2147483647
                        to 50000<br>
                        ><br>
                        > ratioGap was changed from 0 to 0<br>
                        ><br>
                        > Continuous objective value is 178.167 -
                        0.09 seconds<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 5<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0003I 0 fixed, 0 tightened bounds, 1
                        strengthened rows, 0<br>
                        > substitutions<br>
                        ><br>
                        > Cgl0004I processed model has 2400 rows,
                        2976 columns (2973 integer<br>
                        > (1497 of which binary)) and 43145 elements<br>
                        ><br>
                        > Cbc0038I Initial state - 16 integers
                        unsatisfied sum - 3.95151<br>
                        ><br>
                        > Cbc0038I Pass   1: suminf.    1.27858 (7)
                        obj. 786.122 iterations 1458<br>
                        ><br>
                        > Cbc0038I Pass   2: suminf.    0.82530 (3)
                        obj. 1498.29 iterations 288<br>
                        ><br>
                        > Cbc0038I Solution found of 1498.29<br>
                        ><br>
                        > Cbc0038I Branch and bound needed to clear
                        up 3 general integers<br>
                        ><br>
                        > Cbc0038I Full problem 2400 rows 2976
                        columns, reduced to 19 rows 17<br>
                        > columns<br>
                        ><br>
                        > Cbc0038I Cleaned solution of 1092.61<br>
                        ><br>
                        > Cbc0038I Before mini branch and bound, 2948
                        integers at bound fixed<br>
                        > and<br>
                        > 1 continuous of which 1 were internal
                        integer and 0 internal<br>
                        > continuous<br>
                        ><br>
                        > Cbc0038I Full problem 2400 rows 2976
                        columns, reduced to 32 rows 24<br>
                        > columns<br>
                        ><br>
                        > Cbc0038I Mini branch and bound did not
                        improve solution (1.10 seconds)<br>
                        ><br>
                        > Cbc0038I Freeing continuous variables gives
                        a solution of 1092.61<br>
                        ><br>
                        > Cbc0038I Round again with cutoff of 1001.22<br>
                        ><br>
                        > Cbc0038I Reduced cost fixing fixed 31
                        variables on major pass 2<br>
                        ><br>
                        > Cbc0038I Pass   3: suminf.    1.27858 (7)
                        obj. 786.122 iterations 0<br>
                        ><br>
                        > Cbc0038I Pass   4: suminf.    1.24256 (7)
                        obj. 1001.22 iterations 961<br>
                        ><br>
                        > Cbc0038I Pass   5: suminf.    0.73804 (7)
                        obj. 1001.22 iterations 5<br>
                        ><br>
                        > Cbc0038I Pass   6: suminf.    1.20089 (5)
                        obj. 1001.22 iterations 1597<br>
                        ><br>
                        > Cbc0038I Pass   7: suminf.    1.24057 (5)
                        obj. 1001.22 iterations 622<br>
                        ><br>
                        > Cbc0038I Solution found of 1001.22<br>
                        ><br>
                        > Cbc0038I Branch and bound needed to clear
                        up 5 general integers<br>
                        ><br>
                        > Cbc0038I Mini branch and bound could not
                        fix general integers<br>
                        ><br>
                        > Cbc0038I No solution found this major pass<br>
                        ><br>
                        > Cbc0038I Before mini branch and bound, 2941
                        integers at bound fixed<br>
                        > and<br>
                        > 1 continuous<br>
                        ><br>
                        > Cbc0038I Full problem 2400 rows 2976
                        columns, reduced to 42 rows 32<br>
                        > columns<br>
                        ><br>
                        > Cbc0038I Mini branch and bound did not
                        improve solution (1.69 seconds)<br>
                        ><br>
                        > Cbc0038I After 1.69 seconds - Feasibility
                        pump exiting with objective<br>
                        > of<br>
                        > 1092.61 - took 0.94 seconds<br>
                        ><br>
                        > Cbc0012I Integer solution of 1092.6135
                        found by feasibility pump after<br>
                        > 0 iterations and 0 nodes (1.69 seconds)<br>
                        ><br>
                        > Cbc0038I Full problem 2400 rows 2976
                        columns, reduced to 32 rows 24<br>
                        > columns<br>
                        ><br>
                        > Cbc0012I Integer solution of 719.2773 found
                        by RINS after 0 iterations<br>
                        > and 0 nodes (1.84 seconds)<br>
                        ><br>
                        > Cbc0031I 11 added rows had average density
                        of 528.81818<br>
                        ><br>
                        > Cbc0013I At root node, 11 cuts changed
                        objective from 178.71006 to<br>
                        > 179.04079 in 10 passes<br>
                        ><br>
                        > Cbc0014I Cut generator 0 (Probing) - 0 row
                        cuts average 0.0 elements,<br>
                        > 1 column cuts (1 active)  in 0.598 seconds
                        - new frequency is 1<br>
                        ><br>
                        > Cbc0014I Cut generator 1 (Gomory) - 12 row
                        cuts average 1499.0<br>
                        > elements,<br>
                        > 0 column cuts (0 active)  in 0.095 seconds
                        - new frequency is 1<br>
                        ><br>
                        > Cbc0014I Cut generator 2 (Knapsack) - 0 row
                        cuts average 0.0 elements,<br>
                        > 0 column cuts (0 active)  in 0.054 seconds
                        - new frequency is -100<br>
                        ><br>
                        > Cbc0014I Cut generator 3 (Clique) - 0 row
                        cuts average 0.0 elements, 0<br>
                        > column cuts (0 active)  in 0.002 seconds -
                        new frequency is -100<br>
                        ><br>
                        > Cbc0014I Cut generator 4
                        (MixedIntegerRounding2) - 14 row cuts average<br>
                        > 652.2 elements, 0 column cuts (0 active) 
                        in 0.166 seconds - new<br>
                        > frequency is 1<br>
                        ><br>
                        > Cbc0014I Cut generator 5 (FlowCover) - 8
                        row cuts average 4.5<br>
                        > elements,<br>
                        > 0 column cuts (0 active)  in 0.023 seconds
                        - new frequency is 1<br>
                        ><br>
                        > Cbc0014I Cut generator 6 (TwoMirCuts) - 2
                        row cuts average 6.0<br>
                        > elements,<br>
                        > 0 column cuts (0 active)  in 0.058 seconds
                        - new frequency is -100<br>
                        ><br>
                        > Cbc0010I After 0 nodes, 1 on tree, 719.2773
                        best solution, best<br>
                        > possible<br>
                        > 179.04079 (3.24 seconds)<br>
                        ><br>
                        > Cbc0012I Integer solution of 266.2883 found
                        by DiveCoefficient after<br>
                        > 104 iterations and 1 nodes (3.38 seconds)<br>
                        ><br>
                        > Cbc0012I Integer solution of 266.2883 found
                        by heuristic after 98<br>
                        > iterations and 0 nodes (3.56 seconds)<br>
                        ><br>
                        ><br>
                        ><br>
                        > Best regards,<br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        >
                        _______________________________________________<br>
                        > Cbc mailing list<br>
                        > <a moz-do-not-send="true"
                          href="mailto:Cbc@list.coin-or.org"
                          target="_blank">Cbc@list.coin-or.org</a><br>
                        > <a moz-do-not-send="true"
                          href="http://list.coin-or.org/mailman/listinfo/cbc"
                          rel="noreferrer" target="_blank">
                          http://list.coin-or.org/mailman/listinfo/cbc</a><br>
                        ><span class="HOEnZb"><font color="#888888"><br>
                            <br>
                            --<br>
==================================================<br>
                            Haroldo Gambini Santos<br>
                            D.Sc, Computer Science<br>
                            Universidade Federal de Ouro Preto<br>
                            <a moz-do-not-send="true"
                              href="http://www.decom.ufop.br/haroldo/"
                              rel="noreferrer" target="_blank">http://www.decom.ufop.br/haroldo/</a><br>
                            <br>
_______________________________________________<br>
                            Cbc mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:Cbc@list.coin-or.org"
                              target="_blank">Cbc@list.coin-or.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://list.coin-or.org/mailman/listinfo/cbc"
                              rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
                          </font></span></div>
                      <span class="HOEnZb"><font color="#888888">
                        </font></span></div>
                    <span class="HOEnZb"><font color="#888888">
                      </font></span></blockquote>
                  <span class="HOEnZb"><font color="#888888">
                    </font></span></div>
                <span class="HOEnZb"><font color="#888888">
                    <br>
                    <br clear="all">
                    <div><br>
                    </div>
                    -- <br>
                    <div data-smartmail="gmail_signature">
                      <div dir="ltr">Dr. Ted Ralphs<br>
                        Professor, Lehigh University<br>
                        (610) 628-1280<br>
                        ted 'at' lehigh 'dot' edu<br>
                        <a moz-do-not-send="true"
                          href="http://coral.ie.lehigh.edu/%7Eted"
                          target="_blank">coral.ie.lehigh.edu/~ted</a><br>
                      </div>
                    </div>
                  </font></span></div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div>Stuart Mitchell</div>
          <div>PhD Engineering Science</div>
          <div><span>Extraordinary </span><span>Freelance Programmer and
              Optimisation Guru</span></div>
          <div><a moz-do-not-send="true"
              href="http://www.stuartmitchell.com" target="_blank">www.stuartmitchell.com</a></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cbc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  <br />
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
        <td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange_184x116-v1.png" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>
                </td>
        </tr>
</table></body>
</html>