40 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[] )
68 f <<
dot(vB) == ( -kS*xB + kS*xW + F ) / mB;
69 f <<
dot(vW) == ( -kT*xB - (kT+kS)*xW + kT*R - F ) / mW;
93 const double t_end = 1.0;
95 OCP ocp( t_start, t_end, 20 );
Calculates the control inputs of the Process based on the Process outputs.
Allows to setup and evaluate a general function based on SymbolicExpressions.
void acadoPlot(VariablesGrid grid)
Allows to setup and evaluate output functions based on SymbolicExpressions.
Stores a DifferentialEquation together with an OutputFcn.
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
USING_NAMESPACE_ACADO void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
returnValue getFeedbackControl(Curve &_feedbackControl) const
User-interface to formulate and solve model predictive control problems.
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
returnValue readFromFile(real_t *data, int nrow, int ncol, const char *datafilename)
returnValue getSampledProcessOutput(VariablesGrid &_sampledProcessOutput)
returnValue set(OptionsName name, int value)
returnValue minimizeLSQ(const DMatrix &S, const Function &h, const DVector &r)
returnValue init(const DVector &x0_, const DVector &p_=emptyConstVector)
Abstract base class for interfacing tailored matrix-vector operations.
Data class for defining optimal control problems.
Allows to define a static reference trajectory that the ControlLaw aims to track. ...
Expression dot(const Expression &arg)
returnValue clearAllStaticCounters()
returnValue setProcessDisturbance(const Curve &_processDisturbance)
Allows to run closed-loop simulations of dynamic systems.
Simulates the process to be controlled based on a dynamic model.
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.