idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
SimpleRounding.h
1//
2// Created by henri on 16.10.23.
3//
4
5#ifndef IDOL_SIMPLEROUNDING_H
6#define IDOL_SIMPLEROUNDING_H
7
8#include "idol/mixed-integer/optimizers/callbacks/CallbackFactory.h"
9#include "idol/mixed-integer/optimizers/callbacks/Callback.h"
10
11namespace idol::Heuristics {
12 class SimpleRounding;
13}
14
16
17 SimpleRounding(const SimpleRounding& t_src) = default;
18public:
19 SimpleRounding() = default;
20
21 class Strategy : public Callback {
22 protected:
23 void operator()(CallbackEvent t_event) override;
24 public:
25 };
26
27 Callback *operator()() override {
28
29 auto* result = new Strategy();
30
31 return result;
32 }
33
34 [[nodiscard]] CallbackFactory *clone() const override {
35 return new SimpleRounding(*this);
36 }
37
38};
39
40#endif //IDOL_SIMPLEROUNDING_H
void operator()(CallbackEvent t_event) override