Scippy

SoPlex

Sequential object-oriented simPlex

SPxDefaultRT< R > Class Template Reference

Textbook ratio test for SoPlex. More...

#include <spxdefaultrt.h>

Public Member Functions

Construction / destruction
 SPxDefaultRT ()
 default constructor More...
 
 SPxDefaultRT (const SPxDefaultRT &old)
 copy constructor More...
 
SPxDefaultRToperator= (const SPxDefaultRT &rhs)
 assignment operator More...
 
virtual ~SPxDefaultRT ()
 destructor More...
 
virtual SPxRatioTester< R > * clone () const
 clone function for polymorphism More...
 
Select enter/leave
virtual int selectLeave (R &val, R, bool)
 
virtual SPxId selectEnter (R &val, int, bool)
 
- Public Member Functions inherited from SPxRatioTester< R >
virtual const char * getName () const
 get name of ratio tester. More...
 
virtual void load (SPxSolverBase< R > *p_solver)
 loads LP. More...
 
virtual void clear ()
 unloads LP. More...
 
virtual SPxSolverBase< R > * solver () const
 returns loaded LP solver. More...
 
virtual void setDelta (R newDelta)
 set allowed bound violation More...
 
virtual R getDelta ()
 get allowed bound violation More...
 
virtual void setTolerances (std::shared_ptr< Tolerances > newTolerances)
 set the _tolerances member variable More...
 
const std::shared_ptr< Tolerancestolerances () const
 get the _tolerances member variable More...
 
virtual void setType (typename SPxSolverBase< R >::Type)
 sets Simplex type. More...
 
 SPxRatioTester (const char *name)
 default constructor More...
 
 SPxRatioTester (const SPxRatioTester &old)
 copy constructor More...
 
SPxRatioTesteroperator= (const SPxRatioTester &rhs)
 assignment operator More...
 
virtual ~SPxRatioTester ()
 destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from SPxRatioTester< R >
SPxSolverBase< R > * thesolver
 the solver More...
 
const char * m_name
 name of the ratio tester More...
 
SPxSolverBase< R >::Type m_type
 internal storage of type More...
 
delta
 allowed bound violation More...
 
std::shared_ptr< Tolerances_tolerances
 tolerances used by the solver More...
 

Detailed Description

template<class R>
class soplex::SPxDefaultRT< R >

Textbook ratio test for SoPlex.

Class SPxDefaultRT provides an implementation of the textbook ratio test as a derived class of SPxRatioTester. This class is not intended for reliably solving LPs (even though it does the job for `‘numerically simple’' LPs). Instead, it should serve as a demonstration of how to write ratio tester classes.

See SPxRatioTester for a class documentation.

Definition at line 52 of file spxdefaultrt.h.

Constructor & Destructor Documentation

◆ SPxDefaultRT() [1/2]

default constructor

Definition at line 60 of file spxdefaultrt.h.

Referenced by SPxDefaultRT< R >::clone().

◆ SPxDefaultRT() [2/2]

SPxDefaultRT ( const SPxDefaultRT< R > &  old)

copy constructor

Definition at line 64 of file spxdefaultrt.h.

◆ ~SPxDefaultRT()

virtual ~SPxDefaultRT ( )
virtual

destructor

Definition at line 78 of file spxdefaultrt.h.

Member Function Documentation

◆ clone()

virtual SPxRatioTester< R > * clone ( ) const
virtual

clone function for polymorphism

Implements SPxRatioTester< R >.

Definition at line 81 of file spxdefaultrt.h.

References SPxDefaultRT< R >::SPxDefaultRT().

◆ operator=()

SPxDefaultRT & operator= ( const SPxDefaultRT< R > &  rhs)

assignment operator

Definition at line 68 of file spxdefaultrt.h.

References SPxRatioTester< R >::operator=().

◆ selectEnter()

virtual SPxId selectEnter ( R &  val,
int  ,
bool   
)
virtual

Implements SPxRatioTester< R >.

◆ selectLeave()

virtual int selectLeave ( R &  val,
,
bool   
)
virtual

Implements SPxRatioTester< R >.