#include <OSDipBlockSlpSolver.h>
Classes | |
class | Factory |
Public Member Functions | |
virtual void | solve (double *cost, std::vector< IndexValuePair * > *solIndexValPair, double *optVal) |
virtual void | solve (double *cost, std::string *osrl) |
OSDipBlockSlpSolver () | |
Default Constructor. More... | |
OSDipBlockSlpSolver (OSInstance *osinstance) | |
Create the solver with the instance. More... | |
~OSDipBlockSlpSolver () | |
Default destructor. More... | |
![]() | |
OSDipBlockSolver () | |
Default Constructor. More... | |
virtual | ~OSDipBlockSolver ()=0 |
Default destructor. More... | |
Public Attributes | |
OSInstance * | m_osinstance |
OSResult * | m_osresult |
int | m_numberOfVar |
std::vector< IndexValuePair * > | m_primalVals |
![]() | |
double * | m_cost |
m_cost is the objective function of (reduced) coefficients More... | |
SparseVector * | m_sparseVec |
m_sparseVec is the column found by solving the block optimization problem More... | |
double | m_optVal |
m_optVal is the optimal objective function value of the block optimization problem More... | |
int | m_whichBlock |
m_whichBlock is the index of the subproblem we are working with More... | |
Definition at line 36 of file OSDipBlockSlpSolver.h.
OSDipBlockSlpSolver::OSDipBlockSlpSolver | ( | ) |
Default Constructor.
Definition at line 21 of file OSDipBlockSlpSolver.cpp.
OSDipBlockSlpSolver::OSDipBlockSlpSolver | ( | OSInstance * | osinstance | ) |
Create the solver with the instance.
Definition at line 27 of file OSDipBlockSlpSolver.cpp.
OSDipBlockSlpSolver::~OSDipBlockSlpSolver | ( | ) |
Default destructor.
Definition at line 41 of file OSDipBlockSlpSolver.cpp.
|
virtual |
Calculate the function value given the current variable values. This is an abstract method which is required to be implemented by the concrete operator nodes that derive or extend from this OSnLNode class.
cost | – an input value: pointer to the objective function (reduced) coefficients. |
sv | – a return value: sparse vector with the optimal column |
optVal | – a return value: the optimal solution value of the subproblem |
Implements OSDipBlockSolver.
Definition at line 55 of file OSDipBlockSlpSolver.cpp.
|
virtual |
Calculate the function value given the current variable values. This is an abstract method which is required to be implemented by the concrete operator nodes that derive or extend from this OSnLNode class.
cost | – an input value: pointer to the objective function (reduced) coefficients. |
osrl | – a return value: an osrl string |
Implements OSDipBlockSolver.
Definition at line 148 of file OSDipBlockSlpSolver.cpp.
OSInstance* OSDipBlockSlpSolver::m_osinstance |
Definition at line 40 of file OSDipBlockSlpSolver.h.
OSResult* OSDipBlockSlpSolver::m_osresult |
Definition at line 41 of file OSDipBlockSlpSolver.h.
int OSDipBlockSlpSolver::m_numberOfVar |
Definition at line 42 of file OSDipBlockSlpSolver.h.
std::vector<IndexValuePair*> OSDipBlockSlpSolver::m_primalVals |
Definition at line 44 of file OSDipBlockSlpSolver.h.