Changeset 1381:998e8def9676 in lemon-0.x for src/demo/lp_demo.cc
- Timestamp:
- 04/22/05 19:47:01 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1834
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/lp_demo.cc
r1362 r1381 1 1 #include <iostream> 2 3 4 #ifdef HAVE_GLPK 2 5 #include <lemon/lp_glpk.h> 6 #elif HAVE_CPLEX 7 #include <lemon/lp_cplex.h> 8 #endif 9 3 10 using namespace lemon; 11 12 #ifdef HAVE_GLPK 13 typedef LpGlpk LpDefault; 14 #elif HAVE_CPLEX 15 typedef LpCplex LpDefault; 16 #endif 4 17 5 18 int main() … … 7 20 //The following example is taken from the documentation of the GLPK library. 8 21 //See it in the GLPK reference manual and among the GLPK sample files (sample.c) 9 Lp Glpklp;10 typedef Lp Glpk::Row Row;11 typedef Lp Glpk::Col Col;22 LpDefault lp; 23 typedef LpDefault::Row Row; 24 typedef LpDefault::Col Col; 12 25 13 26 lp.max();
Note: See TracChangeset
for help on using the changeset viewer.