15 #ifndef MMKPMODEL_INCLUDED
16 #define MMKPMODEL_INCLUDED
19 #include "UtilMacros.h"
21 #include "DecompConstraintSet.h"
58 return getModel(m_appParam.ModelNameCore);
61 return getModel(m_appParam.ModelNameRelax);
65 map<string, DecompConstraintSet*>::const_iterator it;
66 it = m_models.find(modelName);
67 if(it == m_models.end()){
68 cout <<
"Error: model with name " << modelName <<
" not defined."
70 assert(it != m_models.end());
86 m_appParam.getSettings(utilParam);
87 if(m_appParam.LogLevel >= 1)
88 m_appParam.dumpSettings();
DecompConstraintSet * getModelRelax() const
const double * getObjective() const
MMKP_Model(UtilParameters &utilParam)
Default constructor.
const MMKP_Instance & getInstance() const
const string m_classTag
Class id tag (for log / debugging).
const MMKP_Param & getParam() const
DecompConstraintSet * getModel(string modelName) const
DecompConstraintSet * getModelCore() const
~MMKP_Model()
Default constructor.
void UtilDeleteMapPtr(std::map< S, T * > &mapPtr, typename std::map< S, T * >::iterator first, typename std::map< S, T * >::iterator last)