- 3.0.2 optimal control module.
PolicyHandler-impl.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4  **********************************************************************************************************************/
5 
6 #pragma once
7 
8 namespace ct {
9 namespace optcon {
10 
11 template <typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
13 {
14 }
15 
16 template <typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
18 {
19 }
20 
21 template <typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
23  const SCALAR& TimeHorizon,
24  POLICY& policy)
25 {
26  policy = initialPolicy_;
27 }
28 
29 template <typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
31  POLICY& policy,
32  SCALAR& effectivelyTruncated)
33 {
34 }
35 
36 template <typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR>
38 {
39  initialPolicy_ = newPolicy;
40 }
41 
42 } // namespace optcon
43 } // namespace ct
virtual void designWarmStartingPolicy(const SCALAR &delay, const SCALAR &TimeHorizon, POLICY &policy)
design a warm-starting policy for the optimal control problem solver
Definition: PolicyHandler-impl.h:22
EIGEN_MAKE_ALIGNED_OPERATOR_NEW PolicyHandler()
Definition: PolicyHandler-impl.h:12
CppAD::AD< CppAD::cg::CG< double > > SCALAR
virtual void truncateSolutionFront(const SCALAR &delay, POLICY &policy, SCALAR &effectivelyTruncated)
a method required for additional post-truncation.
Definition: PolicyHandler-impl.h:30
virtual ~PolicyHandler()
Definition: PolicyHandler-impl.h:17
void setPolicy(const POLICY &newPolicy)
set new policy to policy handler
Definition: PolicyHandler-impl.h:37