00001 //===========================================================================// 00002 // This file is part of the Decomp Solver Framework. // 00003 // // 00004 // Decomp is distributed under the Common Public License as part of the // 00005 // COIN-OR repository (http://www.coin-or.org). // 00006 // // 00007 // Author: Matthew Galati, Lehigh University // 00008 // // 00009 // Copyright (C) 2002-2015, Lehigh University, Matthew Galati, and Ted Ralphs// 00010 // All Rights Reserved. // 00011 //===========================================================================// 00012 00013 #ifndef SMALLIP_DECOMPAPP_INCLUDED 00014 #define SMALLIP_DECOMPAPP_INCLUDED 00015 00016 //===========================================================================// 00017 #include "DecompApp.h" 00018 00019 using namespace std; 00020 00021 //===========================================================================// 00030 //===========================================================================// 00031 class SmallIP_DecompApp : public DecompApp { 00032 private: 00034 const string m_classTag; 00035 00037 double * m_objective; 00038 00040 DecompConstraintSet m_modelPart1; 00041 DecompConstraintSet m_modelPart2; 00042 00043 public: 00046 /* Create models. */ 00047 void createModels(); 00048 00049 public: 00050 /* @name Inherited (from virtual) methods. */ 00051 virtual int generateInitVars(DecompVarList & initVars); 00052 00053 public: 00054 SmallIP_DecompApp(UtilParameters & utilParam) : 00055 DecompApp (utilParam), 00056 m_classTag ("SMALL-APP"), 00057 m_objective(NULL) 00058 { 00059 createModels(); 00060 } 00061 00062 virtual ~SmallIP_DecompApp() { 00063 UTIL_DELARR(m_objective); 00064 }; 00065 }; 00066 00067 #endif