Sleipnir C++ API
Loading...
Searching...
No Matches
options.hpp
1// Copyright (c) Sleipnir contributors
2
3#pragma once
4
5#include <chrono>
6#include <limits>
7
8namespace slp {
9
13template <typename Scalar>
14struct Options {
16 Scalar tolerance = Scalar(1e-8);
17
19 int max_iterations = 5000;
20
22 std::chrono::duration<double> timeout{
23 std::numeric_limits<double>::infinity()};
24
32 bool feasible_ipm = false;
33
38 bool diagnostics = false;
39};
40
41} // namespace slp
Definition options.hpp:14
Scalar tolerance
The solver will stop once the error is below this tolerance.
Definition options.hpp:16
std::chrono::duration< double > timeout
The maximum elapsed wall clock time before returning a solution.
Definition options.hpp:22
bool diagnostics
Definition options.hpp:38
int max_iterations
The maximum number of solver iterations before returning a solution.
Definition options.hpp:19
bool feasible_ipm
Definition options.hpp:32