34 #ifndef ACADO_TOOLKIT_REAL_TIME_ALGORITHM_HPP 35 #define ACADO_TOOLKIT_REAL_TIME_ALGORITHM_HPP 409 #include <acado/optimization_algorithm/real_time_algorithm.ipp> 412 #endif // ACADO_TOOLKIT_REAL_TIME_ALGORITHM_HPP virtual returnValue preparationStep(double nextTime=0.0, const VariablesGrid &_yRef=emptyConstVariablesGrid)
virtual returnValue initializeObjective(Objective *F)
Data class for storing generic optimization variables.
virtual returnValue feedbackStep(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
returnValue performPreparationStep(const VariablesGrid &_yRef=emptyConstVariablesGrid, BooleanType isLastIteration=BT_TRUE)
virtual returnValue setupLogging()
virtual uint getNP() const
Stores and evaluates the constraints of optimal control problems.
virtual returnValue initializeNlpSolver(const OCPiterate &userInit)
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
RealTimeAlgorithm & operator=(const RealTimeAlgorithm &rhs)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
User-interface to formulate and solve model predictive control problems.
virtual returnValue allocateNlpSolver(Objective *F, DynamicDiscretization *G, Constraint *H)
#define CLOSE_NAMESPACE_ACADO
virtual uint getNY() const
virtual returnValue setupOptions()
Base class for user-interfaces to formulate and solve optimal control problems and static NLPs...
Base class for discretizing a DifferentialEquation for use in optimal control algorithms.
returnValue performFeedbackStep(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector)
virtual BooleanType isDynamic() const
static const DVector emptyConstVector
virtual uint getNX() const
virtual returnValue setReference(const VariablesGrid &ref)
virtual ~RealTimeAlgorithm()
virtual double getLengthPredictionHorizon() const
virtual ControlLaw * clone() const
virtual returnValue shift(double timeShift=-1.0)
virtual BooleanType isStatic() const
virtual uint getNU() const
virtual double getLengthControlHorizon() const
Data class for defining optimal control problems.
void rhs(const real_t *x, real_t *f)
virtual uint getNXA() const
const double DEFAULT_SAMPLING_TIME
virtual returnValue step(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
virtual returnValue solve(double startTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
virtual BooleanType isInRealTimeMode() const
virtual uint getNW() const
VariablesGrid * reference
#define BEGIN_NAMESPACE_ACADO
virtual returnValue initializeControls(const VariablesGrid &_u_init)
virtual returnValue initializeAlgebraicStates(const VariablesGrid &_xa_init)
virtual returnValue init()
Base class for interfacing online feedback laws to be used within a Controller.
static const VariablesGrid emptyConstVariablesGrid
Stores and evaluates the objective function of optimal control problems.