Bonmin  1.8.8
BonOACutGenerator2.hpp
Go to the documentation of this file.
1 // (C) Copyright Carnegie Mellon University 2005
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // P. Bonami, Carnegie Mellon University
7 //
8 // Date : 05/26/2005
9 
10 
11 #ifndef BonOACutGenerator2_HPP
12 #define BonOACutGenerator2_HPP
13 #include "BonOaDecBase.hpp"
14 
15 namespace Bonmin
16 {
19  {
20  public:
23 
26  :
27  OaDecompositionBase(copy),
28  subMip_(new SubMipSolver (*copy.subMip_))
29  {}
32 
33  void setStrategy(const CbcStrategy & strategy)
34  {
35  parameters_.setStrategy(strategy);
36  }
37 
38  virtual CglCutGenerator * clone() const
39  {
40  return new OACutGenerator2(*this);
41  }
43  static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
44 
45  protected:
47  virtual double performOa(OsiCuts & cs, solverManip &lpManip,
48  BabInfo * babInfo, double &cutoff, const CglTreeInfo & info) const;
50  virtual bool doLocalSearch(BabInfo * babInfo) const;
51 
52  private:
54  };
55 }
56 #endif
void setStrategy(const CbcStrategy &strategy)
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register OA options.
void setStrategy(const CbcStrategy &strategy)
Strategy to apply when using Cbc as MILP sub-solver.
Class to perform OA in its classical form.
A very simple class to provide a common interface for solving MIPs with Cplex and Cbc...
A class to have all elements necessary to setup a branch-and-bound.
OACutGenerator2(BabSetupBase &b)
Constructor with basic setup.
Parameters parameters_
Parameters.
virtual double performOa(OsiCuts &cs, solverManip &lpManip, BabInfo *babInfo, double &cutoff, const CglTreeInfo &info) const
virtual method which performs the OA algorithm by modifying lp and nlp.
virtual CglCutGenerator * clone() const
~OACutGenerator2()
Destructor.
Base class for OA algorithms.
OACutGenerator2(const OACutGenerator2 &copy)
Copy constructor.
virtual bool doLocalSearch(BabInfo *babInfo) const
virutal method to decide if local search is performed
Bonmin class for passing info between components of branch-and-cuts.
Definition: BonBabInfos.hpp:19