Loading...
Searching...
No Matches
BranchAndCut.h
1//
2// Created by henri on 11.04.25.
3//
4
5#ifndef IDOL_BILEVEL_BRANCHANDCUT_H
6#define IDOL_BILEVEL_BRANCHANDCUT_H
7
8#include "idol/general/optimizers/OptimizerFactory.h"
9#include "idol/bilevel/optimizers/BilevelOptimizerInterface.h"
10#include <memory>
11
12namespace idol::Bilevel {
13 class BranchAndCut;
14}
15
17 const Bilevel::Description* m_description = nullptr;
18 std::unique_ptr<OptimizerFactory> m_optimizer_for_sub_problems;
19protected:
20 [[nodiscard]] Optimizer *create(const Model &t_model) const override;
21public:
22 BranchAndCut() = default;
23
24 explicit BranchAndCut(const Bilevel::Description& t_description);
25
26 BranchAndCut(const BranchAndCut& t_src);
27 BranchAndCut(BranchAndCut&&) noexcept = delete;
28
29 BranchAndCut& operator=(const BranchAndCut&) = delete;
30 BranchAndCut& operator=(BranchAndCut&&) noexcept = delete;
31
32 BranchAndCut& with_sub_problem_optimizer(const OptimizerFactory& t_optimizer);
33
34 void set_bilevel_description(const Description &t_bilevel_description) override;
35
36 [[nodiscard]] Bilevel::BranchAndCut *clone() const override;
37};
38
39#endif //IDOL_BILEVEL_BRANCHANDCUT_H