Changeset 1031:0b7169db694f in lemon-0.x
- Timestamp:
- 12/06/04 12:56:10 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1421
- Location:
- src/work/marci/lp
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/lp/max_flow_by_lp.cc
r1025 r1031 11 11 #include <augmenting_flow.h> 12 12 //#include <preflow_res.h> 13 #include <lp_solver_wrapper.h>13 //#include <lp_solver_wrapper_2.h> 14 14 #include <min_cost_gen_flow.h> 15 15 … … 180 180 min_cost(g, excess, lcap, cap, flow, cost); 181 181 min_cost.feasible(); 182 min_cost.run ();182 min_cost.runByLP(); 183 183 184 184 std::cout << "elapsed time: " << ts << std::endl; -
src/work/marci/lp/min_cost_gen_flow.h
r1028 r1031 15 15 //#include <preflow_res.h> 16 16 #include <work/marci/merge_node_graph_wrapper.h> 17 #include <work/marci/lp/lp_solver_wrapper .h>17 #include <work/marci/lp/lp_solver_wrapper_2.h> 18 18 19 19 namespace lemon { … … 212 212 } 213 213 void runByLP() { 214 LPSolverWrapper lp; 214 typedef LPSolverWrapper LPSolver; 215 LPSolver lp; 215 216 lp.setMinimize(); 216 typedef LPSolver Wrapper::ColIt ColIt;217 typedef LPSolver Wrapper::RowIt RowIt;217 typedef LPSolver::ColIt ColIt; 218 typedef LPSolver::RowIt RowIt; 218 219 typedef typename Graph::template EdgeMap<ColIt> EdgeIndexMap; 219 220 EdgeIndexMap edge_index_map(g);
Note: See TracChangeset
for help on using the changeset viewer.