Changes between Version 2 and Version 3 of FAQ

Jun 14, 2006 2:31:43 PM (15 years ago)

Add FAQ for ampl build.


  • 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.
     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 You will also need the ampl glue code which is available from in the file solvers.tar.
     27Follow these steps:
     29 * Download COIN source by following the steps in
     32cvs login  (use password anonymous)
     33cvs checkout COIN
     35 * Untar the AMPL glue code.
     37cd COIN
     38tar -xf solvers.tar
     40 * Edit {{{COIN/solvers/makefile.u}}} and make appropriate changes for cygwin (search for keyword "cygwin").
     41 * Build amplsolve.a
     43cd COIN/solvers
     44make -f makefile.u
     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}}}.
     50cd COIN/Cbc
     51make solve
     53 * Rename solve.exe to coin_cbc.exe.
     55cd COIN/Cbc/Test/CYGWIN-G
     56mv solve.exe coin_cbc.exe
     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.