idol
A C++ Framework for Optimization
Loading...
Searching...
No Matches
GLPK.h
1//
2// Created by henri on 23/03/23.
3//
4
5#ifndef IDOL_GLPK_H
6#define IDOL_GLPK_H
7
8#include "idol/general/optimizers/OptimizerFactory.h"
9#include "idol/mixed-integer/modeling/objects/Env.h"
10
11namespace idol {
12 class GLPK;
13}
14
16 bool m_continuous_relaxation = false;
17
18 explicit GLPK(bool t_continuous_relaxation) : m_continuous_relaxation(t_continuous_relaxation) {}
19public:
20 GLPK() = default;
21
22 GLPK(const GLPK&) = default;
23 GLPK(GLPK&&) noexcept = default;
24
25 GLPK& operator=(const GLPK&) = delete;
26 GLPK& operator=(GLPK&&) noexcept = delete;
27
28 Optimizer *operator()(const Model &t_model) const override;
29
30 static GLPK ContinuousRelaxation();
31
32 [[nodiscard]] GLPK *clone() const override;
33
34 static Model read_from_file(Env& t_env, const std::string& t_filename);
35};
36
37
38#endif //IDOL_GLPK_H
Optimizer * operator()(const Model &t_model) const override
GLPK * clone() const override