Minotaur 0.4.1
Docs for developers
PreSubstVars.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
14#ifndef MINOTAURPRESUBSTVARS_H
15#define MINOTAURPRESUBSTVARS_H
16
17#include "PreMod.h"
18#include "Variable.h"
19
20namespace Minotaur {
21
23 VariablePtr vout;
25 double rat;
26};
27
28class PreSubstVars : public PreMod {
29public:
32
35
37 void insert(VariablePtr vout, VariablePtr vin, double rat = 1.0);
38
40 void postsolveGetX(const DoubleVector &x, DoubleVector *newx);
41
43 UInt getSize();
44
45private:
46 std::deque<PreSubstVarData*> vars_;
47
48};
49
51}
52#endif
53
Declare the PreMod class for saving changes in presolve.
Define the Variable class.
Definition: PreMod.h:25
Definition: PreSubstVars.h:28
UInt getSize()
Return the number of substitutions.
Definition: PreSubstVars.cpp:66
~PreSubstVars()
Destroy.
Definition: PreSubstVars.cpp:24
PreSubstVars()
Constructor.
Definition: PreSubstVars.cpp:18
void postsolveGetX(const DoubleVector &x, DoubleVector *newx)
Restore x.
Definition: PreSubstVars.cpp:44
void insert(VariablePtr vout, VariablePtr vin, double rat=1.0)
Substitute variable 'vin' by variable 'vout'.
Definition: PreSubstVars.cpp:34
Definition: Variable.h:31
Definition: ActiveNodeStore.h:20
unsigned int UInt
Unsigned integer.
Definition: Types.h:30
Definition: PreSubstVars.h:22
UInt vinInd
Number of nlps solved.
Definition: PreSubstVars.h:24
double rat
Number of nlps feasible.
Definition: PreSubstVars.h:25

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