Scippy

SoPlex

Sequential object-oriented simPlex

SPxStarter Class 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 <spxstarter.h>

Inheritance diagram for SPxStarter:

Public Member Functions

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

Private Member Functions

Blocked
 SPxStarter ()
 we have no default constructor.
 

Data

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

Detailed Description

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 41 of file spxstarter.h.

Constructor & Destructor Documentation

SPxStarter ( const char *  name)
explicit

constructor

Definition at line 58 of file spxstarter.h.

SPxStarter ( const SPxStarter old)

copy constructor

Definition at line 62 of file spxstarter.h.

virtual ~SPxStarter ( )
virtual

destructor.

Definition at line 76 of file spxstarter.h.

References SPxStarter::m_name.

SPxStarter ( )
private

we have no default constructor.

Member Function Documentation

virtual SPxStarter* clone ( ) const
pure virtual

clone function for polymorphism

Implemented in SPxWeightST, SPxVectorST, and SPxSumST.

Referenced by SPxSolver::operator=(), and SPxSolver::SPxSolver().

virtual void generate ( SPxSolver base)
pure virtual

generates start basis for loaded basis.

Implemented in SPxWeightST.

Referenced by SPxSolver::solve().

virtual const char* getName ( ) const
virtual

get name of starter.

Definition at line 88 of file spxstarter.h.

References SPxStarter::m_name.

Referenced by SoPlex::getStarterName(), and main().

bool isConsistent ( ) const
virtual

checks consistency.

Reimplemented in SPxWeightST.

Definition at line 25 of file spxstarter.cpp.

References MSG_ERROR.

SPxStarter& operator= ( const SPxStarter rhs)

assignment operator

Definition at line 66 of file spxstarter.h.

References SPxStarter::m_name.

Referenced by SPxWeightST::operator=().

Member Data Documentation

const char* m_name
protected