16#ifndef AlpsDecompModel_h_
17#define AlpsDecompModel_h_
78 std::string m_classTag;
114 m_classTag (
"ALPSM"),
116 m_decompAlgo (NULL) {
122 m_classTag (
"ALPSM"),
124 m_decompAlgo(decompAlgo) {
125 if (decompAlgo == NULL)
127 "AlpsDecompModel",
"AlpsDecompModel");
178 m_decompAlgo = decompAlgo;
207 return m_decompAlgo->getModelCore().getModel()->getNumRows();
214 return m_decompAlgo->getModelCore().getModel()->getNumCols();
221 return m_decompAlgo->getModelCore().getModel()->getColNames();
228 return m_decompAlgo->getModelCore().getModel()->getRowNames();
235 return m_decompAlgo->getXhatIPBest();
248 return m_nodesProcessed;
#define UtilException(msg, methodN, classN)
const int getNumCoreCols() const
Get number of cols in core decomp model.
DecompAlgo * getDecompAlgo()
Get a ptr to the decomp algorithm vector.
const int getNumNodesProcessed() const
AlpsDecompModel()
Default constructors.
AlpsExitStatus solve()
Solve with ALPS and DECOMP.
AlpsDecompParam & getParam()
virtual ~AlpsDecompModel()
Destructor.
AlpsDecompModel(UtilParameters &utilParam, DecompAlgo *decompAlgo)
const DecompSolution * getBestSolution() const
Get the best solution found.
const int getSolStatus() const
virtual AlpsTreeNode * createRoot()
Create the root node of the search tree.
const double getGlobalUB() const
void setAlpsSettings()
Set the ALPS parameters.
const int getNumCoreRows() const
Get number of rows in core decomp model.
virtual bool fathomAllNodes()
Return true, if all nodes can be fathomed.
void setDecompAlgo(DecompAlgo *decompAlgo)
Solve with ALPS and DECOMP.
const double getGlobalLB() const
const std::vector< std::string > & getRowNames() const
Get the row names in core decomp model.
const std::vector< std::string > & getColNames() const
Get the column names in core decomp model.
Parameters passed through to Alps.
Base class for DECOMP algorithms.