Changeset 1840:173b53b28d7c in lemon-0.x
- Timestamp:
- 11/30/05 18:00:17 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2393
- Location:
- lemon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r1810 r1840 596 596 virtual Value _getDual(int i) = 0; 597 597 virtual Value _getPrimalValue() = 0; 598 virtual bool _isBasicCol(int i) = 0; 598 599 virtual SolutionStatus _getPrimalStatus() = 0; 599 600 virtual SolutionStatus _getDualStatus() = 0; … … 1001 1002 1002 1003 ///\e 1004 bool isBasicCol(Col c) { return _isBasicCol(cols.floatingId(c.id)); } 1005 1006 ///\e 1003 1007 1004 1008 ///\return -
lemon/lp_cplex.cc
r1798 r1840 285 285 return objval; 286 286 } 287 287 bool LpCplex::_isBasicCol(int i) { 288 int* cstat=new int[CPXgetnumcols(env, lp)]; 289 return CPXgetbase(env, lp, cstat, NULL); 290 bool result=(cstat[i]==CPX_BASIC); 291 delete[] cstat; 292 return result; 293 } 288 294 289 295 //7.5-os cplex statusai (Vigyazat: a 9.0-asei masok!) -
lemon/lp_cplex.h
r1787 r1840 77 77 78 78 virtual SolveExitStatus _solve(); 79 80 79 virtual Value _getPrimal(int i); 81 80 virtual Value _getDual(int i); 82 83 81 virtual Value _getPrimalValue(); 82 virtual bool _isBasicCol(int i); 84 83 85 84 virtual SolutionStatus _getPrimalStatus(); -
lemon/lp_glpk.cc
r1787 r1840 419 419 { 420 420 return lpx_get_obj_val(lp); 421 } 422 bool LpGlpk::_isBasicCol(int i) { 423 return (lpx_get_col_stat(lp, i)==LPX_BS); 421 424 } 422 425 -
lemon/lp_glpk.h
r1787 r1840 82 82 virtual Value _getDual(int i); 83 83 virtual Value _getPrimalValue(); 84 virtual bool _isBasicCol(int i); 84 85 ///\e 85 86
Note: See TracChangeset
for help on using the changeset viewer.