AutoPas  3.0.0
Loading...
Searching...
No Matches
TuningMetricOption.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <set>
10
12
13namespace autopas {
14
18class TuningMetricOption : public Option<TuningMetricOption> {
19 public:
23 enum Value {
32 };
33
37 TuningMetricOption() = default;
38
43 constexpr TuningMetricOption(Value option) : _value(option) {}
44
49 constexpr operator Value() const { return _value; }
50
55 static std::set<TuningMetricOption> getDiscouragedOptions() { return {}; }
56
61 static std::map<TuningMetricOption, std::string> getOptionNames() {
62 return {
65 };
66 };
67
68 private:
69 Value _value{Value(-1)};
70};
71} // namespace autopas
Class representing the load estimator choices.
Definition: TuningMetricOption.h:18
constexpr TuningMetricOption(Value option)
Constructor from value.
Definition: TuningMetricOption.h:43
Value
Possible choices for the load estimation algorithm.
Definition: TuningMetricOption.h:23
@ energy
Optimize for least energy usage.
Definition: TuningMetricOption.h:31
@ time
Optimize for shortest simulation time.
Definition: TuningMetricOption.h:27
static std::map< TuningMetricOption, std::string > getOptionNames()
Provides a way to iterate over the possible choices of LoadEstimatorOption.
Definition: TuningMetricOption.h:61
static std::set< TuningMetricOption > getDiscouragedOptions()
Set of options that are very unlikely to be interesting.
Definition: TuningMetricOption.h:55
TuningMetricOption()=default
Constructor.
This is the main namespace of AutoPas.
Definition: AutoPasDecl.h:32