- Timestamp:
- Jul 30, 2010 2:42:08 PM (11 years ago)
- Location:
- trunk/Clp/src/OsiClp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Clp/src/OsiClp/OsiClpSolverInterface.cpp
r1559 r1584 2791 2791 2792 2792 //------------------------------------------------------------------ 2793 std::vector<double*> OsiClpSolverInterface::getDualRays(int /*maxNumRays*/) const 2794 { 2793 std::vector<double*> OsiClpSolverInterface::getDualRays(int maxNumRays, 2794 bool fullRay) const 2795 { 2796 if (fullRay == true) { 2797 throw CoinError("Full dual rays not yet implemented.","getDualRays", 2798 "OsiClpSolverInterface"); 2799 } 2795 2800 return std::vector<double*>(1, modelPtr_->infeasibilityRay()); 2796 2801 } -
trunk/Clp/src/OsiClp/OsiClpSolverInterface.hpp
r1559 r1584 503 503 /** Get as many dual rays as the solver can provide. (In case of proven 504 504 primal infeasibility there should be at least one.) 505 505 506 The first getNumRows() ray components will always be associated with 507 the row duals (as returned by getRowPrice()). If \c fullRay is true, 508 the final getNumCols() entries will correspond to the ray components 509 associated with the nonbasic variables. If the full ray is requested 510 and the method cannot provide it, it will throw an exception. 511 506 512 <strong>NOTE for implementers of solver interfaces:</strong> <br> 507 513 The double pointers in the vector should point to arrays of length … … 512 518 vector using delete[]. 513 519 */ 514 virtual std::vector<double*> getDualRays(int maxNumRays) const; 520 virtual std::vector<double*> getDualRays(int maxNumRays, 521 bool fullRay = false) const; 515 522 /** Get as many primal rays as the solver can provide. (In case of proven 516 523 dual infeasibility there should be at least one.)
Note: See TracChangeset
for help on using the changeset viewer.