idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
BranchingDecision.h
1//
2// Created by henri on 15.11.23.
3//
4
5#ifndef IDOL_BRANCHINGDECISION_H
6#define IDOL_BRANCHINGDECISION_H
7
8#include <utility>
9
10#include "idol/mixed-integer/modeling/variables/Var.h"
11#include "idol/mixed-integer/modeling/constraints/Ctr.h"
12#include "idol/mixed-integer/modeling/constraints/TempCtr.h"
13
14namespace idol {
15
17 Var variable;
18 CtrType type;
19 double bound;
20 VarBranchingDecision(Var t_variable, CtrType t_type, double t_bound) : variable(std::move(t_variable)), type(t_type), bound(t_bound) {}
21 };
22
24 Ctr constraint;
25 TempCtr temporary_constraint;
26 CtrBranchingDecision(Ctr t_constraint, TempCtr&& t_temporary_constraint) : constraint(std::move(t_constraint)), temporary_constraint(t_temporary_constraint) {}
27 };
28
29}
30
31#endif //IDOL_BRANCHINGDECISION_H