[Cbc] CBC feasibility pump

John J Forrest jjforre at us.ibm.com
Thu Aug 2 05:02:34 EDT 2007


Apologies for the link errors I introduced on Windows.  It should be OK
now.

The error arose because I have made cbc more flexible.  The standalone
version was often faster than the user's code so I have modified so user
can use the cbc solver as a function, passing arguments in either by
"argc,argv" or as a string in a similar way as in standalone solver.  There
is an example in Cbc/examples/driver3.cpp.

However some messages from the standalone solver were not going through
message handlers.  To fix this and test I had fixed it, I added test code
in CoinSolve.cpp which was only called on a #define.  However
MyMessageHandler was still defined - hence the error on Windows.

John Forrest


                                                                           
             J P                                                           
             Fasano/Watson/IBM                                             
             @IBMUS                                                     To 
             Sent by:                  cbc at list.coin-or.org, "Rolf         
             cbc-bounces at list.         Steenge" <rolf.steenge at planet.nl>   
             coin-or.org                                                cc 
                                                                           
                                                                   Subject 
             08/01/2007 05:18          Re: [Cbc] CBC feasibility pump      
             PM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




>I downloaded all the (zip) trunk versions of CBC, CLP, CGL, OSI, COINUTILS
and compiled it under Visual Studio 8.
>Unfortunately this generated many compiler errors.
>How do I get all the parts to make a correct trunk version of CBC?

You should be able to build Cbc with Visual Studio 8 by doing the
following:

  1. svn checkout https://projects.coin-or.org/svn/Cbc/trunk coin-Cbc-trunk

  2. open the file coin-Cbc-trunk/Cbc/MSVisualStudio/v8/Cbc.sln with
     visual studio C++ express edition. You can probably do this
     by navigating to the file in Windows Explorer and double clicking
     on the file.

  3. From the menu bar select "Build" - "Batch Build", and then rebuild
     everything.

I tried these steps and unfortunately they did not work.
It seems that a code change made yesterday introduced a link time error.
I created a problem ticket for this.
See https://projects.coin-or.org/Cbc/ticket/26

If step 1. is changed to be
      svn checkout --revision {2007-07-30}
https://projects.coin-or.org/svn/Cbc/trunk coin-Cbc-trunk
then the code checked out should be before the introduction of the link
error.

For help on using svn (subversion) see:
  https://www.coin-or.org/faqs.html#WindowsSvnCheckout
  https://projects.coin-or.org/BuildTools/wiki/user-download

_______________________________________________
Cbc mailing list
Cbc at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/cbc




More information about the Cbc mailing list