15 #ifndef GAP_DECOMPAPP_INCLUDED
16 #define GAP_DECOMPAPP_INCLUDED
19 #include "DecompApp.h"
64 const double* redCostX,
66 list<DecompVar*>& vars);
70 ostream* os = &cout)
const;
107 map<string, DecompConstraintSet*>::const_iterator it;
111 cout <<
"Error: model with name " << modelName <<
" not defined."
void UtilDeleteVectorPtr(vector< T * > &vectorPtr, typename vector< T * >::iterator first, typename vector< T * >::iterator last)
vector< GAP_KnapPisinger * > m_knap
GAP_Knapsack object for each knapsack row.
const int getIndexIJ(const int i, const int j) const
Guts of constructor.
DecompSolverStatus solveRelaxed(const int whichBlock, const double *redCostX, const double target, list< DecompVar * > &vars)
Solve the relaxed problem.
const int getNTasks() const
void printOriginalColumn(const int index, ostream *os=&cout) const
Print an original column (format for this app).
const GAP_Instance & getInstance() const
Guts of constructor.
virtual ~GAP_DecompApp()
Default constructor.
const double * getObjective() const
Guts of constructor.
GAP_DecompParam m_appParam
Application specific parameters.
GAP_Instance m_instance
GAP problem instance data.
void dumpSettings(ostream *os=&cout)
GAP_DecompApp(UtilParameters &utilParam)
Default constructor.
DecompConstraintSet * getModel(string modelName) const
Guts of constructor.
const int getOffsetI(const int i) const
TODO comment.
map< string, DecompConstraintSet * > m_models
The various model constraint systems used for different algorithms, keyed by a unique string (model n...
int createModels()
TODO comment.
int createModelPartAP(DecompConstraintSet *model)
Guts of constructor.
void getSettings(UtilParameters &utilParam)
double * m_objective
The model objective coefficients (original space).
const string m_classTag
Class id tag (for log / debugging).
const GAP_DecompParam & getParam() const
Guts of constructor.
pair< int, int > getIndexInv(const int index) const
Guts of constructor.
void UtilDeleteMapPtr(std::map< S, T * > &mapPtr, typename std::map< S, T * >::iterator first, typename std::map< S, T * >::iterator last)
The main application class.
void initializeApp()
Guts of constructor.