Data for KKT check. More...
#include <roboptim/core/result-analyzer.hh>
Public Member Functions | |
KKTData () | |
bool | isValid () const |
Whether the input data is valid w.r.t. that query. More... | |
std::ostream & | print (std::ostream &o) const |
Print method. More... | |
Public Member Functions inherited from roboptim::ResultAnalyzer< T >::QueryData | |
bool | operator_bool () const |
Evaluate the query. More... | |
Public Attributes | |
gradient_t | grad_L |
vector_t | lambda |
Lagrange multipliers λ. More... | |
value_type | violation |
Constraint violation. More... | |
value_type | complementary_slackness |
Complementary slackness. More... | |
bool | dual_feasible |
Whether dual feasibility is satisfied. More... | |
value_type | eps |
Data for KKT check.
roboptim::ResultAnalyzer< T >::KKTData::KKTData | ( | ) |
|
virtual |
Whether the input data is valid w.r.t. that query.
Implements roboptim::ResultAnalyzer< T >::QueryData.
|
virtual |
Print method.
Implements roboptim::ResultAnalyzer< T >::QueryData.
References roboptim::fg::bold(), roboptim::decindent(), roboptim::fg::green(), roboptim::iendl(), roboptim::incindent(), roboptim::fg::red(), roboptim::fg::reset(), and roboptim::toDense().
value_type roboptim::ResultAnalyzer< T >::KKTData::complementary_slackness |
Complementary slackness.
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().
bool roboptim::ResultAnalyzer< T >::KKTData::dual_feasible |
Whether dual feasibility is satisfied.
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().
value_type roboptim::ResultAnalyzer< T >::KKTData::eps |
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().
gradient_t roboptim::ResultAnalyzer< T >::KKTData::grad_L |
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().
vector_t roboptim::ResultAnalyzer< T >::KKTData::lambda |
Lagrange multipliers λ.
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().
value_type roboptim::ResultAnalyzer< T >::KKTData::violation |
Constraint violation.
Referenced by roboptim::ResultAnalyzer< T >::checkKKT().