![]() |
Sleipnir C++ API
|
Solver options. More...
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/optimization/solver/options.hpp>
Public Attributes | |
| double | tolerance = 1e-8 |
| The solver will stop once the error is below this tolerance. | |
| int | max_iterations = 5000 |
| The maximum number of solver iterations before returning a solution. | |
| std::chrono::duration< double > | timeout |
| The maximum elapsed wall clock time before returning a solution. | |
| bool | feasible_ipm = false |
| bool | diagnostics = false |
Solver options.
Enables diagnostic output.
See https://sleipnirgroup.github.io/Sleipnir/md_usage.html#output for more information.
Enables the feasible interior-point method.
When the inequality constraints are all feasible, step sizes are reduced when necessary to prevent them becoming infeasible again. This is useful when parts of the problem are ill-conditioned in infeasible regions (e.g., square root of a negative value). This can slow or prevent progress toward a solution though, so only enable it if necessary.
| std::chrono::duration<double> slp::Options::timeout |
The maximum elapsed wall clock time before returning a solution.