Minotaur 0.4.1
Docs for developers
BrVarCand.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
13#ifndef MINOTAURBRVARCAND_H
14#define MINOTAURBRVARCAND_H
15
16#include <string>
17#include "Types.h"
18#include "BrCand.h"
19
20namespace Minotaur {
21
26class BrVarCand : public BrCand {
27public:
29 BrVarCand(VariablePtr var, int i, double d, double u);
30
31 // Destroy.
32 ~BrVarCand();
33
34 // base class method.
35 double getDDist();
36
37 // base class method.
38 std::string getName() const;
39
40 // base class method.
41 double getUDist();
42
45
46 // base class method
47 void setDist(double ddist, double udist);
48
49private:
51 double dDist_;
52
54 double uDist_;
55
57 VariablePtr var_;
58
59};
60}
61
62#endif
63
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 of a variable.
Definition: BrVarCand.h:26
VariablePtr getVar()
Get the variable that we are branching on.
Definition: BrVarCand.cpp:61
std::string getName() const
Display for debugging.
Definition: BrVarCand.cpp:49
BrVarCand(VariablePtr var, int i, double d, double u)
Constructor.
Definition: BrVarCand.cpp:23
double getUDist()
Definition: BrVarCand.cpp:55
double getDDist()
Definition: BrVarCand.cpp:43
Definition: Variable.h:31
Definition: ActiveNodeStore.h:20

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