#include <PolicyHandler.h>
◆ PolicyHandler()
template<typename POLICY , size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR >
◆ ~PolicyHandler()
template<typename POLICY , size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR >
◆ designWarmStartingPolicy()
template<typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR >
design a warm-starting policy for the optimal control problem solver
Designs an initial guess for MPC (warm-start). An optimal strategy for warm-starting might be highly application/system dependent, thus the user can overload this method if desired. Straight-forward default implementations for common 'ct' solvers and policy types are provided in the folder "default". Note that the default policy handler simply performs "cold-starting" which means that the initially provided control policy is returned without modification.
- Parameters
-
delay | time difference between nominal starting time of the current policy and when the warm-start policy should start |
TimeHorizon | desired overall policy time horizon (note: not covering the whole time-horizon may result in an error) |
policy | the current policy, to be overwritten with the warm start |
◆ truncateSolutionFront()
template<typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR >
a method required for additional post-truncation.
post truncation may become relevant if the delay is underestimated or pre-integration is turned off.
- Parameters
-
delay | the time to truncate away from the solution |
policy | the policy to be truncated |
effectivelyTruncated | the time which was truncated away |
◆ setPolicy()
template<typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR >
set new policy to policy handler
◆ initialPolicy_
template<typename POLICY, size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR = double>
The documentation for this class was generated from the following files:
- /home/gim2rng/ct_devel_ws/src/control-toolbox/ct_optcon/include/ct/optcon/mpc/policyhandler/PolicyHandler.h
- /home/gim2rng/ct_devel_ws/src/control-toolbox/ct_optcon/include/ct/optcon/mpc/policyhandler/PolicyHandler-impl.h