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
7
namespace
robotoc
{
8
13
struct
PerformanceIndex
{
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
42
PerformanceIndex
&
operator+=
(
const
PerformanceIndex
& other);
43
47
PerformanceIndex
operator+
(
const
PerformanceIndex
& other)
const
;
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_
robotoc
Definition:
constraint_component_base.hpp:17
robotoc::PerformanceIndex
Performance index of optimal control problems.
Definition:
performance_index.hpp:13
robotoc::PerformanceIndex::setZero
void setZero()
Sets the all member variables zero.
robotoc::PerformanceIndex::operator<<
friend std::ostream & operator<<(std::ostream &os, const PerformanceIndex &kkt_residual)
robotoc::PerformanceIndex::disp
void disp(std::ostream &os) const
Displays the performance index onto a ostream.
robotoc::PerformanceIndex::isApprox
bool isApprox(const PerformanceIndex &other) const
Checks the equivalence of two PerformanceIndex.
robotoc::PerformanceIndex::cost_barrier
double cost_barrier
Cost value of slack barrier function.
Definition:
performance_index.hpp:22
robotoc::PerformanceIndex::kkt_error
double kkt_error
KKT error.
Definition:
performance_index.hpp:37
robotoc::PerformanceIndex::operator+=
PerformanceIndex & operator+=(const PerformanceIndex &other)
Overload the operator.
robotoc::PerformanceIndex::cost
double cost
Cost value.
Definition:
performance_index.hpp:17
robotoc::PerformanceIndex::primal_feasibility
double primal_feasibility
Primal feasiblity.
Definition:
performance_index.hpp:27
robotoc::PerformanceIndex::dual_feasibility
double dual_feasibility
Dual feasiblity.
Definition:
performance_index.hpp:32
robotoc::PerformanceIndex::operator+
PerformanceIndex operator+(const PerformanceIndex &other) const
Overload the operator.
include
robotoc
core
performance_index.hpp
Generated by
1.9.5