Bonmin
1.7
|
00001 // (C) Copyright Carnegie Mellon University 2006 00002 // All Rights Reserved. 00003 // This code is published under the Common Public License. 00004 // 00005 // Authors : 00006 // Pierre Bonami, Carnegie Mellon University, 00007 // 00008 // Date : 03/15/2006 00009 00010 00011 #ifndef CbcOaStrategy_HPP 00012 #define CbcOaStrategy_HPP 00013 00014 #include "CbcStrategy.hpp" 00015 #include <string> 00016 #include "BonBabSetupBase.hpp" 00017 namespace Bonmin 00018 { 00020 class CbcStrategyChooseCuts : public CbcStrategyDefault { 00021 public: 00023 CbcStrategyChooseCuts(); 00025 CbcStrategyChooseCuts(BabSetupBase &s, const std::string & prefix); 00027 CbcStrategyChooseCuts(const CbcStrategyChooseCuts &other); 00029 CbcStrategy * clone() const{ 00030 return new CbcStrategyChooseCuts(*this); 00031 } 00033 void setup(BabSetupBase &s, const std::string &prefix); 00034 00036 virtual void setupCutGenerators(CbcModel & model); 00037 00038 private: 00040 int gen_freqs_[6]; 00042 int genFlag_; 00043 }; 00044 } 00045 #endif