Changeset 1263:a490938ad0aa in lemon-0.x for src/work/athos/lp/lp_test.cc
- Timestamp:
- 03/25/05 17:19:03 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1690
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/athos/lp/lp_test.cc
r1259 r1263 1 1 #include"lp_solver_skeleton.h" 2 #include"lp_glpk.h" 2 3 3 4 using namespace lemon; 4 5 5 int main()6 void lpTest(LpSolverBase & lp) 6 7 { 7 typedef LpSolverSkeleton LP; 8 LP lp; 8 typedef LpSolverBase LP; 9 9 10 10 std::vector<LP::Col> x; … … 38 38 lp.addRow(LP::INF,3.0*(x[1]+x[2]*2-5*x[3]+12-x[4]/3)+2*x[4]-4,23); 39 39 } 40 41 42 int main() 43 { 44 LpSolverSkeleton lp_skel; 45 LpGlpk lp_glpk; 46 47 lpTest(lp_skel); 48 lpTest(lp_glpk); 49 }
Note: See TracChangeset
for help on using the changeset viewer.