#include <SmallIP_DecompApp.h>
Public Member Functions | |
Helper functions (public). | |
void | createModels () |
Create model parts. | |
virtual int | generateInitVars (DecompVarList &initVars) |
Initialize the dual vector for PhaseII of PC. | |
SmallIP_DecompApp (UtilParameters &utilParam) | |
virtual | ~SmallIP_DecompApp () |
void | createModels () |
Create model parts. | |
virtual int | generateInitVars (DecompVarList &initVars) |
Initialize the dual vector for PhaseII of PC. | |
virtual DecompSolverStatus | solveRelaxed (const int whichBlock, const double *redCostX, const double convexDual, DecompVarList &varList) |
Initialize the dual vector for PhaseII of PC. | |
SmallIP_DecompApp (UtilParameters &utilParam) | |
virtual | ~SmallIP_DecompApp () |
Private Attributes | |
const string | m_classTag |
Class id tag (for log / debugging). | |
double * | m_objective |
The model objective coefficients (original space). | |
DecompConstraintSet | m_modelPart1 |
The various model constraint systems used for different algos. | |
DecompConstraintSet | m_modelPart2 |
OsiIpSolverInterface | m_osi |
OSI object to use with solveRelaxed. |
A DecompApp to illustrate a basic usage of Decomp.
Definition at line 31 of file SmallIP_DecompApp.h.
SmallIP_DecompApp::SmallIP_DecompApp | ( | UtilParameters & | utilParam | ) | [inline] |
Definition at line 54 of file SmallIP_DecompApp.h.
References createModels().
virtual SmallIP_DecompApp::~SmallIP_DecompApp | ( | ) | [inline, virtual] |
Definition at line 62 of file SmallIP_DecompApp.h.
References m_objective, and UTIL_DELARR.
SmallIP_DecompApp::SmallIP_DecompApp | ( | UtilParameters & | utilParam | ) | [inline] |
Definition at line 59 of file SmallIP_DecompApp2.h.
References createModels().
virtual SmallIP_DecompApp::~SmallIP_DecompApp | ( | ) | [inline, virtual] |
Definition at line 67 of file SmallIP_DecompApp2.h.
References m_objective, and UTIL_DELARR.
void SmallIP_DecompApp::createModels | ( | ) |
virtual int SmallIP_DecompApp::generateInitVars | ( | DecompVarList & | initVars | ) | [virtual] |
Initialize the dual vector for PhaseII of PC.
The user is passed a reference to the internal data and can manipulate it directly.
This is only called when dual stabilization is used, i.e., when m_param.DualStab > 0, at the first iteration of PhaseII of PC. The vector is immediately smoothed with the initial restricted master duals. By default, the restricted mater is used as the initial dual and, therefore, no smoothing occurs in the first iteration.
Reimplemented from DecompApp.
void SmallIP_DecompApp::createModels | ( | ) |
Create model parts.
Reimplemented from DecompApp.
virtual int SmallIP_DecompApp::generateInitVars | ( | DecompVarList & | initVars | ) | [virtual] |
Initialize the dual vector for PhaseII of PC.
The user is passed a reference to the internal data and can manipulate it directly.
This is only called when dual stabilization is used, i.e., when m_param.DualStab > 0, at the first iteration of PhaseII of PC. The vector is immediately smoothed with the initial restricted master duals. By default, the restricted mater is used as the initial dual and, therefore, no smoothing occurs in the first iteration.
Reimplemented from DecompApp.
virtual DecompSolverStatus SmallIP_DecompApp::solveRelaxed | ( | const int | whichBlock, | |
const double * | redCostX, | |||
const double | target, | |||
DecompVarList & | varList | |||
) | [virtual] |
Initialize the dual vector for PhaseII of PC.
The user is passed a reference to the internal data and can manipulate it directly.
This is only called when dual stabilization is used, i.e., when m_param.DualStab > 0, at the first iteration of PhaseII of PC. The vector is immediately smoothed with the initial restricted master duals. By default, the restricted mater is used as the initial dual and, therefore, no smoothing occurs in the first iteration.
Reimplemented from DecompApp.
const string SmallIP_DecompApp::m_classTag [private] |
Class id tag (for log / debugging).
Reimplemented from DecompApp.
Definition at line 34 of file SmallIP_DecompApp.h.
double * SmallIP_DecompApp::m_objective [private] |
The model objective coefficients (original space).
Reimplemented from DecompApp.
Definition at line 37 of file SmallIP_DecompApp.h.
Referenced by ~SmallIP_DecompApp().
The various model constraint systems used for different algos.
Definition at line 40 of file SmallIP_DecompApp.h.
Definition at line 41 of file SmallIP_DecompApp.h.
OsiIpSolverInterface SmallIP_DecompApp::m_osi [private] |
OSI object to use with solveRelaxed.
Definition at line 42 of file SmallIP_DecompApp2.h.