Minotaur 0.4.1
Docs for developers
CutPool.h
Go to the documentation of this file.
1//
2// Minotaur -- It's only 1/2 bull
3//
4// (C)opyright 2010 - 2025 The Minotaur Team.
5//
6
13#ifndef MINOTAURCUTPOOL_H
14#define MINOTAURCUTPOOL_H
15
16#include "Types.h"
17
18namespace Minotaur {
19
20class Environment;
21class Cut;
22class Problem;
23class Solution;
24
25typedef Environment* EnvironmentPtr;
26typedef Cut* CutPtr;
27typedef Solution* SolutionPtr;
28
29typedef std::vector<CutPtr> CutVector;
30typedef std::deque<CutPtr> CutQ;
31
36class CutPool {
37
38public:
41
44
47
49 void addCut(CutPtr cut);
50
52 void addCuts(CutVector cuts);
53
56
58 void removeCut(CutPtr cut);
59
61 void removeCuts(CutVector cuts);
62
64 void write(std::ostream &out) const;
65
66private:
68 EnvPtr env_;
69
71 LoggerPtr logger_;
72
74 CutQ glAct_;
75
77 CutQ glInact_;
78
80 const static std::string me_;
81};
82}
83#endif
84
Declare important 'types' used in Minotaur.
Definition: CutPool.h:36
~CutManager()
Destroy.
void removeCuts(CutVector cuts)
Remove a cut.
void write(std::ostream &out) const
Write to output.
void addCut(CutPtr cut)
Add to pool.
CutPool()
Default constructor.
void removeCut(CutPtr cut)
Remove a cut.
void addCuts(CutVector cuts)
Add to pool.
CutPtr findDup(CutPtr cut)
Find duplicate.
CutManager(EnvPtr env)
Constructor that loads the relaxation problem.
Store function, bounds and other information about a cut.
Definition: Cut.h:52
Definition: Environment.h:28
Definition: Logger.h:37
Definition: ActiveNodeStore.h:20

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025