Scippy

SoPlex

Sequential object-oriented simPlex

SPxMainSM< R >::PostStep Class Referenceabstract

Base class for postsolving operations. More...

Public Member Functions

 PostStep (const char *p_name, std::shared_ptr< Tolerances > tols, int nR=0, int nC=0)
 constructor. More...
 
 PostStep (const PostStep &old)
 copy constructor. More...
 
PostStepoperator= (const PostStep &)
 assignment operator More...
 
virtual ~PostStep ()
 destructor. More...
 
virtual const char * getName () const
 get name of simplifying step. More...
 
virtual PostStepclone () const =0
 clone function for polymorphism More...
 
virtual void execute (VectorBase< R > &x, VectorBase< R > &y, VectorBase< R > &s, VectorBase< R > &r, DataArray< typename SPxSolverBase< R >::VarStatus > &cBasis, DataArray< typename SPxSolverBase< R >::VarStatus > &rBasis, bool isOptimal) const =0
 executes the postsolving. More...
 
virtual bool checkBasisDim (DataArray< typename SPxSolverBase< R >::VarStatus > rows, DataArray< typename SPxSolverBase< R >::VarStatus > cols) const
 
virtual R feastol () const
 
virtual R epsilon () const
 

Private Attributes

const char * m_name
 name of the simplifier More...
 
int nCols
 number of cols More...
 
int nRows
 number of rows More...
 
std::shared_ptr< Tolerances_tolerances
 0-epsilon of this poststep More...
 

Detailed Description

template<class R>
class soplex::SPxMainSM< R >::PostStep

Base class for postsolving operations.

Class PostStep is an abstract base class providing the interface for operations in the postsolving process.

Definition at line 84 of file spxmainsm.h.

Constructor & Destructor Documentation

◆ PostStep() [1/2]

PostStep ( const char *  p_name,
std::shared_ptr< Tolerances tols,
int  nR = 0,
int  nC = 0 
)

constructor.

Definition at line 98 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::_tolerances.

◆ PostStep() [2/2]

PostStep ( const PostStep old)

copy constructor.

Definition at line 106 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::_tolerances.

◆ ~PostStep()

virtual ~PostStep ( )
virtual

destructor.

Definition at line 119 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::m_name.

Member Function Documentation

◆ checkBasisDim()

virtual bool checkBasisDim ( DataArray< typename SPxSolverBase< R >::VarStatus >  rows,
DataArray< typename SPxSolverBase< R >::VarStatus >  cols 
) const
virtual

◆ clone()

◆ epsilon()

virtual R epsilon ( ) const
virtual

Definition at line 149 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::_tolerances.

◆ execute()

◆ feastol()

virtual R feastol ( ) const
virtual

Definition at line 144 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::_tolerances.

◆ getName()

virtual const char * getName ( ) const
virtual

get name of simplifying step.

Definition at line 124 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::m_name.

◆ operator=()

Member Data Documentation

◆ _tolerances

std::shared_ptr<Tolerances> _tolerances
private

0-epsilon of this poststep

Definition at line 94 of file spxmainsm.h.

Referenced by SPxMainSM< R >::PostStep::epsilon(), SPxMainSM< R >::PostStep::feastol(), and SPxMainSM< R >::PostStep::PostStep().

◆ m_name

const char* m_name
private

name of the simplifier

Definition at line 88 of file spxmainsm.h.

Referenced by SPxMainSM< R >::PostStep::getName(), and SPxMainSM< R >::PostStep::~PostStep().

◆ nCols

int nCols
private

number of cols

Definition at line 90 of file spxmainsm.h.

◆ nRows

int nRows
private

number of rows

Definition at line 92 of file spxmainsm.h.