robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
Performance index of optimal control problems. More...
#include <performance_index.hpp>
Public Member Functions | |
PerformanceIndex & | operator+= (const PerformanceIndex &other) |
Overload the operator. More... | |
PerformanceIndex | operator+ (const PerformanceIndex &other) const |
Overload the operator. More... | |
void | setZero () |
Sets the all member variables zero. More... | |
bool | isApprox (const PerformanceIndex &other) const |
Checks the equivalence of two PerformanceIndex. More... | |
void | disp (std::ostream &os) const |
Displays the performance index onto a ostream. More... | |
Public Attributes | |
double | cost = 0.0 |
Cost value. More... | |
double | cost_barrier = 0.0 |
Cost value of slack barrier function. More... | |
double | primal_feasibility = 0.0 |
Primal feasiblity. More... | |
double | dual_feasibility = 0.0 |
Dual feasiblity. More... | |
double | kkt_error = 0.0 |
KKT error. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PerformanceIndex &kkt_residual) |
Performance index of optimal control problems.
void robotoc::PerformanceIndex::disp | ( | std::ostream & | os | ) | const |
Displays the performance index onto a ostream.
bool robotoc::PerformanceIndex::isApprox | ( | const PerformanceIndex & | other | ) | const |
Checks the equivalence of two PerformanceIndex.
[in] | other | Other object. |
PerformanceIndex robotoc::PerformanceIndex::operator+ | ( | const PerformanceIndex & | other | ) | const |
Overload the operator.
PerformanceIndex & robotoc::PerformanceIndex::operator+= | ( | const PerformanceIndex & | other | ) |
Overload the operator.
void robotoc::PerformanceIndex::setZero | ( | ) |
Sets the all member variables zero.
|
friend |
double robotoc::PerformanceIndex::cost = 0.0 |
Cost value.
double robotoc::PerformanceIndex::cost_barrier = 0.0 |
Cost value of slack barrier function.
double robotoc::PerformanceIndex::dual_feasibility = 0.0 |
Dual feasiblity.
double robotoc::PerformanceIndex::kkt_error = 0.0 |
KKT error.
double robotoc::PerformanceIndex::primal_feasibility = 0.0 |
Primal feasiblity.