Dip-All  0.91.0
SmallIP_DecompApp2.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 SMALLIP_DECOMPAPP2_INCLUDED
14 #define SMALLIP_DECOMPAPP2_INCLUDED
15 
16 //===========================================================================//
17 #include "DecompApp.h"
18 
19 //===========================================================================//
28 //===========================================================================//
29 class SmallIP_DecompApp : public DecompApp {
30 private:
32  const string m_classTag;
33 
35  double * m_objective;
36 
40 
42  OsiIpSolverInterface m_osi;
43 
44 public:
47  /* Create models. */
48  void createModels();
49 
50 public:
51  /* @name Inherited (from virtual) methods. */
52  virtual int generateInitVars(DecompVarList & initVars);
53  virtual DecompSolverStatus solveRelaxed(const int whichBlock,
54  const double * redCostX,
55  const double convexDual,
56  DecompVarList & varList);
57 
58 public:
60  DecompApp (utilParam),
61  m_classTag ("SMALL-APP"),
62  m_objective(NULL)
63  {
64  createModels();
65  }
66 
67  virtual ~SmallIP_DecompApp() {
69  };
70 };
71 
72 #endif
virtual DecompSolverStatus solveRelaxed(const int whichBlock, const double *redCostX, const double convexDual, DecompVarList &varList)
Initialize the dual vector for PhaseII of PC.
const string m_classTag
Class id tag (for log / debugging).
DecompConstraintSet m_modelPart2
OsiIpSolverInterface m_osi
OSI object to use with solveRelaxed.
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.
DecompSolverStatus
Definition: Decomp.h:170
std::list< DecompVar * > DecompVarList
Definition: Decomp.h:53
virtual int generateInitVars(DecompVarList &initVars)
Initialize the dual vector for PhaseII of PC.
The main application class.
Definition: DecompApp.h:50