32 #ifndef ACADO_TOOLKIT_OCP_HPP 33 #define ACADO_TOOLKIT_OCP_HPP 95 OCP(
const double &tStart_ = 0.0,
96 const double &tEnd_ = 1.0,
102 OCP(
const double &tStart_,
110 OCP(
const double &tStart_,
112 const int &N_ = 20 );
198 const char* rFilename );
202 const char* rFilename );
205 const char* rFilename );
218 const std::string& h );
223 const std::string& h );
255 const std::string& m );
265 const std::string& m );
392 void setupGrid(
double tStart,
double tEnd,
int N );
405 #endif // ACADO_TOOLKIT_OCP_HPP
OCP(const double &tStart_=0.0, const double &tEnd_=1.0, const int &N_=20)
Allows to setup and evaluate a general function based on SymbolicExpressions.
void setupGrid(double tStart, double tEnd, int N)
returnValue getObjective(Objective &objective_) const
std::shared_ptr< Objective > objective
returnValue minimizeLagrangeTerm(const Expression &arg)
returnValue setNumberIntegrationSteps(const uint numSteps)
returnValue maximizeLagrangeTerm(const Expression &arg)
Stores and evaluates the constraints of optimal control problems.
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
returnValue subjectTo(const DifferentialEquation &differentialEquation_)
#define CLOSE_NAMESPACE_ACADO
returnValue minimizeMayerTerm(const Expression &arg)
returnValue getConstraint(Constraint &constraint_) const
Data class for symbolically formulating constraints within optimal control problems.
returnValue setConstraint(const Constraint &constraint_)
Base class for all variables within the symbolic expressions family.
std::shared_ptr< Grid > grid
double getEndTime() const
returnValue minimizeLSQ(const DMatrix &S, const Function &h, const DVector &r)
Container class to store and pass data to the ModelData class.
returnValue minimizeLSQEndTerm(const DMatrix &S, const Function &m, const DVector &r)
Encapsulates functionality for defining OCPs having multiple objectives.
Provides a time grid consisting of matrix-valued optimization variables at each grid point...
BooleanType hasConstraint() const
std::shared_ptr< Constraint > constraint
double getStartTime() const
returnValue minimizeLSQLinearTerms(const DVector &Slx, const DVector &Slu)
Data class for defining optimal control problems.
virtual BooleanType hasEquidistantGrid() const
returnValue getGrid(Grid &grid_) const
#define BEGIN_NAMESPACE_ACADO
BooleanType hasObjective() const
returnValue setObjective(const Objective &objective_)
returnValue maximizeMayerTerm(const Expression &arg)
Stores and evaluates the objective function of optimal control problems.
Allows to setup and evaluate differential equations (ODEs and DAEs) based on SymbolicExpressions.