13 #ifndef MMKPMODEL_INCLUDED
14 #define MMKPMODEL_INCLUDED
17 #include "UtilMacros.h"
19 #include "DecompConstraintSet.h"
56 return getModel(m_appParam.ModelNameCore);
59 return getModel(m_appParam.ModelNameRelax);
63 map<string, DecompConstraintSet*>::const_iterator it;
64 it = m_models.find(modelName);
65 if(it == m_models.end()){
66 cout <<
"Error: model with name " << modelName <<
" not defined."
68 assert(it != m_models.end());
84 m_appParam.getSettings(utilParam);
85 if(m_appParam.LogLevel >= 1)
86 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)