Scippy

SoPlex

Sequential object-oriented simPlex

SPxStarter< R > Class Template Referenceabstract

SoPlex start basis generation base class.SPxStarter is the virtual base class for classes generating a starter basis for the Simplex solver SoPlex. When a SPxStarter object has been loaded to a SoPlex solver, the latter will call method generate() in order to have a start basis generated. Implementations of method generate() must terminate by loading the generated basis to SoPlex. Loaded bases must be nonsingular. More...

#include <spxsolver.h>

Public Member Functions

Access
virtual const char * getName () const
 get name of starter. More...
 
Starting
virtual void generate (SPxSolverBase< R > &base)=0
 generates start basis for loaded basis. More...
 
Misc
virtual bool isConsistent () const
 checks consistency. More...
 

Private Member Functions

Blocked
 SPxStarter ()
 we have no default constructor. More...
 

Data

const char * m_name
 name of the starter More...
 
 SPxStarter (const char *name)
 constructor More...
 
 SPxStarter (const SPxStarter &old)
 copy constructor More...
 
SPxStarteroperator= (const SPxStarter &rhs)
 assignment operator More...
 
virtual ~SPxStarter ()
 destructor. More...
 
virtual SPxStarterclone () const =0
 clone function for polymorphism More...
 

Detailed Description

template<class R>
class soplex::SPxStarter< R >

SoPlex start basis generation base class.

SPxStarter is the virtual base class for classes generating a starter basis for the Simplex solver SoPlex. When a SPxStarter object has been loaded to a SoPlex solver, the latter will call method generate() in order to have a start basis generated. Implementations of method generate() must terminate by loading the generated basis to SoPlex. Loaded bases must be nonsingular.

Definition at line 59 of file spxsolver.h.

Constructor & Destructor Documentation

◆ SPxStarter() [1/3]

SPxStarter ( const char *  name)
explicit

constructor

Definition at line 59 of file spxstarter.h.

◆ SPxStarter() [2/3]

SPxStarter ( const SPxStarter< R > &  old)

copy constructor

Definition at line 63 of file spxstarter.h.

◆ ~SPxStarter()

virtual ~SPxStarter ( )
virtual

destructor.

Definition at line 77 of file spxstarter.h.

References SPxStarter< R >::clone().

◆ SPxStarter() [3/3]

SPxStarter ( )
private

we have no default constructor.

Referenced by SPxStarter< R >::getName().

Member Function Documentation

◆ clone()

virtual SPxStarter* clone ( ) const
pure virtual

clone function for polymorphism

Implemented in SPxWeightST< R >, SPxVectorST< R >, and SPxSumST< R >.

Referenced by SPxStarter< R >::~SPxStarter().

◆ generate()

virtual void generate ( SPxSolverBase< R > &  base)
pure virtual

generates start basis for loaded basis.

Implemented in SPxWeightST< R >.

Referenced by SPxStarter< R >::getName().

◆ getName()

virtual const char* getName ( ) const
virtual

◆ isConsistent()

virtual bool isConsistent ( ) const
virtual

checks consistency.

Reimplemented in SPxWeightST< R >.

Referenced by SPxStarter< R >::getName().

◆ operator=()

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

assignment operator

Definition at line 67 of file spxstarter.h.

Referenced by SPxWeightST< R >::operator=().

Member Data Documentation

◆ m_name

const char* m_name
protected

name of the starter

Definition at line 50 of file spxstarter.h.

Referenced by SPxStarter< R >::getName(), SPxSumST< R >::SPxSumST(), and SPxVectorST< R >::SPxVectorST().