alpaqa
1.1.0a1
Nonconvex constrained optimization
Loading...
Searching...
No Matches
src
alpaqa
include
alpaqa
inner
inner-solve-options.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
alpaqa/config/config.hpp
>
4
5
#include <chrono>
6
#include <optional>
7
8
namespace
alpaqa
{
9
10
template
<Config Conf>
11
struct
InnerSolveOptions
{
12
USING_ALPAQA_CONFIG
(Conf);
13
/// Return the final iterate and multipliers, even if the solver did not
14
/// converge.
15
bool
always_overwrite_results
=
true
;
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).
21
real_t
tolerance
= 0;
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
config.hpp
USING_ALPAQA_CONFIG
#define USING_ALPAQA_CONFIG(Conf)
Definition
config.hpp:77
alpaqa
Definition
anderson.hpp:10
alpaqa::InnerSolveOptions< config_t >::check
bool check
Definition
inner-solve-options.hpp:27
alpaqa::InnerSolveOptions< config_t >::max_time
std::optional< std::chrono::nanoseconds > max_time
Definition
inner-solve-options.hpp:18
alpaqa::InnerSolveOptions< config_t >::tolerance
real_t tolerance
Definition
inner-solve-options.hpp:21
alpaqa::real_t
typename Conf::real_t real_t
Definition
config.hpp:86
alpaqa::InnerSolveOptions< config_t >::always_overwrite_results
bool always_overwrite_results
Definition
inner-solve-options.hpp:15
alpaqa::InnerSolveOptions< config_t >::outer_iter
unsigned outer_iter
Definition
inner-solve-options.hpp:25
alpaqa::InnerSolveOptions< config_t >::os
std::ostream * os
Definition
inner-solve-options.hpp:23
alpaqa::InnerSolveOptions
Definition
inner-solve-options.hpp:11
Generated on
for alpaqa by
1.14.0