Dip-All  0.91.0
SDPUC_DecompApp.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Author: Matthew Galati, Lehigh University //
8 // //
9 // Copyright (C) 2002-2015, Lehigh University, Matthew Galati, and Ted Ralphs//
10 // All Rights Reserved. //
11 //===========================================================================//
12 
13 #ifndef MCF_DECOMPAPP_INCLUDED
14 #define MCF_DECOMPAPP_INCLUDED
15 
16 //===========================================================================//
17 #include "DecompApp.h"
18 
19 //===========================================================================//
20 #include "SDPUC_Instance.h"
21 #include "SDPUC_Param.h"
22 //===========================================================================//
23 
24 //===========================================================================//
35 //===========================================================================//
36 class SDPUC_DecompApp : public DecompApp {
37 private:
39  const string m_classTag;
40 
43 
46 
48  double * m_objective;
49 
51  vector<DecompConstraintSet*> m_models;
52 
53 public:
57  void initializeApp(UtilParameters & utilParam);
58 
59  /* Create models. */
60  void createModels();
63  int commId);
65  int commId);
66  void createModelMasterOnlys(vector<int> & masterOnlyCols);
67 
68  /* Initialise solution */
70 
71  /* Get Instance */
73  /* Get Objective */
74  double * getObjective() {return m_objective;}
75 
76 public:
81  DecompApp (utilParam),
82  m_classTag ("SDPUC-APP"),
83  m_objective (NULL)
84  {
85  initializeApp(utilParam);
86  }
87 
88  virtual ~SDPUC_DecompApp() {
91  };
92 };
93 
94 #endif
void createModelMasterOnlys(vector< int > &masterOnlyCols)
Initialize application.
void initializeApp(UtilParameters &utilParam)
Initialize application.
void UtilDeleteVectorPtr(vector< T * > &vectorPtr, typename vector< T * >::iterator first, typename vector< T * >::iterator last)
Definition: UtilMacros.h:288
void createModelRelax(DecompConstraintSet *model, int commId)
Initialize application.
#define UTIL_DELARR(x)
Definition: UtilMacros.h:29
double * getObjective()
Initialize application.
void createModelCore(DecompConstraintSet *model)
Initialize application.
virtual ~SDPUC_DecompApp()
Default constructor.
void createModels()
Initialize application.
SDPUC_Instance m_instance
SDPUC problem instance data.
void createModelRelaxSparse(DecompConstraintSet *model, int commId)
Initialize application.
const string m_classTag
Class id tag (for log / debugging).
SDPUC_Param m_appParam
Application specific parameters.
SDPUC_Instance & getInstance()
Initialize application.
vector< DecompConstraintSet * > m_models
Model constraint systems.
SDPUC_DecompApp(UtilParameters &utilParam)
Default constructor.
double * m_objective
The model objective coefficients (original space).
DecompSolution createInitialSolution()
Initialize application.
The main application class.
Definition: DecompApp.h:50