Minotaur 0.4.1
Docs for developers
SOSBrCand.h
Go to the documentation of this file.
1//
2// Minotaur -- It's only 1/2 bull
3//
4// (C)opyright 2009 - 2025 The Minotaur Team.
5//
6
14#ifndef MINOTAURSOSBRCAND_H
15#define MINOTAURSOSBRCAND_H
16
17#include <string>
18#include "Types.h"
19#include "BrCand.h"
20
21namespace Minotaur {
22
23class SOS;
24
29class SOSBrCand : public BrCand {
30public:
32 SOSBrCand();
33 SOSBrCand(const SOS* sos, VarVector &left, VarVector &right, double lsum,
34 double rsum);
35
37 ~SOSBrCand();
38
39 // base class method.
40 double getDDist();
41
42 double getLSum() const;
43
44 // base class method.
45 std::string getName() const;
46
47 double getRSum() const;
48
49 // base class method.
50 double getUDist();
51
52 VariableConstIterator lVarsBegin() const;
53
54 VariableConstIterator lVarsEnd() const;
55
56 VariableConstIterator rVarsBegin() const;
57
58 VariableConstIterator rVarsEnd() const;
59
60
61private:
63 VarVector lvars_;
64
66 VarVector rvars_;
67
68 double lsum_;
69 double rsum_;
70
71 const SOS* sos_;
72};
73
74typedef SOSBrCand* SOSBrCandPtr;
75}
76
77#endif
78
Declare the classes BranchCand storing candidates for branching.
Declare important 'types' used in Minotaur.
Base class for describing candidates for branching on a node in branch-and-bound.
Definition: BrCand.h:32
Derived class of BrCand, it defines candidates for branching on bounds SOS type 1 and 2 constraints.
Definition: SOSBrCand.h:29
double getDDist()
Definition: SOSBrCand.cpp:57
std::string getName() const
Display for debugging.
Definition: SOSBrCand.cpp:69
double getUDist()
Definition: SOSBrCand.cpp:81
SOSBrCand()
Constructor.
Definition: SOSBrCand.cpp:27
~SOSBrCand()
Destroy.
Definition: SOSBrCand.cpp:50
Definition: SOS.h:23
Definition: ActiveNodeStore.h:20

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