48 rhs(1) = -x(0) - (1.0-u*u)*x(1) + w;
49 rhs(2) = x(0)*x(0) + u*u;
65 rhs1 =
model( x1, u, ww );
67 f <<
dot(x1(0)) == rhs1(0);
68 f <<
dot(x1(1)) == rhs1(1);
69 f <<
dot(x1(2)) == rhs1(2);
107 window.
addSubplot( P(0),
"Lyapunov matrix P(0)" );
108 window.
addSubplot( P(1),
"Lyapunov matrix P(1)" );
109 window.
addSubplot( P(2),
"Lyapunov matrix P(2)" );
110 window.
addSubplot( P(3),
"Lyapunov matrix P(3)" );
returnValue initializeControls(const char *fileName)
User-interface to formulate and solve optimal control problems and static NLPs.
#define USING_NAMESPACE_ACADO
Expression forwardDerivative(const Expression &arg1, const Expression &arg2)
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
returnValue minimizeMayerTerm(const Expression &arg)
returnValue addSubplot(PlotWindowSubplot &_subplot)
returnValue set(OptionsName name, int value)
Base class for all variables within the symbolic expressions family.
returnValue initializeDifferentialStates(const char *fileName, BooleanType autoinit=BT_FALSE)
Data class for defining optimal control problems.
void rhs(const real_t *x, real_t *f)
Expression dot(const Expression &arg)
USING_NAMESPACE_ACADO Expression model(const Expression &x, const Expression &u, const Expression &w)
returnValue getControls(VariablesGrid &p_) const
Provides an interface to Gnuplot for plotting algorithmic outputs.
virtual returnValue solve()
returnValue getDifferentialStates(VariablesGrid &xd_) const
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.