COIN-OR::LEMON - Graph Library

Changeset 1610:893dacc1866c in lemon-0.x for demo/lp_demo.cc


Ignore:
Timestamp:
08/01/05 23:16:08 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2116
Message:

A default LP solver is defined in lp.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/lp_demo.cc

    r1577 r1610  
    2525/// interface read \ref lemon::LpSolverBase "this".
    2626
    27 #ifdef HAVE_CONFIG_H
    28 #include <config.h>
    29 #endif
     27#include <lemon/lp.h>
    3028
    3129#include <iostream>
    3230
    33 
    34 #ifdef HAVE_GLPK
    35 #include <lemon/lp_glpk.h>
    36 #elif HAVE_CPLEX
    37 #include <lemon/lp_cplex.h>
    38 #endif
    39 
    4031using namespace lemon;
    41 
    42 
    43 
    44 #ifdef HAVE_GLPK
    45 typedef LpGlpk LpDefault;
    46 const char default_solver_name[]="GLPK";
    47 #elif HAVE_CPLEX
    48 typedef LpCplex LpDefault;
    49 const char default_solver_name[]="CPLEX";
    50 #endif
    5132
    5233int main()
     
    5637
    5738  //A default solver is taken
    58   LpDefault lp;
    59   typedef LpDefault::Row Row;
    60   typedef LpDefault::Col Col;
     39  Lp lp;
     40  typedef Lp::Row Row;
     41  typedef Lp::Col Col;
    6142 
    6243
Note: See TracChangeset for help on using the changeset viewer.