aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
merit-function.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include "aligator/fwd.hpp"
7
8namespace aligator {
9
10template <typename Scalar> class ConstraintProximalScalerTpl;
11
12template <typename Scalar>
14 const TrajOptDataTpl<Scalar> &prob_data);
15
47template <typename _Scalar> struct PDALFunction {
48 using Scalar = _Scalar;
57
60 static Scalar evaluate(const Scalar mudyn, const Scalar mucstr,
61 const TrajOptProblem &problem,
62 const std::vector<VectorXs> &lams,
63 const std::vector<VectorXs> &vs, Workspace &workspace);
64
65 static Scalar directionalDerivative(const Scalar mudyn, const Scalar mucstr,
66 const TrajOptProblem &problem,
67 const std::vector<VectorXs> &lams,
68 const std::vector<VectorXs> &vs,
69 Workspace &workspace);
70};
71
72} // namespace aligator
73
74#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
75#include "merit-function.txx"
76#endif
Forward declarations.
Main package namespace.
Scalar costDirectionalDerivative(const WorkspaceTpl< Scalar > &workspace, const TrajOptDataTpl< Scalar > &prob_data)
Convenience class to manage a stack of constraints.
Definition fwd.hpp:104
Primal-dual augmented Lagrangian merit function.
static Scalar evaluate(const Scalar mudyn, const Scalar mucstr, const TrajOptProblem &problem, const std::vector< VectorXs > &lams, const std::vector< VectorXs > &vs, Workspace &workspace)
Compute the merit function at the trial point.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
static Scalar directionalDerivative(const Scalar mudyn, const Scalar mucstr, const TrajOptProblem &problem, const std::vector< VectorXs > &lams, const std::vector< VectorXs > &vs, Workspace &workspace)
Data struct for stage models StageModelTpl.
Definition fwd.hpp:96
Base struct for function data.
Definition fwd.hpp:62
A stage in the control problem.
Definition fwd.hpp:93
Problem data struct.
Definition fwd.hpp:110
Trajectory optimization problem.
Definition fwd.hpp:107
Workspace for solver SolverProxDDP.
Definition workspace.hpp:28