Changeset 1104:23a54f889272 in lemon-0.x for src/work/marci
- Timestamp:
- 01/28/05 15:33:32 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1503
- Location:
- src/work/marci/lp
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/lp/lp_solver_wrapper_3.h
r1100 r1104 11 11 #include <iostream> 12 12 #include <map> 13 #include <limits> 13 14 // #include <stdio> 14 15 //#include <stdlib> … … 197 198 /// \e 198 199 const int INVALID_CLASS; 200 /// \e 201 static const _Value INF; 199 202 public: 200 203 /// \e … … 222 225 /// \e 223 226 virtual void _setRowCoeffs(int i, 224 std::vector<std::pair<int, double> >coeffs) = 0;227 const std::vector<std::pair<int, _Value> >& coeffs) = 0; 225 228 /// \e 226 229 virtual void _setColCoeffs(int i, 227 std::vector<std::pair<int, double> >coeffs) = 0;230 const std::vector<std::pair<int, _Value> >& coeffs) = 0; 228 231 /// \e 229 232 virtual void _eraseCol(int i) = 0; … … 424 427 }; 425 428 429 template <typename _Value> 430 const _Value LPSolverBase<_Value>::INF=std::numeric_limits<_Value>::infinity(); 431 426 432 427 433 /// \brief Wrappers for LP solvers … … 475 481 /// \e 476 482 virtual void _setRowCoeffs(int i, 477 std::vector<std::pair<int, double> >coeffs) {483 const std::vector<std::pair<int, double> >& coeffs) { 478 484 int mem_length=1+colNum(); 479 485 int* indices = new int[mem_length]; … … 495 501 /// \e 496 502 virtual void _setColCoeffs(int i, 497 std::vector<std::pair<int, double> >coeffs) {503 const std::vector<std::pair<int, double> >& coeffs) { 498 504 int mem_length=1+rowNum(); 499 505 int* indices = new int[mem_length]; -
src/work/marci/lp/makefile
r1097 r1104 6 6 LDFLAGS = -lglpk#-lcplex -lm -lpthread -lilocplex -L/usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_mt# -L$(GLPKROOT)/lib 7 7 8 BINARIES = expression_test max_flow_by_lp# sample sample2 sample11 sample158 BINARIES = max_flow_expression expression_test max_flow_by_lp# sample sample2 sample11 sample15 9 9 10 10 #include ../makefile
Note: See TracChangeset
for help on using the changeset viewer.