<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Jonatan,<br>
    <br>
    CBC also loads problems in the CPLEX LP file format, which is much
    simpler in my opinion. 
    (<a class="moz-txt-link-freetext" href="http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm">http://lpsolve.sourceforge.net/5.0/CPLEX-format.htm</a>)<br>
    <br>
    To load a problem in LP format and save a solution in a TXT file
    just call:<br>
    <br>
    cbc  problem.lp  solve  solu  solution.txt<br>
    <br>
    Cheers,<br>
    <br>
    Haroldo<br>
    <br>
    <div class="moz-cite-prefix">On 17-03-2016 10:31, Jonatan Knud
      Lauritsen wrote:<br>
    </div>
    <blockquote
      cite="mid:601224626.440063.1458221472885.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div id="yui_3_16_0_ym18_1_1458220166696_33906"><span
            id="yui_3_16_0_ym18_1_1458220166696_34043">Regarding use of
            cbc. I understand that problem can be loaded and saved from
            and to MPS file using commands import and export. But what
            are commands for displaying and exporting to file the
            results of optimization, specifically - the values of
            variables?</span></div>
        <div id="yui_3_16_0_ym18_1_1458220166696_33907"
          class="qtdSeparateBR"><br>
          <br>
        </div>
        <div style="display: block;"
          id="yui_3_16_0_ym18_1_1458220166696_33912"
          class="yahoo_quoted">
          <div id="yui_3_16_0_ym18_1_1458220166696_33911"
            style="font-family: HelveticaNeue, Helvetica Neue,
            Helvetica, Arial, Lucida Grande, sans-serif; font-size:
            16px;">
            <div id="yui_3_16_0_ym18_1_1458220166696_33910"
              style="font-family: HelveticaNeue, Helvetica Neue,
              Helvetica, Arial, Lucida Grande, sans-serif; font-size:
              16px;">
              <div id="yui_3_16_0_ym18_1_1458220166696_33909" dir="ltr"><font
                  id="yui_3_16_0_ym18_1_1458220166696_33908"
                  face="Arial" size="2"> Den 15:25 torsdag den 17. marts
                  2016 skrev Jonatan Knud Lauritsen
                  <a class="moz-txt-link-rfc2396E" href="mailto:jonatan.lauritsen@yahoo.dk"><jonatan.lauritsen@yahoo.dk></a>:<br>
                </font></div>
              <br>
              <br>
              <div id="yui_3_16_0_ym18_1_1458220166696_33915"
                class="y_msg_container">
                <div id="yiv2061992926">
                  <div class="yiv2061992926yqt2785070014"
                    id="yiv2061992926yqtfd46905">
                    <div id="yui_3_16_0_ym18_1_1458220166696_33914">
                      <div id="yui_3_16_0_ym18_1_1458220166696_33913"
                        style="color:#000;background-color:#fff;font-family:HelveticaNeue,
                        Helvetica Neue, Helvetica, Arial, Lucida Grande,
                        sans-serif;font-size:16px;"><br clear="none">
                        <div id="yui_3_16_0_ym18_1_1458220166696_33916"
                          class="yiv2061992926qtdSeparateBR"><br
                            clear="none">
                          <br clear="none">
                        </div>
                        <div class="yiv2061992926yahoo_quoted"
                          id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26517"
                          style="display:block;">
                          <div
                            id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26516"
                            style="font-family:HelveticaNeue, Helvetica
                            Neue, Helvetica, Arial, Lucida Grande,
                            sans-serif;font-size:16px;">
                            <div
                              id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26515"
                              style="font-family:HelveticaNeue,
                              Helvetica Neue, Helvetica, Arial, Lucida
                              Grande, sans-serif;font-size:16px;">Hi!
                              <div class="yiv2061992926y_msg_container"
id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26520">
                                <div id="yiv2061992926">
                                  <div
                                    id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26519">
                                    <div
                                      id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_26518"
                                      style="color:#000;background-color:#fff;font-family:HelveticaNeue,
                                      Helvetica Neue, Helvetica, Arial,
                                      Lucida Grande,
                                      sans-serif;font-size:16px;">
                                      <div
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_17953"><br
                                          clear="none">
                                      </div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_17945">I
                                        am starting to use CBC. I need
                                        integer linear programming
                                        solver and apparently CBC is the
                                        right software from the COIN-OR
                                        projects (I am not sure about
                                        Symphony project, maybe it can
                                        solve integer linear programs as
                                        well). I am confused how to use
                                        CBC. I expected cbc.dll, but
                                        there is only cbc.exe available.
                                        I am trying to use cbc.exe, I
                                        managed to import and solve
                                        problem but I don't understand
                                        how to get results back - e.g.
                                        how to see (and save to file)
                                        values of the variables? That is
                                        the first question.</div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18488"><br
                                          clear="none">
                                      </div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18489">The
                                        second question is - is there
                                        cbc.dll available? I found
                                        CoinMP.dll and tried to use it,
                                        but it seems to me an completely
                                        incomplete project. E.g. after
                                        importing and preparing
                                        problems, the getColCount and
                                        getRowCount returns zero values.
                                        One can see in the source code
                                        that lot of methodes simply
                                        return dummy value and does
                                        nothing. So - how CBC is
                                        intended to use? My impression
                                        is that CBC is simple collection
                                        of source files and one should
                                        combine, integrate them and
                                        build them as one needes, there
                                        is no ready dll (apart from
                                        cbc.exe, which is not quite
                                        suitable to be embedded in other
                                        software as it works as
                                        interactive session and not as
                                        input-output program).</div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18621"><br
                                          clear="none">
                                      </div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18651">The
                                        third question is about mps file
                                        format which I am using. How to
                                        specify integrality constraints
                                        on variables in this file
                                        format? Maybe cbc automatically
                                        assumes that all the unkown
                                        variables will be integers?
                                        wikipedia mentions that MPS
                                        extensions are suitable for
                                        specifying integrality
                                        constraints but do CBC supports
                                        such extensions and where they
                                        ar documented?</div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18670"><br
                                          clear="none">
                                      </div>
                                      <div dir="ltr"
                                        id="yiv2061992926yui_3_16_0_ym18_1_1458220166696_18671">Thanks
                                        in advance!<br clear="none">
                                      </div>
                                    </div>
                                  </div>
                                </div>
                                <br clear="none">
                                <br clear="none">
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                <br>
              </div>
            </div>
          </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>
    <pre class="moz-signature" cols="72">-- 
==================================================
Haroldo Gambini Santos
D.Sc, Computer Science
Universidade Federal de Ouro Preto
<a class="moz-txt-link-freetext" href="http://www.decom.ufop.br/haroldo/">http://www.decom.ufop.br/haroldo/</a></pre>
  </body>
</html>