source: branches/devel/Bonmin/src/CbcBonmin/BonCbcLpStrategy.hpp @ 62

Last change on this file since 62 was 62, checked in by pbonami, 13 years ago

astyled the devel branch

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 1.6 KB
Line 
1// (C) Copyright Carnegie Mellon University 2006
2// All Rights Reserved.
3// This code is published under the Common 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"
15namespace Bonmin
16{
17  /** A class to pass on a CbcStrategy to OA sub-milp solver.
18   This class allows to setup GMI, MIR, probing and cover cuts frequency.
19  Number of variables to strong branch on and minimum number of branches on a variable before its
20  pseudo-cost is to be trusted.*/
21  class CbcOaStrategy : public CbcStrategy
22  {
23  public:
24    /// Default constructor
25    CbcOaStrategy(
26      int migFreq = -5,
27      int probFreq = -5,
28      int mirFreq = -5,
29      int coverFreq = -5,
30      int minReliability = 8,
31      int numberStrong = 20,
32      int nodeSelection = 0,
33      double intTol = 1e-05,
34      int logLevel = 0);
35    /// Destructor
36    virtual ~CbcOaStrategy()
37    {}
38
39    /// Virtual copy constructor
40    virtual CbcStrategy * clone () const;
41
42    /// Setup cut generators
43    virtual void setupCutGenerators(CbcModel & model);
44    /// Setup heuristics
45    virtual void setupHeuristics(CbcModel & model);
46    /// Do printing stuff
47    virtual void setupPrinting(CbcModel & model,int modelLogLevel);
48    /// Other stuff e.g. strong branching and preprocessing
49    virtual void setupOther(CbcModel & model);
50
51
52  private:
53    int migFreq_;
54    int probFreq_;
55    int mirFreq_;
56    int coverFreq_;
57    int minReliability_;
58    int numberStrong_;
59    int nodeSelection_;
60    double intTol_;
61    int logLevel_;
62  };
63}
64#endif
Note: See TracBrowser for help on using the repository browser.