alpaqa develop
Nonconvex constrained optimization
Loading...
Searching...
No Matches
inner-solve-options.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <chrono>
6#include <optional>
7
8namespace alpaqa {
9
10template <Config Conf>
13 /// Return the final iterate and multipliers, even if the solver did not
14 /// converge.
16 /// Maximum run time (in addition to the inner solver's own timeout).
17 /// Zero means no timeout.
18 std::optional<std::chrono::nanoseconds> max_time = std::nullopt;
19 /// Desired tolerance (overrides the solver's own tolerance).
20 /// Zero means no tolerance (use solver's own tolerance).
22 /// Output stream to print to.
23 std::ostream *os = nullptr;
24 /// The current iteration of the outer solver.
25 unsigned outer_iter = 0;
26 /// Call @ref TypeErasedProblem::check() before starting to solve.
27 bool check = true;
28};
29
30} // namespace alpaqa
#define USING_ALPAQA_CONFIG(Conf)
Definition config.hpp:77
bool check
Call TypeErasedProblem::check() before starting to solve.
std::optional< std::chrono::nanoseconds > max_time
Maximum run time (in addition to the inner solver's own timeout).
real_t tolerance
Desired tolerance (overrides the solver's own tolerance).
typename Conf::real_t real_t
Definition config.hpp:86
bool always_overwrite_results
Return the final iterate and multipliers, even if the solver did not converge.
unsigned outer_iter
The current iteration of the outer solver.
constexpr const auto inf
Definition config.hpp:112
std::ostream * os
Output stream to print to.