1#ifndef ROBOTOC_CONSTRAINTS_DATA_HXX_
2#define ROBOTOC_CONSTRAINTS_DATA_HXX_
13 err += data.KKTError();
18 err += data.KKTError();
23 err += data.KKTError();
28 err += data.KKTError();
39 lb += data.log_barrier;
44 lb += data.log_barrier;
49 lb += data.log_barrier;
54 lb += data.log_barrier;
63 double feasibility = 0.0;
66 feasibility += data.template primalFeasibility<p>();
71 feasibility += data.template primalFeasibility<p>();
76 feasibility += data.template primalFeasibility<p>();
81 feasibility += data.template primalFeasibility<p>();
90 double feasibility = 0.0;
93 feasibility += data.template dualFeasibility<p>();
98 feasibility += data.template dualFeasibility<p>();
103 feasibility += data.template dualFeasibility<p>();
108 feasibility += data.template dualFeasibility<p>();
bool isPositionLevelValid() const
Checks wheather the position-level constraints are valid or not.
Definition: constraints_data.hpp:65
double primalFeasibility() const
Returns the lp norm of the primal feasibility, i.e., the constraint violation. Default norm is l1-nor...
Definition: constraints_data.hxx:62
std::vector< ConstraintComponentData > acceleration_level_data
The collection of the acceleration-level constraints data.
Definition: constraints_data.hpp:142
bool isVelocityLevelValid() const
Checks wheather the velocity-level constraints are valid or not.
Definition: constraints_data.hpp:73
bool isAccelerationLevelValid() const
Checks wheather the acceleration-level constraints are valid or not.
Definition: constraints_data.hpp:82
std::vector< ConstraintComponentData > velocity_level_data
The collection of the velocity-level constraints data.
Definition: constraints_data.hpp:137
bool isImpactLevelValid() const
Checks wheather the impact-level constraints are valid or not.
Definition: constraints_data.hpp:90
double KKTError() const
Returns the sum of the squared norm of the KKT error (primal residual and complementary slackness) of...
Definition: constraints_data.hxx:9
double dualFeasibility() const
Returns the lp norm of the dual feasibility. Default norm is l1-norm. You can also specify l-infty no...
Definition: constraints_data.hxx:89
double logBarrier() const
Returns the sum of the log-barrier of the slack variables of all the constraints.
Definition: constraints_data.hxx:35
std::vector< ConstraintComponentData > impact_level_data
The collection of the impact-level constraints data.
Definition: constraints_data.hpp:147
std::vector< ConstraintComponentData > position_level_data
The collection of the position-level constraints data.
Definition: constraints_data.hpp:132
Definition: constraint_component_base.hpp:17