1#ifndef ROBOTOC_CONSTRAINTS_PDIPM_HPP_
2#define ROBOTOC_CONSTRAINTS_PDIPM_HPP_
39 const int start,
const int size);
78 const int start,
const int size);
100 const double residual,
const double cmpl);
134 const Eigen::VectorXd& vec,
135 const Eigen::VectorXd& dvec);
146 const double var,
const double dvar);
163 const int start,
const int size);
184 const double dslack,
const double cmpl);
193template <
typename VectorType>
195 const Eigen::MatrixBase<VectorType>& vec);
Data used in constraint components. Composed by slack, dual (Lagrange multiplier),...
Definition: constraint_component_data.hpp:17
double fractionToBoundary(const int dim, const double fraction_rate, const Eigen::VectorXd &vec, const Eigen::VectorXd &dvec)
Applies the fraction-to-boundary-rule.
Definition: pdipm.hxx:121
void computeCondensingCoeffcient(ConstraintComponentData &data)
Computes the coefficient of the condensing.
Definition: pdipm.hxx:66
void computeComplementarySlackness(const double barrier_param, ConstraintComponentData &data)
Computes the residual in the complementarity slackness between the slack and dual variables.
Definition: pdipm.hxx:27
void computeDualDirection(ConstraintComponentData &data)
Computes the direction of the dual variable from slack, primal residual, complementary slackness,...
Definition: pdipm.hxx:159
double fractionToBoundaryDual(const double fraction_rate, const ConstraintComponentData &data)
Applies the fraction-to-boundary-rule to the directions of the dual variables.
Definition: pdipm.hxx:112
void setSlackAndDualPositive(const double barrier_param, ConstraintComponentData &data)
Sets the slack and dual variables positive.
Definition: pdipm.hxx:13
double fractionToBoundarySlack(const double fraction_rate, const ConstraintComponentData &data)
Applies the fraction-to-boundary-rule to the directions of the slack variables.
Definition: pdipm.hxx:103
double logBarrier(const double barrier_param, const Eigen::MatrixBase< VectorType > &vec)
Computes the log barrier function.
Definition: pdipm.hxx:195
Definition: constraint_component_base.hpp:17