smooth_feedback
Control and estimation on Lie groups
Loading...
Searching...
No Matches
Classes | Concepts | Functions
ocp.hpp File Reference

Optimal control problem definition. More...

#include <iostream>
#include <Eigen/Core>
#include <smooth/concepts/lie_group.hpp>
#include <smooth/diff.hpp>
#include "traits.hpp"
Include dependency graph for ocp.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  smooth::feedback::OCP< _X, _U, Theta, F, G, CR, CE >
 Optimal control problem definition. More...
 
struct  smooth::feedback::OCPSolution< _X, _U, _Nq, _Ncr, _Nce >
 Solution to OCP. More...
 

Concepts

concept  smooth::feedback::OCPType
 Concept that is true for OCP specializations.
 
concept  smooth::feedback::FlatOCPType
 Concept that is true for FlatOCP specializations.
 

Functions

template<diff::Type DT = diff::Type::Numerical>
bool smooth::feedback::test_ocp_derivatives (OCPType auto &ocp, uint32_t num_trials=1, double eps=1e-4)
 Test analytic derivatives for an OCP problem. More...
 

Detailed Description

Optimal control problem definition.

Definition in file ocp.hpp.

Function Documentation

◆ test_ocp_derivatives()

template<diff::Type DT = diff::Type::Numerical>
bool smooth::feedback::test_ocp_derivatives ( OCPType auto &  ocp,
uint32_t  num_trials = 1,
double  eps = 1e-4 
)

Test analytic derivatives for an OCP problem.

Template Parameters
DTdifferentiation method to compare against.
Parameters
ocpproblem to test derivatives for
num_trialsnumber of random points to test
Todo:
Make it possible to test a subset of derivatives

Definition at line 166 of file ocp.hpp.