19 #ifndef _SPXRATIOTESTER_H_ 20 #define _SPXRATIOTESTER_H_ 127 virtual int selectLeave(R& val, R enterTest,
bool polish =
false) = 0;
178 : thesolver(old.thesolver)
210 #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
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
#define DEFAULT_EPS_ZERO
default allowed additive zero: 1.0 + EPS_ZERO == 1.0
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
SPxSolverBase< R > * thesolver
the solver
virtual void clear()
unloads LP.