alpaqa cmake-targets
Nonconvex constrained optimization
Loading...
Searching...
No Matches
solver-driver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "options.hpp"
4#include "results.hpp"
5#include <functional>
6#include <memory>
7
9using solver_func_t = std::function<solver_free_func_t>;
10
12 virtual ~SolverWrapper() = default;
13 [[nodiscard]] virtual bool has_statistics() const { return false; }
14 virtual void write_statistics_to_stream(std::ostream &) {}
17};
18
19using SharedSolverWrapper = std::shared_ptr<SolverWrapper>;
20
22 std::function<SharedSolverWrapper(std::string_view, Options &)>;
SolverResults(LoadedProblem &, std::ostream &) solver_free_func_t
std::function< solver_free_func_t > solver_func_t
std::function< SharedSolverWrapper(std::string_view, Options &)> solver_builder_func
std::shared_ptr< SolverWrapper > SharedSolverWrapper
virtual void write_statistics_to_stream(std::ostream &)
SolverWrapper(solver_func_t run)
solver_func_t run
virtual ~SolverWrapper()=default
virtual bool has_statistics() const