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
11
namespace
idol::Heuristics {
12
class
SimpleRounding;
13
}
14
15
class
idol::Heuristics::SimpleRounding
:
public
CallbackFactory
{
16
17
SimpleRounding
(
const
SimpleRounding
& t_src) =
default
;
18
public
:
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
idol::CallbackFactory
Definition
CallbackFactory.h:13
idol::Callback
Definition
Callback.h:69
idol::Heuristics::SimpleRounding::Strategy
Definition
SimpleRounding.h:21
idol::Heuristics::SimpleRounding::Strategy::operator()
void operator()(CallbackEvent t_event) override
idol::Heuristics::SimpleRounding
Definition
SimpleRounding.h:15
lib
include
idol
mixed-integer
optimizers
callbacks
heuristics
SimpleRounding.h
Generated by
1.9.8