robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
performance_index.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_PERFORMANCE_INDEX_HPP_
2#define ROBOTOC_PERFORMANCE_INDEX_HPP_
3
4#include <iostream>
5
6
7namespace robotoc {
8
17 double cost = 0.0;
18
22 double cost_barrier = 0.0;
23
27 double primal_feasibility = 0.0;
28
32 double dual_feasibility = 0.0;
33
37 double kkt_error = 0.0;
38
43
48
52 void setZero();
53
59 bool isApprox(const PerformanceIndex& other) const;
60
64 void disp(std::ostream& os) const;
65
66 friend std::ostream& operator<<(std::ostream& os,
67 const PerformanceIndex& kkt_residual);
68};
69
70} // namespace robotoc
71
72#endif // ROBOTOC_PERFORMANCE_INDEX_HPP_
Definition: constraint_component_base.hpp:17
Performance index of optimal control problems.
Definition: performance_index.hpp:13
void setZero()
Sets the all member variables zero.
friend std::ostream & operator<<(std::ostream &os, const PerformanceIndex &kkt_residual)
void disp(std::ostream &os) const
Displays the performance index onto a ostream.
bool isApprox(const PerformanceIndex &other) const
Checks the equivalence of two PerformanceIndex.
double cost_barrier
Cost value of slack barrier function.
Definition: performance_index.hpp:22
double kkt_error
KKT error.
Definition: performance_index.hpp:37
PerformanceIndex & operator+=(const PerformanceIndex &other)
Overload the operator.
double cost
Cost value.
Definition: performance_index.hpp:17
double primal_feasibility
Primal feasiblity.
Definition: performance_index.hpp:27
double dual_feasibility
Dual feasiblity.
Definition: performance_index.hpp:32
PerformanceIndex operator+(const PerformanceIndex &other) const
Overload the operator.