Bonmin 1.8.9
Loading...
Searching...
No Matches
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
14namespace Bonmin{
16 public:
19
22 :
24 subMip_(new SubMipSolver(*copy.subMip_)),
25 passBound_(copy.passBound_)
26 {}
27
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 }
39
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:
52 SubMipSolver * subMip_;
54 int passBound_;
55 };
56
57}/* End Namespace.*/
58
59#endif
60
61
Bonmin class for passing info between components of branch-and-cuts.
A class to have all elements necessary to setup a branch-and-bound.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register OA options.
void set_fp_objective(OsiSolverInterface &si, const double *colsol) const
Put objective of MIP according to FP scheme.
virtual bool doLocalSearch(BabInfo *babInfo) const
virutal method to decide if local search is performed
virtual CglCutGenerator * clone() const
MinlpFeasPump(BabSetupBase &b)
Constructor with basic setup.
void setStrategy(const CbcStrategy &strategy)
~MinlpFeasPump()
Destructor.
MinlpFeasPump(const MinlpFeasPump &copy)
Copy constructor.
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.
Small class to manipulatee various things in an OsiSolverInterface and restore them.
Parameters parameters_
Parameters.
OaDecompositionBase(BabSetupBase &b, bool leaveSiUnchanged, bool reassignLpsolver)
New usefull constructor.
A very simple class to provide a common interface for solving MIPs with Cplex and Cbc.
(C) Copyright International Business Machines Corporation 2007