Changeset 1787:932b8490caf0 in lemon-0.x
- Timestamp:
- 11/13/05 21:01:17 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2325
- Location:
- lemon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r1771 r1787 37 37 class _FixId 38 38 { 39 protected: 39 40 std::vector<int> index; 40 41 std::vector<int> cross; … … 593 594 virtual SolveExitStatus _solve() = 0; 594 595 virtual Value _getPrimal(int i) = 0; 596 virtual Value _getDual(int i) = 0; 595 597 virtual Value _getPrimalValue() = 0; 596 598 virtual SolutionStatus _getPrimalStatus() = 0; … … 709 711 for(DualExpr::const_iterator i=e.begin(); i!=e.end(); ++i) 710 712 if((*i).second!=0) { ///\bug EPSILON would be necessary here!!! 711 indices.push_back( cols.floatingId((*i).first.id));713 indices.push_back(rows.floatingId((*i).first.id)); 712 714 values.push_back((*i).second); 713 715 } … … 1002 1004 1003 1005 ///\e 1006 Value dual(Row r) { return _getDual(rows.floatingId(r.id)); } 1007 1008 ///\e 1004 1009 1005 1010 ///\return -
lemon/lp_cplex.cc
r1542 r1787 267 267 CPXgetx(env, lp, &x, i, i); 268 268 return x; 269 } 270 271 LpCplex::Value LpCplex::_getDual(int i) 272 { 273 Value y; 274 CPXgety(env, lp, &y, i, i); 275 return y; 269 276 } 270 277 -
lemon/lp_cplex.h
r1460 r1787 79 79 80 80 virtual Value _getPrimal(int i); 81 81 virtual Value _getDual(int i); 82 82 83 83 virtual Value _getPrimalValue(); -
lemon/lp_glpk.cc
r1540 r1787 409 409 { 410 410 return lpx_get_col_prim(lp,i); 411 } 412 413 LpGlpk::Value LpGlpk::_getDual(int i) 414 { 415 return lpx_get_row_dual(lp,i); 411 416 } 412 417 -
lemon/lp_glpk.h
r1460 r1787 80 80 virtual SolveExitStatus _solve(); 81 81 virtual Value _getPrimal(int i); 82 virtual Value _getDual(int i); 82 83 virtual Value _getPrimalValue(); 83 84 ///\e
Note: See TracChangeset
for help on using the changeset viewer.