Bonmin  1.8.8
BonFpForMinlp.hpp
Go to the documentation of this file.
1 // (C) Copyright CNRS 2008
2 // All Rights Reserved.
3 // This code is published under the Eclipse Public License.
4 //
5 // Authors :
6 // P. Bonami, CNRS
7 //
8 // Date : 02/13/2009
9 
10 #ifndef BonFpForMinlp_H
11 #define BonFpForMinlp_H
12 #include "BonOaDecBase.hpp"
13 
14 namespace Bonmin{
16  public:
19 
22  :
23  OaDecompositionBase(copy),
24  subMip_(new SubMipSolver(*copy.subMip_)),
26  {}
29 
30  void setStrategy(const CbcStrategy & strategy)
31  {
32  parameters_.setStrategy(strategy);
33  }
34 
35  virtual CglCutGenerator * clone() const
36  {
37  return new MinlpFeasPump(*this);
38  }
40  static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
41 
42  protected:
44  virtual double performOa(OsiCuts & cs, solverManip &lpManip,
45  BabInfo * babInfo, double &cutoff, const CglTreeInfo & info) const;
47  virtual bool doLocalSearch(BabInfo * babInfo) const;
49  void set_fp_objective(OsiSolverInterface &si, const double * colsol) const;
50 
51  private:
55  };
56 
57 }/* End Namespace.*/
58 
59 #endif
60 
61 
SubMipSolver * subMip_
void setStrategy(const CbcStrategy &strategy)
int passBound_
Wether or not to pass bound to master algorithm.
void setStrategy(const CbcStrategy &strategy)
Strategy to apply when using Cbc as MILP sub-solver.
virtual CglCutGenerator * clone() const
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.
A very simple class to provide a common interface for solving MIPs with Cplex and Cbc...
~MinlpFeasPump()
Destructor.
A class to have all elements necessary to setup a branch-and-bound.
Parameters parameters_
Parameters.
virtual bool doLocalSearch(BabInfo *babInfo) const
virutal method to decide if local search is performed
MinlpFeasPump(BabSetupBase &b)
Constructor with basic setup.
void set_fp_objective(OsiSolverInterface &si, const double *colsol) const
Put objective of MIP according to FP scheme.
Base class for OA algorithms.
MinlpFeasPump(const MinlpFeasPump &copy)
Copy constructor.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register OA options.
Bonmin class for passing info between components of branch-and-cuts.
Definition: BonBabInfos.hpp:19