Dip  0.92.4
SmallIP_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 // Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9 // Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10 // //
11 // Copyright (C) 2002-2019, Lehigh University, Matthew Galati, and Ted Ralphs//
12 // All Rights Reserved. //
13 //===========================================================================//
14 
15 #ifndef SMALLIP_DECOMPAPP_INCLUDED
16 #define SMALLIP_DECOMPAPP_INCLUDED
17 
18 //===========================================================================//
19 #include "DecompApp.h"
20 
21 using namespace std;
22 
23 //===========================================================================//
32 //===========================================================================//
33 class SmallIP_DecompApp : public DecompApp {
34 private:
36  const string m_classTag;
37 
39  double * m_objective;
40 
44 
45 public:
48  /* Create models. */
49  void createModels();
50 
51 public:
52  /* @name Inherited (from virtual) methods. */
53  virtual int generateInitVars(DecompVarList & initVars);
54 
55 public:
57  DecompApp (utilParam),
58  m_classTag ("SMALL-APP"),
59  m_objective(NULL)
60  {
61  createModels();
62  }
63 
64  virtual ~SmallIP_DecompApp() {
65  UTIL_DELARR(m_objective);
66  };
67 };
68 
69 #endif
const string m_classTag
Class id tag (for log / debugging).
DecompConstraintSet m_modelPart2
virtual ~SmallIP_DecompApp()
#define UTIL_DELARR(x)
Definition: UtilMacros.h:29
SmallIP_DecompApp(UtilParameters &utilParam)
double * m_objective
The model objective coefficients (original space).
DecompConstraintSet m_modelPart1
The various model constraint systems used for different algos.
std::list< DecompVar * > DecompVarList
Definition: Decomp.h:91
The main application class.
Definition: DecompApp.h:48