/*-------------------------------------------------------------------------*/ /* AMPL/ILOG Solver driver Robert Fourer */ /* */ /* Name : solver.cc */ /* Title : AMPL/ILOG Solver driver */ /* Original Source: ftp://netlib.att.com/ */ /* netlib/ampl/solvers/examples/lin1.c.Z */ /* Adapted by : Robert Fourer */ /* Date : June 1996 */ /* */ /* A driver to link AMPL linear integer programs with ILOG Solver */ /* July 1997: using new AMPL interface routines */ /* November 1997: using ILOG Solver 4.0 */ /*-------------------------------------------------------------------------*/ #include #include #include "asl.h" #include "getstub.h" fint choose_var = 0, gen_var = 0, timing = 0; double float_step = 1.0e-6; static keyword keywds[] = { /* must be alphabetical */ KW("choose_var", L_val, &choose_var, "choose variable to start instantiating"), KW("float_step", D_val, &float_step, "set step for obj with fractional coeffs"), KW("gen_var", L_val, &gen_var, "choose variable to continue instantiating"), KW("timing", L_val, &timing, "display timings for the run"), }; static Option_Info Oinfo = { "solver", "ILOG Solver", "ilog_solver_options", keywds, nkeywds, 0, "ILOG Solver 4.0" };