|
SoPlex
|
Auto pricer. More...
#include <spxautopr.h>
Public Member Functions | |
Constructors / destructors | |
| SPxAutoPR () | |
| default constructor | |
| SPxAutoPR (const SPxAutoPR &old) | |
| copy constructor | |
| SPxAutoPR & | operator= (const SPxAutoPR &rhs) |
| assignment operator | |
| virtual | ~SPxAutoPR () |
| destructor | |
| virtual SPxPricer< R > * | clone () const |
| clone function for polymorphism | |
Access / modification | |
| void | setSwitchIters (int iters) |
| set max number of iterations before switching pricers | |
| void | clear () |
| clear the data | |
| void | setPricingTolerance (R tol) |
| set tolerances of internal pricers | |
| virtual void | load (SPxSolverBase< R > *base) |
| set the solver | |
| virtual void | setType (typename SPxSolverBase< R >::Type) |
| set entering/leaving algorithm | |
| virtual void | setRep (typename SPxSolverBase< R >::Representation) |
| set row/column representation | |
| virtual int | selectLeave () |
| virtual SPxId | selectEnter () |
| virtual void | left4 (int n, SPxId id) |
| virtual void | entered4 (SPxId id, int n) |
| Public Member Functions inherited from SPxPricer< R > | |
| virtual const char * | getName () const |
| get name of pricer. | |
| virtual SPxSolverBase< R > * | solver () const |
| returns loaded SPxSolverBase object. | |
| virtual R | pricingTolerance () const |
| returns the pricing tolerance | |
| virtual void | setTolerances (std::shared_ptr< Tolerances > newTolerances) |
| set the _tolerances member variable | |
| virtual void | addedVecs (int) |
n vectors have been added to loaded LP. | |
| virtual void | addedCoVecs (int) |
n covectors have been added to loaded LP. | |
| virtual void | removedVec (int) |
vector i was removed from loaded LP. | |
| virtual void | removedVecs (const int *) |
vectors given by perm have been removed from loaded LP. | |
| virtual void | removedCoVec (int) |
covector i was removed from loaded LP. | |
| virtual void | removedCoVecs (const int *) |
covectors given by perm have been removed from loaded LP. | |
| virtual bool | isConsistent () const |
| SPxPricer (const char *p_name) | |
| constructor | |
| SPxPricer (const SPxPricer &old) | |
| copy constructor | |
| SPxPricer & | operator= (const SPxPricer &rhs) |
| assignment operator | |
| virtual | ~SPxPricer () |
| destructor. | |
Private Member Functions | |
| bool | setActivePricer (typename SPxSolverBase< R >::Type type) |
| switches active pricing method | |
Private Attributes | |
| int | switchIters |
| number of iterations before switching pricers | |
| SPxPricer< R > * | activepricer |
| pointer to currently selected pricer | |
| SPxDevexPR< R > | devex |
| internal Devex pricer | |
| SPxSteepExPR< R > | steep |
| internal Steepest edge pricer | |
Additional Inherited Members | |
| Public Types inherited from SPxPricer< R > | |
| enum | ViolationType { NOT_VIOLATED = 0 , VIOLATED = 1 , VIOLATED_AND_CHECKED = 2 } |
| Protected Attributes inherited from SPxPricer< R > | |
| IdxCompare | compare |
| const char * | m_name |
| name of the pricer | |
| SPxSolverBase< R > * | thesolver |
| the solver | |
| R | thetolerance |
| violation bound | |
| std::shared_ptr< Tolerances > | _tolerances |
| tolerances used by the solver | |
Auto pricer.
This pricer switches between Devex and Steepest edge pricer based on the difficulty of the problem which is determined by the number of iterations.
See SPxPricer for a class documentation.
Definition at line 51 of file spxautopr.h.
| SPxAutoPR | ( | ) |
default constructor
Definition at line 69 of file spxautopr.h.
References activepricer, devex, SPxPricer< R >::SPxPricer(), steep, and switchIters.
Referenced by clone(), operator=(), and SPxAutoPR().
| SPxAutoPR | ( | const SPxAutoPR< R > & | old | ) |
copy constructor
Definition at line 77 of file spxautopr.h.
References activepricer, devex, SPxAutoPR(), SPxPricer< R >::SPxPricer(), steep, and switchIters.
|
virtual |
destructor
Definition at line 111 of file spxautopr.h.
|
virtual |
clear the data
Reimplemented from SPxPricer< R >.
|
virtual |
clone function for polymorphism
Implements SPxPricer< R >.
Definition at line 114 of file spxautopr.h.
References SPxAutoPR(), and SPxPricer< R >::SPxPricer().
|
virtual |
Reimplemented from SPxPricer< R >.
|
virtual |
Reimplemented from SPxPricer< R >.
|
virtual |
set the solver
Reimplemented from SPxPricer< R >.
assignment operator
Definition at line 91 of file spxautopr.h.
References activepricer, devex, SPxPricer< R >::operator=(), SPxAutoPR(), steep, and switchIters.
|
virtual |
Implements SPxPricer< R >.
|
virtual |
Implements SPxPricer< R >.
|
private |
switches active pricing method
|
virtual |
set tolerances of internal pricers
Reimplemented from SPxPricer< R >.
|
virtual |
set row/column representation
Reimplemented from SPxPricer< R >.
| void setSwitchIters | ( | int | iters | ) |
set max number of iterations before switching pricers
|
virtual |
set entering/leaving algorithm
Reimplemented from SPxPricer< R >.
|
private |
pointer to currently selected pricer
Definition at line 56 of file spxautopr.h.
Referenced by operator=(), SPxAutoPR(), and SPxAutoPR().
|
private |
internal Devex pricer
Definition at line 57 of file spxautopr.h.
Referenced by operator=(), SPxAutoPR(), and SPxAutoPR().
|
private |
internal Steepest edge pricer
Definition at line 58 of file spxautopr.h.
Referenced by operator=(), SPxAutoPR(), and SPxAutoPR().
|
private |
number of iterations before switching pricers
Definition at line 55 of file spxautopr.h.
Referenced by operator=(), SPxAutoPR(), and SPxAutoPR().