19 class DiehlSystem :
public core::ControlledSystem<1, 1>
32 derivative(0) = (1.0 + state(0)) * state(0) + control(0) + 0.1;
46 state_control_matrix_t
B_;
51 const double t = 0.0)
override 59 const double t = 0.0)
override 72 Eigen::Matrix<double, 1, 1> Q;
75 Eigen::Matrix<double, 1, 1> R;
78 Eigen::Matrix<double, 1, 1> x_nominal = x_final;
79 Eigen::Matrix<double, 1, 1> u_nominal;
80 u_nominal.setConstant(-0.1);
82 Eigen::Matrix<double, 1, 1> Q_final;
85 std::shared_ptr<CostFunctionQuadratic<1, 1>> quadraticCostFunction(
88 return quadraticCostFunction;
static const int control_dim
Definition: DiehlSystem.h:24
DiehlSystem * clone() const override
Definition: DiehlSystem.h:35
DiehlSystemLinear * clone() const override
Definition: DiehlSystem.h:65
ct::core::ControlVector< control_dim > u
Definition: LoadFromFileTest.cpp:21
state_matrix_t A_
Definition: DiehlSystem.h:45
Linear system class for the Diehl system.
Definition: DiehlSystem.h:39
A simple quadratic cost function.
Definition: CostFunctionQuadraticSimple.hpp:23
DiehlSystem()
Definition: DiehlSystem.h:26
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
const state_control_matrix_t & getDerivativeControl(const core::StateVector< 1 > &x, const core::ControlVector< 1 > &u, const double t=0.0) override
Definition: DiehlSystem.h:57
static const int state_dim
Definition: DiehlSystem.h:23
Dynamics class for the Diehl system.
Definition: DiehlSystem.h:20
void computeControlledDynamics(const core::StateVector< 1 > &state, const core::Time &t, const core::ControlVector< 1 > &control, core::StateVector< 1 > &derivative) override
Definition: DiehlSystem.h:27
ct::core::StateVector< state_dim > x
Definition: LoadFromFileTest.cpp:20
const state_matrix_t & getDerivativeState(const core::StateVector< 1 > &x, const core::ControlVector< 1 > &u, const double t=0.0) override
Definition: DiehlSystem.h:49
state_control_matrix_t B_
Definition: DiehlSystem.h:46
std::shared_ptr< CostFunctionQuadratic< 1, 1 > > createDiehlCostFunction(const core::StateVector< 1 > &x_final)
create a cost function of appropriate Dimensions for the Diehl system
Definition: DiehlSystem.h:70