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