Bonmin 1.8.9
Loading...
Searching...
No Matches
BonLinearCutsGenerator.hpp
Go to the documentation of this file.
1// (C) Copyright International Business Machines Corporation 2007
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// Authors :
6// Pierre Bonami, International Business Machines Corporation
7//
8// Date : 10/06/2007
9
10#ifndef BonLinearCutsGenerator_H
11#define BonLinearCutsGenerator_H
12
13#include "CglCutGenerator.hpp"
14#include "CoinSmartPtr.hpp"
15#include "BonOuterApprox.hpp"
16#include "BonBonminSetup.hpp"
17#include <list>
18
19namespace Bonmin {
21 public:
24 {
26 std::string id;
29 bool normal;
31 atSolution(false),
32 normal(true)
33 {}
34
36 frequency(other.frequency),
37 id(other.id),
38 cgl(other.cgl),
40 normal(other.normal)
41 {}
42 };
45 methods_(){
46 }
47
48
50 CglCutGenerator(other),
51 methods_(other.methods_){
52 }
53
55 return new LinearCutsGenerator(*this);
56 }
57
59 }
60
61 bool needsOptimalBasis() { return false;}
62
64
65 void generateCuts(const OsiSolverInterface &solver, OsiCuts &cs,
66 const CglTreeInfo info = CglTreeInfo());
67
68 private:
69 std::list<Coin::SmartPtr<CuttingMethod> > methods_;
70};
71
72}/* Ends Bonmin namespace.*/
73
74#endif
75
A class to have all elements necessary to setup a branch-and-bound.
CglCutGenerator * clone() const
LinearCutsGenerator(const LinearCutsGenerator &other)
void generateCuts(const OsiSolverInterface &solver, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
void initialize(BabSetupBase &s)
(C) Copyright International Business Machines Corporation 2007
Type for cut generation method with its frequency and string identification.