28 #ifndef _SPXRATIOTESTER_H_ 29 #define _SPXRATIOTESTER_H_ 117 this->_tolerances = newTolerances;
149 virtual int selectLeave(R& val, R enterTest,
bool polish =
false) = 0;
200 : thesolver(old.thesolver)
232 #endif // _SPXRATIOTESTER_H_ virtual SPxId selectEnter(R &val, int leaveIdx, bool polish=false)=0
selects variable Id to enter the basis.
virtual int selectLeave(R &val, R enterTest, bool polish=false)=0
selects index to leave the basis.
virtual void load(SPxSolverBase< R > *p_solver)
loads LP.
R delta
allowed bound violation
SPxRatioTester(const SPxRatioTester &old)
copy constructor
Sequential object-oriented SimPlex.SPxSolverBase is an LP solver class using the revised Simplex algo...
virtual R getDelta()
get allowed bound violation
virtual void setType(typename SPxSolverBase< R >::Type)
sets Simplex type.
Abstract ratio test base class.Class SPxRatioTester is the virtual base class for computing the ratio...
virtual SPxSolverBase< R > * solver() const
returns loaded LP solver.
virtual SPxRatioTester * clone() const =0
clone function for polymorphism
virtual void setTolerances(std::shared_ptr< Tolerances > newTolerances)
set the _tolerances member variable
Generic Ids for LP rows or columns.Both SPxColIds and SPxRowIds may be treated uniformly as SPxIds: ...
virtual ~SPxRatioTester()
destructor.
virtual void setDelta(R newDelta)
set allowed bound violation
const char * m_name
name of the ratio tester
SPxRatioTester & operator=(const SPxRatioTester &rhs)
assignment operator
SPxRatioTester(const char *name)
default constructor
virtual const char * getName() const
get name of ratio tester.
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
SPxSolverBase< R >::Type m_type
internal storage of type
std::shared_ptr< Tolerances > _tolerances
tolerances used by the solver
SPxSolverBase< R > * thesolver
the solver
virtual void clear()
unloads LP.
const std::shared_ptr< Tolerances > tolerances() const
get the _tolerances member variable