Bonmin  1.8.7
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  }
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:
53  SubMipSolver * subMip_;
54  };
55 }
56 #endif
Class to perform OA in its classical form.
(C) Copyright International Business Machines Corporation 2007
virtual bool doLocalSearch(BabInfo *babInfo) const
virutal method to decide if local search is performed
OACutGenerator2(const OACutGenerator2 &copy)
Copy constructor.
A very simple class to provide a common interface for solving MIPs with Cplex and Cbc.
Parameters parameters_
Parameters.
Bonmin class for passing info between components of branch-and-cuts.
Definition: BonBabInfos.hpp:19
A class to have all elements necessary to setup a branch-and-bound.
void setStrategy(const CbcStrategy &strategy)
Strategy to apply when using Cbc as MILP sub-solver.
void setStrategy(const CbcStrategy &strategy)
~OACutGenerator2()
Destructor.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register OA options.
Base class for OA algorithms.
virtual CglCutGenerator * clone() const
OACutGenerator2(BabSetupBase &b)
Constructor with basic setup.
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.