Debian Codegraph @

Bonmin/src/Algorithms/BonCbcLpStrategy.hpp

raw
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 {
19 /** A class to setup default strategy for Cbc specifying which cut generators to use.*/
20 class CbcStrategyChooseCuts : public CbcStrategyDefault {
21 public:
22 /** Default constructor.*/
23 CbcStrategyChooseCuts();
24 /** Constructor with a setup. */
25 CbcStrategyChooseCuts(BabSetupBase &s, const std::string & prefix);
26 /** Copy constructor.*/
27 CbcStrategyChooseCuts(const CbcStrategyChooseCuts &other);
28 /** Virtual copy constructor.*/
29 CbcStrategy * clone() const{
30 return new CbcStrategyChooseCuts(*this);
31 }
32 /** Setup strategy.*/
33 void setup(BabSetupBase &s, const std::string &prefix);
34
35 /// Setup cut generators
36 virtual void setupCutGenerators(CbcModel & model);
37
38 private:
39 /** Generators frequencies.*/
40 int gen_freqs_[6];
41 /** Flag to say which cut generators to use.*/
42 int genFlag_;
43 };
44 }
45 #endif