Minotaur 0.4.1
Docs for developers
SOS.h
Go to the documentation of this file.
1//
2// Minotaur -- It's only 1/2 bull
3//
4// (C)opyright 2008 - 2025 The Minotaur Team.
5//
6
7
14#ifndef MINOTAURSOS_H
15#define MINOTAURSOS_H
16
17#include "Types.h"
18#include "Variable.h"
19
20namespace Minotaur {
21
22
23class SOS {
24public:
26 SOS();
27
28 SOS(int n, SOSType type, const double *weights, const VarVector &vars,
29 int priority, int id, std::string name);
30
32 virtual ~SOS();
33
34 int getId() const;
35 int getNz();
36 SOSType getType();
37 int getPriority() const;
38
39 std::string getName() const;
40 const double* getWeights();
41
42 VariableConstIterator varsBegin() const;
43 VariableConstIterator varsEnd() const;
44
45private:
47 int id_;
48
50 int n_;
51
53 int priority_;
54
56 SOSType type_;
57
59 double * weights_;
60
62 VarVector vars_;
63
65 std::string name_;
66
67};
68}
69#endif
70
Declare important 'types' used in Minotaur.
Define the Variable class.
Definition: SOS.h:23
SOS()
Default constructor.
Definition: SOS.cpp:25
virtual ~SOS()
Destroy.
Definition: SOS.cpp:49
Definition: ActiveNodeStore.h:20
SOSType
SOS types.
Definition: Types.h:134

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