Changes between Version 2 and Version 3 of FAQ


Ignore:
Timestamp:
Jun 14, 2006 2:31:43 PM (13 years ago)
Author:
tarun
Comment:

Add FAQ for ampl build.

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v2 v3  
    2121== What happened to the SBB code? ==
    2222SBB stands for Simple Branch and Bound. When COIN-OR LP was being written, the Osi interface demanded an integer solver. An exception could have been thrown but anyone can write a branch and bound code in a day. With Strong Branching it was 460 lines of code, without 300 lines. Somehow the code kept growing and eventually it was moved it to its own project. Now the "Simple" is not as accurate and there was confusion with Gams Sbb code so was frozen as of Halloween 2004. All future development has been on Cbc (COIN-OR Branch and Cut) which is just a renamed version of Sbb.
     23
     24== How do you build the COIN-OR Cbc AMPL interface on Windows using cygwin from the CVS Cbc code base? ==
     25You will need to have cygwin installed on the machine. Cygwin can be downloaded and installed from http://www.cygwin.com. You will also need the ampl glue code which is available from http://netlib.bell-labs.com/netlib/ampl/index.html in the file solvers.tar.
     26
     27Follow these steps:
     28
     29 * Download COIN source by following the steps in http://www.coin-or.org/faqs.html#q5
     30{{{
     31export CVSROOT=:pserver:anonymous@www.coin-or.org:2401/home/coin/coincvs
     32cvs login  (use password anonymous)
     33cvs checkout COIN
     34}}}
     35 * Untar the AMPL glue code.
     36{{{
     37cd COIN
     38tar -xf solvers.tar
     39}}}
     40 * Edit {{{COIN/solvers/makefile.u}}} and make appropriate changes for cygwin (search for keyword "cygwin").
     41 * Build amplsolve.a
     42{{{
     43cd COIN/solvers
     44make -f makefile.u
     45}}}
     46 * Edit {{{COIN/Makefiles/Makefile.location}}} and uncomment the {{{CoinLibsDefined += COIN_ampl}}} by removing the exclamation point.
     47 * Search for {{{COIN_ampl}}} in {{{COIN/Makefiles/Makefile.location}}} and set the correct path to point to the AMPL glue code directory (ie: {{{COIN/solvers}}}).
     48 * Build the Coin Cbc AMPL interface driver. On successful completion, the driver will be created at {{{COIN/Cbc/Test/CYGWIN-G/solve.exe}}}.
     49{{{
     50cd COIN/Cbc
     51make solve
     52}}}
     53 * Rename solve.exe to coin_cbc.exe.
     54{{{
     55cd COIN/Cbc/Test/CYGWIN-G
     56mv solve.exe coin_cbc.exe
     57}}}
     58
     59To use coin_cbc.exe as the ampl interface, specify "option solver coin_cbc.exe" from the ampl prompt or specify it in the .run file.