SoPlex Documentation
Loading...
Searching...
No Matches
SPxSumST< R > Class Template Reference

Simple heuristic SPxStarter. More...

#include <spxsumst.h>

Inheritance diagram for SPxSumST< R >:
SPxVectorST< R > SPxWeightST< R > SPxStarter< R >

Public Member Functions

Construction / destruction
 SPxSumST ()
 default constructor.
 
 SPxSumST (const SPxSumST &old)
 copy constructor
 
SPxSumSToperator= (const SPxSumST &rhs)
 assignment operator
 
virtual ~SPxSumST ()
 destructor.
 
virtual SPxStarter< R > * clone () const
 clone function for polymorphism
 
- Public Member Functions inherited from SPxVectorST< R >
 SPxVectorST ()
 default constructor.
 
 SPxVectorST (const SPxVectorST &old)
 copy constructor
 
SPxVectorSToperator= (const SPxVectorST &rhs)
 assignment operator
 
virtual ~SPxVectorST ()
 destructor.
 
void primal (const VectorBase< R > &v)
 sets up primal solution vector.
 
void dual (const VectorBase< R > &v)
 sets up primal solution vector.
 
- Public Member Functions inherited from SPxWeightST< R >
 SPxWeightST ()
 default constructor.
 
 SPxWeightST (const SPxWeightST &old)
 copy constructor
 
SPxWeightSToperator= (const SPxWeightST &rhs)
 assignment operator
 
virtual ~SPxWeightST ()
 destructor.
 
void generate (SPxSolverBase< R > &base)
 generates start basis for loaded basis.
 
virtual bool isConsistent () const
 consistency check.
 
- Public Member Functions inherited from SPxStarter< R >
virtual void setTolerances (const std::shared_ptr< Tolerances > &tolerances)
 set the tolerances to be used by the starter
 
virtual const std::shared_ptr< Tolerances > & tolerances () const
 get the toelrances used by the starter
 
virtual const char * getName () const
 get name of starter.
 
 SPxStarter (const char *name)
 constructor
 
 SPxStarter (const SPxStarter &old)
 copy constructor
 
SPxStarteroperator= (const SPxStarter &rhs)
 assignment operator
 
virtual ~SPxStarter ()
 destructor.
 

Protected Member Functions

Protected helpers
void setupWeights (SPxSolverBase< R > &base)
 sets up variable weights.
 
- Protected Member Functions inherited from SPxVectorST< R >
void setupWeights (SPxSolverBase< R > &base)
 sets up variable weights.
 
- Protected Member Functions inherited from SPxWeightST< R >

Additional Inherited Members

- Protected Attributes inherited from SPxWeightST< R >
Array< R > rowWeight
 weight value for LP rows.
 
Array< R > colWeight
 weight value for LP columns.
 
DataArray< bool > rowRight
 set variable to rhs?.
 
DataArray< bool > colUp
 set primal variable to upper bound.
 
- Protected Attributes inherited from SPxStarter< R >
const char * m_name
 name of the starter
 
std::shared_ptr< Tolerances_tolerances
 tolerances for the starter
 

Detailed Description

template<class R>
class soplex::SPxSumST< R >

Simple heuristic SPxStarter.

Testing version of an SPxVectorST using a very simplistic heuristic to build up an approximated solution vector.

Definition at line 47 of file spxsumst.h.

Constructor & Destructor Documentation

◆ SPxSumST() [1/2]

template<class R >
SPxSumST ( )

default constructor.

Definition at line 64 of file spxsumst.h.

References SPxStarter< R >::m_name.

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

◆ SPxSumST() [2/2]

template<class R >
SPxSumST ( const SPxSumST< R > & old)

copy constructor

Definition at line 69 of file spxsumst.h.

References SPxWeightST< R >::isConsistent().

◆ ~SPxSumST()

template<class R >
virtual ~SPxSumST ( )
virtual

destructor.

Definition at line 87 of file spxsumst.h.

Member Function Documentation

◆ clone()

template<class R >
virtual SPxStarter< R > * clone ( ) const
virtual

clone function for polymorphism

Reimplemented from SPxVectorST< R >.

Definition at line 90 of file spxsumst.h.

References SPxSumST< R >::SPxSumST().

◆ operator=()

template<class R >
SPxSumST & operator= ( const SPxSumST< R > & rhs)

assignment operator

Definition at line 75 of file spxsumst.h.

References SPxWeightST< R >::isConsistent(), and SPxVectorST< R >::operator=().

◆ setupWeights()

template<class R >
void setupWeights ( SPxSolverBase< R > & base)
protectedvirtual

sets up variable weights.

Reimplemented from SPxWeightST< R >.