- 3.0.2 optimal control module.
DiscreteOptConProblem.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 //TODO if necessary, let DiscreteOptConProblem derive properly from
12 // OptConProblemBase and add constructor such that a discrete problem can be
13 // initialized from a continuous one
14 
15 template <size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR = double>
16 using DiscreteOptConProblem = OptConProblemBase<STATE_DIM,
17  CONTROL_DIM,
18  core::DiscreteControlledSystem<STATE_DIM, CONTROL_DIM, SCALAR>,
19  core::DiscreteLinearSystem<STATE_DIM, CONTROL_DIM, SCALAR>,
20  core::DiscreteSystemLinearizer<STATE_DIM, CONTROL_DIM, SCALAR>,
22 
23 } // namespace optcon
24 } // namespace ct
CppAD::AD< CppAD::cg::CG< double > > SCALAR
OptConProblemBase< STATE_DIM, CONTROL_DIM, core::DiscreteControlledSystem< STATE_DIM, CONTROL_DIM, SCALAR >, core::DiscreteLinearSystem< STATE_DIM, CONTROL_DIM, SCALAR >, core::DiscreteSystemLinearizer< STATE_DIM, CONTROL_DIM, SCALAR >, SCALAR > DiscreteOptConProblem
Definition: DiscreteOptConProblem.h:21