14 #ifndef DECOMP_APP_INCLUDED 15 #define DECOMP_APP_INCLUDED 55 static const char* m_classTag;
91 map<int, DecompConstraintSet*> & modelCore,
92 map<int, DecompConstraintSet*> & modelRelax) = 0;
97 const double tolZero) {
102 vector<DecompSolution*> & xhatIPFeas) {
116 const double* redCostX,
117 const double* origCost,
119 const int n_origCols,
122 OsiSolverInterface* m_subprobSI,
123 list<DecompVar*> & vars) {
129 ostream* os = &cout)
const;
132 const double* solution,
133 ostream* os = &cout)
const;
147 map<int, DecompConstraintSet*>::iterator it;
std::map< int, DecompModel > m_modelRelax
Model data: the relaxed model(s) (A')
DecompModel m_modelCore
Model data: the core model (A'')
DecompModel m_model
Model data object.
virtual decompStat APPsolveRelaxed(const int whichModel, const double *redCostX, const double *origCost, const double alpha, const int n_origCols, const bool checkRC, const bool checkDup, OsiSolverInterface *m_subprobSI, list< DecompVar *> &vars)
DecompParam m_param
Parameters.
std::list< DecompCut * > DecompCutList
std::list< DecompVar * > DecompVarList
virtual int APPheuristics(const double *xhat, vector< DecompSolution *> &xhatIPFeas)
virtual void printOriginalSolution(const int n_cols, const std::vector< std::string > &colNames, const double *solution, std::ostream *os=&std::cout) const
void startupLog()
Print startup message to log.
virtual int generateCuts(const double *x, DecompCutList &newCuts)
std::ostream * m_osLog
Log file.
DecompApp(UtilParameters &utilParam)
Constructor for base DecompApp class.
virtual bool APPisUserFeasible(const double *x, const int n_cols, const double tolZero)
map< int, DecompConstraintSet * > m_modelCore
virtual void APPcreateModel(double *&objCoeff, map< int, DecompConstraintSet *> &modelCore, map< int, DecompConstraintSet *> &modelRelax)=0
map< int, DecompConstraintSet * > m_modelRelax
void getSettings(UtilParameters ¶m)
virtual int generateInitVars(DecompVarList &initVars)
The main application class.
ostream * m_osLog
Log file.
virtual void printOriginalColumn(const int index, std::ostream *os=&std::cout) const