Bonmin  1.8.8
BonCbcLpStrategy.hpp
Go to the documentation of this file.
1 // (C) Copyright Carnegie Mellon University 2006
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // Pierre Bonami, Carnegie Mellon University,
7 //
8 // Date : 03/15/2006
9 
10 
11 #ifndef CbcOaStrategy_HPP
12 #define CbcOaStrategy_HPP
13 
14 #include "CbcStrategy.hpp"
15 #include <string>
16 #include "BonBabSetupBase.hpp"
17 namespace Bonmin
18 {
20  class CbcStrategyChooseCuts : public CbcStrategyDefault {
21  public:
25  CbcStrategyChooseCuts(BabSetupBase &s, const std::string & prefix);
29  CbcStrategy * clone() const{
30  return new CbcStrategyChooseCuts(*this);
31  }
33  void setup(BabSetupBase &s, const std::string &prefix);
34 
36  virtual void setupCutGenerators(CbcModel & model);
37 
38  private:
40  int gen_freqs_[6];
42  int genFlag_;
43  };
44 }
45 #endif
A class to setup default strategy for Cbc specifying which cut generators to use. ...
void setup(BabSetupBase &s, const std::string &prefix)
Setup strategy.
CbcStrategyChooseCuts()
Default constructor.
A class to have all elements necessary to setup a branch-and-bound.
int gen_freqs_[6]
Generators frequencies.
CbcStrategy * clone() const
Virtual copy constructor.
virtual void setupCutGenerators(CbcModel &model)
Setup cut generators.
int genFlag_
Flag to say which cut generators to use.