Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
SolverConfig.h
1#pragma once
2
3#include <filesystem>
4#include <map>
5#include <string>
6
12 void init(std::string solver_name);
13 std::string name;
14 bool save_restore_supported{false};
15 bool use_save_restore{false};
16
17 public:
18 explicit SolverConfig(std::string name);
19 SolverConfig(SolverConfig&&) = default;
20 SolverConfig(const SolverConfig&) = default;
21 SolverConfig& operator=(const SolverConfig&) = default;
22 SolverConfig& operator=(SolverConfig&&) = default;
23
24 [[nodiscard]] std::string Name() const { return name; }
25 ~SolverConfig() = default;
26 bool operator==(const std::string& rhs) const;
27 SolverConfig& operator=(const std::string& rhs);
28 static std::filesystem::path FileName(const std::string& problemName,
29 const SolverConfig& solverName);
30};
Class to store the configuration of a solver Invariant: name is lowercase.
Definition SolverConfig.h:11