14 #include "CglGomory.hpp"
15 #include "CglProbing.hpp"
16 #include "CglKnapsackCover.hpp"
17 #include "CglOddHole.hpp"
18 #include "CglClique.hpp"
19 #include "CglFlowCover.hpp"
20 #include "CglMixedIntegerRounding2.hpp"
21 #include "CglTwomir.hpp"
22 #include "CglPreProcess.hpp"
23 #include "CbcCutGenerator.hpp"
26 #include "CbcCompareActual.hpp"
28 #include "CbcBranchActual.hpp"
42 CbcStrategyDefault(other),
43 genFlag_(other.genFlag_)
49 const std::string &
prefix):
57 const std::string &
prefix){
58 s.
options()->GetIntegerValue(
"number_strong_branch", numberStrong_, prefix);
59 s.
options()->GetIntegerValue(
"number_before_trust", numberBeforeTrust_, prefix);
90 bool has_cg(CbcModel &model,
const X& gen){
91 int numberGenerators = model.numberCutGenerators();
92 for (
int iGenerator=0;iGenerator<numberGenerators;iGenerator++) {
93 CglCutGenerator * generator = model.cutGenerator(iGenerator)->generator();
94 X * cgl =
dynamic_cast<X *
>(generator);
102 #define ADD_CG(model, gen, setting, name) model.addCutGenerator(&gen,setting, name)
107 probing.setUsingObjective(
true);
108 probing.setMaxPass(1);
109 probing.setMaxPassRoot(1);
111 probing.setMaxProbe(10);
113 probing.setMaxLook(10);
115 probing.setMaxElements(200);
116 probing.setMaxElementsRoot(300);
123 CglKnapsackCover cover;
126 clique.setStarCliqueReport(
false);
127 clique.setRowCliqueReport(
false);
129 CglMixedIntegerRounding2 mixedGen;
130 CglFlowCover flowGen;
A class to setup default strategy for Cbc specifying which cut generators to use. ...
void setup(BabSetupBase &s, const std::string &prefix)
Setup strategy.
CbcStrategyChooseCuts()
Default constructor.
A class to have all elements necessary to setup a branch-and-bound.
int gen_freqs_[6]
Generators frequencies.
void fint fint fint fint fint fint fint fint fint fint real real real real real real real real * s
virtual void setupCutGenerators(CbcModel &model)
Setup cut generators.
bool has_cg(CbcModel &model, const X &gen)
#define ADD_CG(model, gen, setting, name)
Ipopt::SmartPtr< Ipopt::OptionsList > options()
Acces list of Options.