#include <OSDipBlockCoinSolver.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) |
OSDipBlockCoinSolver () | |
Default Constructor. | |
OSDipBlockCoinSolver (OSInstance *osinstance) | |
Create the solver with the instance. | |
~OSDipBlockCoinSolver () | |
Default destructor. | |
Public Attributes | |
OSInstance * | m_osinstance |
OSResult * | m_osresult |
int | m_numberOfVar |
CoinSolver * | m_solver |
Definition at line 37 of file OSDipBlockCoinSolver.h.
OSDipBlockCoinSolver::OSDipBlockCoinSolver | ( | ) |
Default Constructor.
Definition at line 20 of file OSDipBlockCoinSolver.cpp.
OSDipBlockCoinSolver::OSDipBlockCoinSolver | ( | OSInstance * | osinstance | ) |
Create the solver with the instance.
Definition at line 26 of file OSDipBlockCoinSolver.cpp.
OSDipBlockCoinSolver::~OSDipBlockCoinSolver | ( | ) |
Default destructor.
Definition at line 49 of file OSDipBlockCoinSolver.cpp.
void OSDipBlockCoinSolver::solve | ( | double * | cost, | |
std::vector< IndexValuePair * > * | solIndexValPair, | |||
double * | optVal | |||
) | [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 56 of file OSDipBlockCoinSolver.cpp.
void OSDipBlockCoinSolver::solve | ( | double * | cost, | |
std::string * | osrl | |||
) | [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 104 of file OSDipBlockCoinSolver.cpp.
Definition at line 41 of file OSDipBlockCoinSolver.h.
Definition at line 42 of file OSDipBlockCoinSolver.h.
Definition at line 43 of file OSDipBlockCoinSolver.h.
Definition at line 45 of file OSDipBlockCoinSolver.h.