DecompAlgoRC Class Reference

#include <DecompAlgoRC.h>

Inheritance diagram for DecompAlgoRC:
Inheritance graph
[legend]
Collaboration diagram for DecompAlgoRC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool isDone ()
const double * getRowPrice ()
void setInitObjUB (const double objUB)
void createMasterProblem (DecompVarList &initVars)
 Create the master problem (all algorithms must define this function).
decompStat solutionUpdate (const decompPhase phase, const int maxInnerIter, const int maxOuterIter)
int addCutsFromPool ()
int generateVars (const decompStat stat, DecompVarList &newVars, double &mostNegReducedCost)
bool isDone ()
const double * getRowPrice () const
 DecompAlgoRC (DecompApp *app)
 ~DecompAlgoRC ()

Private Member Functions

 DecompAlgoRC (const DecompAlgoRC &)
DecompAlgoRCoperator= (const DecompAlgoRC &)
Derived from pure virtual functions of DecompAlgo.



void createMasterProblem (DecompVarList &initVars)
 Create the master problem (all algorithms must define this function).
void recomposeSolution (const double *solution, double *rsolution)
 Compose solution in x-space from current space.
Derived from virtual functions of DecompAlgo



DecompStatus solutionUpdate (const DecompPhase phase, const int maxInnerIter, const int maxOuterIter)
 Run the initial phase for processing node.
int addCutsFromPool ()
 Run the initial phase for processing node.
int generateVars (const DecompStatus stat, DecompVarList &newVars, double &mostNegReducedCost)
 Run the initial phase for processing node.
bool updateObjBound (const double mostNegRC=-DecompBigNum)
 Run the initial phase for processing node.
DecompPhase phaseInit ()
 Run the initial phase for processing node.
void phaseDone ()
 Run the done phase for processing node.

Private Attributes

vector< double > m_u
DecompVarm_shatVar
Data.



const std::string m_classTag
 Store the name of the class (for logging/debugging) - "who am I?".
std::vector< double > m_u
 Store the name of the class (for logging/debugging) - "who am I?".
double * m_rc
 Store the name of the class (for logging/debugging) - "who am I?".
double m_UB
 Store the name of the class (for logging/debugging) - "who am I?".
double m_LB
 Store the name of the class (for logging/debugging) - "who am I?".
int m_cntSameLB
 Store the name of the class (for logging/debugging) - "who am I?".
int m_iter
 Store the name of the class (for logging/debugging) - "who am I?".
double m_step
 Store the name of the class (for logging/debugging) - "who am I?".
bool m_zeroSub
 Store the name of the class (for logging/debugging) - "who am I?".
DecompVar m_shatVar
 Store the name of the class (for logging/debugging) - "who am I?".

Static Private Attributes

static const char * m_classTag
 Store the name of the class (for logging/debugging) - "who am I?".

Constructors and destructor.



 DecompAlgoRC (const DecompAlgoRC &)
 Disable copy constructors.
DecompAlgoRCoperator= (const DecompAlgoRC &)
 Disable copy constructors.
 DecompAlgoRC (DecompApp *app, UtilParameters *utilParam)
 Default constructors.
 DecompAlgoRC (DecompApp *app, UtilParameters *utilParam, std::string &paramSection)
 Disable copy constructors.
 ~DecompAlgoRC ()
 Destructor.

Detailed Description

Todo:
Next: DecompAlgoVC - use Vol? or write from scratch?

Definition at line 25 of file DecompAlgoRC.h.


Constructor & Destructor Documentation

DecompAlgoRC::DecompAlgoRC ( const DecompAlgoRC  )  [private]

Disable copy constructors.

DecompAlgoRC::DecompAlgoRC ( DecompApp app,
UtilParameters utilParam 
) [inline]

Default constructors.

Definition at line 129 of file DecompAlgoRC.h.

References DecompAlgoStr, DecompAlgo::initSetup(), and RELAX_AND_CUT.

DecompAlgoRC::DecompAlgoRC ( DecompApp app,
UtilParameters utilParam,
std::string &  paramSection 
) [inline]

Disable copy constructors.

Definition at line 146 of file DecompAlgoRC.h.

References DecompAlgo::initSetup().

DecompAlgoRC::~DecompAlgoRC (  )  [inline]

Destructor.

Definition at line 166 of file DecompAlgoRC.h.

References m_rc, and UTIL_DELARR.

DecompAlgoRC::DecompAlgoRC ( const DecompAlgoRC  )  [private]
DecompAlgoRC::DecompAlgoRC ( DecompApp app  )  [inline]

Definition at line 72 of file DecompAlgoRC.h.

DecompAlgoRC::~DecompAlgoRC (  )  [inline]

Definition at line 85 of file DecompAlgoRC.h.

References m_rc, and UTIL_DELARR.


Member Function Documentation

void DecompAlgoRC::createMasterProblem ( DecompVarList initVars  )  [private, virtual]

Create the master problem (all algorithms must define this function).

Reimplemented from DecompAlgo.

void DecompAlgoRC::recomposeSolution ( const double *  solution,
double *  rsolution 
) [private, virtual]

Compose solution in x-space from current space.

  • PC: this recomposes x from lambda
  • C : this just copies over LP solution

Reimplemented from DecompAlgo.

DecompStatus DecompAlgoRC::solutionUpdate ( const DecompPhase  phase,
const int  maxInnerIter,
const int  maxOuterIter 
) [private, virtual]

Run the initial phase for processing node.

Reimplemented from DecompAlgo.

int DecompAlgoRC::addCutsFromPool (  )  [private, virtual]

Run the initial phase for processing node.

Reimplemented from DecompAlgo.

int DecompAlgoRC::generateVars ( const DecompStatus  stat,
DecompVarList newVars,
double &  mostNegReducedCost 
) [private, virtual]

Run the initial phase for processing node.

Reimplemented from DecompAlgo.

bool DecompAlgoRC::updateObjBound ( const double  mostNegRC = -DecompBigNum  )  [private, virtual]

Run the initial phase for processing node.

Reimplemented from DecompAlgo.

DecompPhase DecompAlgoRC::phaseInit (  )  [private]

Run the initial phase for processing node.

void DecompAlgoRC::phaseDone (  )  [private, virtual]

Run the done phase for processing node.

Reimplemented from DecompAlgo.

DecompAlgoRC& DecompAlgoRC::operator= ( const DecompAlgoRC  )  [private]

Disable copy constructors.

Reimplemented from DecompAlgo.

bool DecompAlgoRC::isDone (  )  [virtual]

Reimplemented from DecompAlgo.

const double* DecompAlgoRC::getRowPrice (  )  [inline]

Definition at line 180 of file DecompAlgoRC.h.

References m_u.

void DecompAlgoRC::setInitObjUB ( const double  objUB  )  [inline]

Definition at line 185 of file DecompAlgoRC.h.

References m_UB.

DecompAlgoRC& DecompAlgoRC::operator= ( const DecompAlgoRC  )  [private]

Reimplemented from DecompAlgo.

void DecompAlgoRC::createMasterProblem ( DecompVarList initVars  )  [virtual]

Create the master problem (all algorithms must define this function).

Reimplemented from DecompAlgo.

decompStat DecompAlgoRC::solutionUpdate ( const decompPhase  phase,
const int  maxInnerIter,
const int  maxOuterIter 
) [virtual]

Reimplemented from DecompAlgo.

int DecompAlgoRC::addCutsFromPool (  )  [virtual]

Reimplemented from DecompAlgo.

int DecompAlgoRC::generateVars ( const decompStat  stat,
DecompVarList newVars,
double &  mostNegReducedCost 
) [virtual]

Reimplemented from DecompAlgo.

bool DecompAlgoRC::isDone (  )  [virtual]

Reimplemented from DecompAlgo.

const double* DecompAlgoRC::getRowPrice (  )  const [inline, virtual]

Reimplemented from DecompAlgo.

Definition at line 67 of file DecompAlgoRC.h.

References m_u.


Member Data Documentation

const std::string DecompAlgoRC::m_classTag [private]

Store the name of the class (for logging/debugging) - "who am I?".

Reimplemented from DecompAlgo.

Definition at line 37 of file DecompAlgoRC.h.

std::vector<double> DecompAlgoRC::m_u [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 40 of file DecompAlgoRC.h.

Referenced by getRowPrice().

double * DecompAlgoRC::m_rc [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 41 of file DecompAlgoRC.h.

Referenced by ~DecompAlgoRC().

double DecompAlgoRC::m_UB [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 43 of file DecompAlgoRC.h.

Referenced by setInitObjUB().

double DecompAlgoRC::m_LB [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 44 of file DecompAlgoRC.h.

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 46 of file DecompAlgoRC.h.

int DecompAlgoRC::m_iter [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 47 of file DecompAlgoRC.h.

double DecompAlgoRC::m_step [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 48 of file DecompAlgoRC.h.

bool DecompAlgoRC::m_zeroSub [private]

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 49 of file DecompAlgoRC.h.

Store the name of the class (for logging/debugging) - "who am I?".

Definition at line 51 of file DecompAlgoRC.h.

const char* DecompAlgoRC::m_classTag [static, private]

Store the name of the class (for logging/debugging) - "who am I?".

Reimplemented from DecompAlgo.

Definition at line 35 of file DecompAlgoRC.h.

vector<double> DecompAlgoRC::m_u [private]

Definition at line 38 of file DecompAlgoRC.h.

Definition at line 48 of file DecompAlgoRC.h.


The documentation for this class was generated from the following files:

Generated on 5 Apr 2015 for Dip-All by  doxygen 1.6.1