alpaqa 0.0.1
Nonconvex constrained optimization
solverstatus.hpp
Go to the documentation of this file.
1#pragma once
2#include <iosfwd>
3
4namespace alpaqa {
5
6/// Exit status of a numerical solver such as ALM or PANOC.
7enum class SolverStatus {
8 Unknown = 0, ///< Initial value.
9 Converged, ///< Converged and reached given tolerance.
10 MaxTime, ///< Maximum allowed execution time exceeded.
11 MaxIter, ///< Maximum number of iterations exceeded.
12 NotFinite, ///< Intermediate results were infinite or not-a-number.
13 NoProgress, ///< No progress was made in the last iteration.
14 Interrupted, ///< Solver was interrupted by the user.
15};
16
17/// @related SolverStatus
18const char *enum_name(SolverStatus);
19/// @related SolverStatus
20std::ostream &operator<<(std::ostream &, SolverStatus);
21
22} // namespace alpaqa
SolverStatus
Exit status of a numerical solver such as ALM or PANOC.
Definition: solverstatus.hpp:7
@ Interrupted
Solver was interrupted by the user.
@ Unknown
Initial value.
@ MaxTime
Maximum allowed execution time exceeded.
@ NoProgress
No progress was made in the last iteration.
@ MaxIter
Maximum number of iterations exceeded.
@ Converged
Converged and reached given tolerance.
@ NotFinite
Intermediate results were infinite or not-a-number.
const char * enum_name(PANOCStopCrit s)
std::ostream & operator<<(std::ostream &os, PANOCStopCrit s)