Scippy

SoPlex

Sequential object-oriented simPlex

SPxMainSM< R >::DuplicateColsPS Class Reference

Postsolves duplicate columns. More...

Public Member Functions

 DuplicateColsPS (const SPxLPBase< R > &lp, int _j, int _k, R scale, DataArray< int > perm, std::shared_ptr< Tolerances > tols, bool isFirst=false, bool isTheLast=false)
 
 DuplicateColsPS (const DuplicateColsPS &old)
 copy constructor More...
 
DuplicateColsPSoperator= (const DuplicateColsPS &rhs)
 assignment operator More...
 
virtual PostStepclone () const
 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
 
- Public Member Functions inherited from SPxMainSM< R >::PostStep
 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 int m_j
 
const int m_k
 
const R m_loJ
 
const R m_upJ
 
const R m_loK
 
const R m_upK
 
const R m_scale
 
const bool m_isFirst
 
const bool m_isLast
 
DataArray< int > m_perm
 

Detailed Description

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

Postsolves duplicate columns.

Definition at line 1019 of file spxmainsm.h.

Constructor & Destructor Documentation

◆ DuplicateColsPS() [1/2]

DuplicateColsPS ( const SPxLPBase< R > &  lp,
int  _j,
int  _k,
scale,
DataArray< int >  perm,
std::shared_ptr< Tolerances tols,
bool  isFirst = false,
bool  isTheLast = false 
)

Definition at line 1034 of file spxmainsm.h.

Referenced by SPxMainSM< R >::DuplicateColsPS::clone().

◆ DuplicateColsPS() [2/2]

DuplicateColsPS ( const DuplicateColsPS old)

copy constructor

Definition at line 1049 of file spxmainsm.h.

Member Function Documentation

◆ clone()

virtual PostStep * clone ( ) const
virtual

clone function for polymorphism

Implements SPxMainSM< R >::PostStep.

Definition at line 1073 of file spxmainsm.h.

References SPxMainSM< R >::DuplicateColsPS::DuplicateColsPS(), and soplex::spx_alloc().

◆ execute()

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
virtual

◆ operator=()

DuplicateColsPS & operator= ( const DuplicateColsPS rhs)

assignment operator

Definition at line 1063 of file spxmainsm.h.

References SPxMainSM< R >::PostStep::operator=().

Member Data Documentation

◆ m_isFirst

const bool m_isFirst
private

Definition at line 1029 of file spxmainsm.h.

◆ m_isLast

const bool m_isLast
private

Definition at line 1030 of file spxmainsm.h.

◆ m_j

const int m_j
private

Definition at line 1022 of file spxmainsm.h.

◆ m_k

const int m_k
private

Definition at line 1023 of file spxmainsm.h.

◆ m_loJ

const R m_loJ
private

Definition at line 1024 of file spxmainsm.h.

◆ m_loK

const R m_loK
private

Definition at line 1026 of file spxmainsm.h.

◆ m_perm

DataArray<int> m_perm
private

Definition at line 1031 of file spxmainsm.h.

◆ m_scale

const R m_scale
private

Definition at line 1028 of file spxmainsm.h.

◆ m_upJ

const R m_upJ
private

Definition at line 1025 of file spxmainsm.h.

◆ m_upK

const R m_upK
private

Definition at line 1027 of file spxmainsm.h.