![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/optimization/solver/util/filter.hpp>
Public Types | |
| using | DenseVector = Eigen::Vector< Scalar, Eigen::Dynamic > |
| Type alias for dense vector. | |
| using | SparseVector = Eigen::SparseVector< Scalar > |
| Type alias for sparse vector. | |
Public Member Functions | |
| constexpr | Filter (Scalar initial_constraint_violation=Scalar(0)) |
| void | reset () |
| Resets the filter. | |
| bool | try_add (const FilterEntry< Scalar > ¤t_entry, const FilterEntry< Scalar > &trial_entry, const DenseVector &p_x, const SparseVector &g, Scalar α) |
| bool | last_rejection_due_to_filter () const |
Public Attributes | |
| Scalar | min_constraint_violation |
| The minimum constraint violation. | |
| Scalar | max_constraint_violation |
| The maximum constraint violation. | |
Step filter.
See the section on filters in chapter 15 of [1].
| Scalar | Scalar type. |
|
inlineexplicitconstexpr |
Constructs an empty filter.
| initial_constraint_violation | The optimization problem's initial constraint violation. |
|
inline |
Returns true if the most recent trial entry rejection was due to the filter.
|
inline |
Returns true if the given trial entry is acceptable to the filter.
| current_entry | The entry corresponding to the current iterate. |
| trial_entry | The entry corresponding to the trial iterate. |
| p_x | Decision variable primal step. |
| g | Cost function gradient. |
| α | The step size (0, 1]. |