Changeset 1610:893dacc1866c in lemon-0.x for demo/lp_demo.cc
- Timestamp:
- 08/01/05 23:16:08 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2116
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/lp_demo.cc
r1577 r1610 25 25 /// interface read \ref lemon::LpSolverBase "this". 26 26 27 #ifdef HAVE_CONFIG_H 28 #include <config.h> 29 #endif 27 #include <lemon/lp.h> 30 28 31 29 #include <iostream> 32 30 33 34 #ifdef HAVE_GLPK35 #include <lemon/lp_glpk.h>36 #elif HAVE_CPLEX37 #include <lemon/lp_cplex.h>38 #endif39 40 31 using namespace lemon; 41 42 43 44 #ifdef HAVE_GLPK45 typedef LpGlpk LpDefault;46 const char default_solver_name[]="GLPK";47 #elif HAVE_CPLEX48 typedef LpCplex LpDefault;49 const char default_solver_name[]="CPLEX";50 #endif51 32 52 33 int main() … … 56 37 57 38 //A default solver is taken 58 Lp Defaultlp;59 typedef Lp Default::Row Row;60 typedef Lp Default::Col Col;39 Lp lp; 40 typedef Lp::Row Row; 41 typedef Lp::Col Col; 61 42 62 43
Note: See TracChangeset
for help on using the changeset viewer.