Changes between Version 5 and Version 6 of FAQ


Ignore:
Timestamp:
Jul 12, 2006 8:20:31 PM (14 years ago)
Author:
leolopes
Comment:

Added instructions for building an AMPL-aware cbc command line utility.

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v5 v6  
    6060
    6161To 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.
     62
     63== How do you build the COIN-OR Cbc AMPL interface on unix from the svn Cbc code base? ==
     64
     65 * First get Cbc:
     66{{{
     67svn co https://projects.coin-or.org/svn/Cbc/trunk cbc
     68}}}
     69 * Get the AMPL ASL library. There is a script with the distribution that makes setting up the ASL very convenient:
     70{{{
     71cd cbc/ThirdParty/ASL
     72./get.ASL
     73}}}
     74 * Run {{{configure}}} from the root directory of the source distribution ({{{src}}} in this case) and build cbc.
     75{{{
     76cd ../..
     77./configure
     78make
     79make install
     80}}}
     81 * The resulting {{{cbc}}} executable will work both as a regular command line shell to cbc and as an AMPL driver. '''Make sure it is on your path'''. Then simply choose cbc as the solver in AMPL:
     82{{{
     83ampl: option solver cbc;
     84}}}