Class for DECOMP algorithm Decomp. More...
#include <DecompAlgoD.h>
Public Member Functions | |
void | solveD (DecompCutList *newCuts) |
void | createMasterProblem (DecompVarList &initVars) |
Create the master problem (all algorithms must define this function). | |
decompPhase | phaseUpdate (const decompPhase phase, const decompStat stat, int &n_newCuts, int &n_newVars, int &n_cutCalls, int &n_priceCalls) |
decompPhase | phaseUpdate (const decompPhase phase, const decompStat stat) |
void | recomposeSolution (const double *solution, double *rsolution) |
Compose solution in x-space from current space. | |
DecompAlgoD (DecompApp *app, double *xhat, int numOrigCols) | |
~DecompAlgoD () | |
Private Member Functions | |
DecompAlgoD (const DecompAlgoD &) | |
DecompAlgoD & | operator= (const DecompAlgoD &) |
Private Attributes | |
Data. | |
std::string | m_classTag |
Store the name of the class (for logging/debugging) - "who am I?". | |
double * | m_xhatD |
Store the name of the class (for logging/debugging) - "who am I?". | |
DecompCutList * | m_newCuts |
Store the name of the class (for logging/debugging) - "who am I?". | |
int | m_numOrigCols |
Store the name of the class (for logging/debugging) - "who am I?". | |
Static Private Attributes | |
static const char * | classTag |
Derived from virtual functions of DecompAlgoPC | |
| |
virtual void | createMasterProblem (DecompVarList &initVars) |
Create the master problem (all algorithms must define this function). | |
virtual void | masterMatrixAddArtCols (CoinPackedMatrix *masterM, double *colLB, double *colUB, double *objCoeff, std::vector< std::string > &colNames, int startRow, int endRow, char origOrBranch) |
Create the master problem (all algorithms must define this function). | |
virtual void | phaseUpdate (DecompPhase &phase, DecompStatus &status) |
Create the master problem (all algorithms must define this function). | |
virtual void | phaseDone () |
Create the master problem (all algorithms must define this function). | |
virtual void | setObjBoundIP (const double thisBound) |
Set the current integer bound and update best/history. | |
void | solveD (DecompCutList *newCuts) |
Create the master problem (all algorithms must define this function). | |
Constructors and destructor. | |
| |
DecompAlgoD (const DecompAlgoD &) | |
Disable copy constructors. | |
DecompAlgoD & | operator= (const DecompAlgoD &) |
Disable copy constructors. | |
DecompAlgoD (DecompApp *app, UtilParameters *utilParam, double *xhat, int numOrigCols) | |
Default constructors. | |
DecompAlgoD (DecompApp *app, UtilParameters *utilParam, std::string ¶mSection, double *xhat, int numOrigCols) | |
Disable copy constructors. | |
~DecompAlgoD () | |
Destructor. |
Class for DECOMP algorithm Decomp.
Definition at line 37 of file DecompAlgoD.h.
DecompAlgoD::DecompAlgoD | ( | const DecompAlgoD & | ) | [private] |
Disable copy constructors.
DecompAlgoD::DecompAlgoD | ( | DecompApp * | app, | |
UtilParameters * | utilParam, | |||
double * | xhat, | |||
int | numOrigCols | |||
) | [inline] |
Default constructors.
Definition at line 143 of file DecompAlgoD.h.
References DECOMP, DecompAlgoStr, DecompAlgo::initSetup(), and DecompAlgo::m_algo.
DecompAlgoD::DecompAlgoD | ( | DecompApp * | app, | |
UtilParameters * | utilParam, | |||
std::string & | paramSection, | |||
double * | xhat, | |||
int | numOrigCols | |||
) | [inline] |
Disable copy constructors.
Definition at line 160 of file DecompAlgoD.h.
References DECOMP, DecompAlgo::initSetup(), and DecompAlgo::m_algo.
DecompAlgoD::~DecompAlgoD | ( | ) | [inline] |
Destructor.
Definition at line 177 of file DecompAlgoD.h.
DecompAlgoD::DecompAlgoD | ( | const DecompAlgoD & | ) | [private] |
DecompAlgoD::DecompAlgoD | ( | DecompApp * | app, | |
double * | xhat, | |||
int | numOrigCols | |||
) | [inline] |
Definition at line 65 of file DecompAlgoD.h.
References m_numOrigCols, and m_xhatD.
DecompAlgoD::~DecompAlgoD | ( | ) | [inline] |
Definition at line 75 of file DecompAlgoD.h.
virtual void DecompAlgoD::createMasterProblem | ( | DecompVarList & | initVars | ) | [private, virtual] |
Create the master problem (all algorithms must define this function).
Reimplemented from DecompAlgo.
virtual void DecompAlgoD::masterMatrixAddArtCols | ( | CoinPackedMatrix * | masterM, | |
double * | colLB, | |||
double * | colUB, | |||
double * | objCoeff, | |||
std::vector< std::string > & | colNames, | |||
int | startRow, | |||
int | endRow, | |||
char | origOrBranch | |||
) | [private, virtual] |
Create the master problem (all algorithms must define this function).
virtual void DecompAlgoD::phaseUpdate | ( | DecompPhase & | phase, | |
DecompStatus & | status | |||
) | [private, virtual] |
Create the master problem (all algorithms must define this function).
Reimplemented from DecompAlgo.
virtual void DecompAlgoD::phaseDone | ( | ) | [private, virtual] |
Create the master problem (all algorithms must define this function).
Reimplemented from DecompAlgo.
virtual void DecompAlgoD::setObjBoundIP | ( | const double | thisBound | ) | [inline, private, virtual] |
Set the current integer bound and update best/history.
Reimplemented from DecompAlgo.
Definition at line 90 of file DecompAlgoD.h.
References DecompParam::LogDebugLevel, DecompAlgo::m_app, m_classTag, DecompAlgo::m_nodeStats, DecompAlgo::m_osLog, DecompApp::m_param, DecompAlgo::m_param, DecompNodeStats::objBest, UTIL_MSG, UtilDblToStr(), UtilPrintFuncBegin(), and UtilPrintFuncEnd().
void DecompAlgoD::solveD | ( | DecompCutList * | newCuts | ) | [inline] |
Create the master problem (all algorithms must define this function).
Definition at line 111 of file DecompAlgoD.h.
References DecompParam::LimitRoundCutIters, DecompParam::LimitRoundPriceIters, DecompParam::LimitTotalCutIters, DecompParam::LimitTotalPriceIters, m_newCuts, DecompAlgo::m_param, DecompAlgo::processNode(), and DecompParam::SolveMasterAsIp.
DecompAlgoD& DecompAlgoD::operator= | ( | const DecompAlgoD & | ) | [private] |
Disable copy constructors.
Reimplemented from DecompAlgo.
DecompAlgoD& DecompAlgoD::operator= | ( | const DecompAlgoD & | ) | [private] |
Reimplemented from DecompAlgo.
void DecompAlgoD::solveD | ( | DecompCutList * | newCuts | ) | [inline] |
Definition at line 34 of file DecompAlgoD.h.
References DecompParam::LimitRoundCutIters, DecompParam::LimitRoundPriceIters, DecompParam::LimitTotalCutIters, DecompParam::LimitTotalPriceIters, DecompAlgo::m_app, m_newCuts, DecompApp::m_param, and DecompAlgo::solve().
void DecompAlgoD::createMasterProblem | ( | DecompVarList & | initVars | ) | [virtual] |
Create the master problem (all algorithms must define this function).
Reimplemented from DecompAlgo.
decompPhase DecompAlgoD::phaseUpdate | ( | const decompPhase | phase, | |
const decompStat | stat, | |||
int & | n_newCuts, | |||
int & | n_newVars, | |||
int & | n_cutCalls, | |||
int & | n_priceCalls | |||
) |
decompPhase DecompAlgoD::phaseUpdate | ( | const decompPhase | phase, | |
const decompStat | stat | |||
) | [virtual] |
Reimplemented from DecompAlgo.
void DecompAlgoD::recomposeSolution | ( | const double * | solution, | |
double * | rsolution | |||
) | [virtual] |
Compose solution in x-space from current space.
Reimplemented from DecompAlgo.
std::string DecompAlgoD::m_classTag [private] |
Store the name of the class (for logging/debugging) - "who am I?".
Reimplemented from DecompAlgo.
Definition at line 49 of file DecompAlgoD.h.
Referenced by setObjBoundIP().
double * DecompAlgoD::m_xhatD [private] |
Store the name of the class (for logging/debugging) - "who am I?".
Definition at line 52 of file DecompAlgoD.h.
Referenced by DecompAlgoD().
DecompCutList * DecompAlgoD::m_newCuts [private] |
Store the name of the class (for logging/debugging) - "who am I?".
Definition at line 54 of file DecompAlgoD.h.
Referenced by solveD().
int DecompAlgoD::m_numOrigCols [private] |
Store the name of the class (for logging/debugging) - "who am I?".
Reimplemented from DecompAlgo.
Definition at line 56 of file DecompAlgoD.h.
Referenced by DecompAlgoD().
const char* DecompAlgoD::classTag [static, private] |
Reimplemented from DecompAlgoPC.
Definition at line 29 of file DecompAlgoD.h.