![]() |
Sleipnir C++ API
|
#include <sleipnir/optimization/solver/util/filter.hpp>
Public Member Functions | |
| Filter () | |
| void | reset () |
| void | add (const FilterEntry< Scalar > &entry) |
| void | add (FilterEntry< Scalar > &&entry) |
| bool | try_add (const FilterEntry< Scalar > &entry, Scalar α) |
| bool | try_add (FilterEntry< Scalar > &&entry, Scalar α) |
| bool | is_acceptable (const FilterEntry< Scalar > &entry, Scalar α) |
| const FilterEntry< Scalar > & | back () const |
Public Attributes | |
| Scalar | max_constraint_violation {1e4} |
| The maximum constraint violation. | |
Step filter.
See the section on filters in chapter 15 of [1].
| Scalar | Scalar type. |
|
inline |
Constructs an empty filter.
|
inline |
Adds a new entry to the filter.
| entry | The entry to add to the filter. |
|
inline |
Adds a new entry to the filter.
| entry | The entry to add to the filter. |
|
inline |
Returns the most recently added filter entry.
|
inline |
Returns true if the given entry is acceptable to the filter.
| entry | The entry to check. |
| α | The step size (0, 1]. |
|
inline |
Resets the filter.
|
inline |
Returns true if the given iterate is accepted by the filter.
| entry | The entry to attempt adding to the filter. |
| α | The step size (0, 1]. |
|
inline |
Returns true if the given iterate is accepted by the filter.
| entry | The entry to attempt adding to the filter. |
| α | The step size (0, 1]. |