190 int useImmediateFeedback = 0;
193 int maxNumberOfSteps;
293 int maxNumberOfSteps;
296 int terminateAtConvergence = 0;
349 int maxNumberOfSteps;
352 int terminateAtConvergence = 0;
466 int maxNumIterations;
469 if ( maxNumIterations > 1 )
472 int useRealtimeIterations;
657 int useRealTimeShifts = 0;
666 if ( isLastIteration ==
BT_TRUE )
676 int terminateAtConvergence = 0;
BooleanType haveOptionsChanged() const
const int defaultDiscretizationType
returnValue setReference(const VariablesGrid &ref)
virtual returnValue preparationStep(double nextTime=0.0, const VariablesGrid &_yRef=emptyConstVariablesGrid)
virtual returnValue initializeObjective(Objective *F)
const int defaultPrintlevel
Data class for storing generic optimization variables.
virtual returnValue replot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
ControlLaw & operator=(const ControlLaw &rhs)
OptimizationAlgorithmBase & operator=(const OptimizationAlgorithmBase &arg)
const int defaultFeasibilityCheck
virtual uint getNP() const
const double defaultKKTtoleranceSafeguard
virtual returnValue feedbackStep(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
double getEndTime() const
virtual uint getNX() const
const double defaultRelaxationParameter
returnValue performPreparationStep(const VariablesGrid &_yRef=emptyConstVariablesGrid, BooleanType isLastIteration=BT_TRUE)
const double defaultMaxStepsize
virtual returnValue feedbackStep(const DVector &x0_, const DVector &p_=emptyConstVector)
virtual returnValue performCurrentStep()
virtual uint getNXA() const
returnValue initializeControls(const char *fileName)
virtual returnValue setupLogging()
returnValue setStatus(BlockStatus _status)
BooleanType acadoIsNegative(double x, double TOL)
const int defaultObjectiveSensitivity
virtual uint getNP() const
void init(unsigned _dim=0)
const int defaultFreezeIntegrator
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.
virtual returnValue prepareNextStep()
virtual returnValue setReference(const VariablesGrid &ref)
double getStartTime() const
RealTimeAlgorithm & operator=(const RealTimeAlgorithm &rhs)
const double defaultStepsizeTuning
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
const double defaultMinStepsize
BooleanType isEmpty() const
User-interface to formulate and solve model predictive control problems.
const int defaultMaxNumSteps
const int defaultDynamicSensitivity
virtual returnValue init(VariablesGrid *xd, VariablesGrid *xa, VariablesGrid *p, VariablesGrid *u, VariablesGrid *w)=0
virtual returnValue allocateNlpSolver(Objective *F, DynamicDiscretization *G, Constraint *H)
const double defaultMinLinesearchParameter
#define CLOSE_NAMESPACE_ACADO
virtual uint getNY() const
virtual returnValue setupOptions()
const int defaultHotstartQP
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.
const double defaultIntegratorTolerance
returnValue performFeedbackStep(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector)
const int defaultIntegratorPrintlevel
virtual BooleanType isDynamic() const
BlockStatus getStatus() const
const int defaultTerminateAtConvergence
virtual returnValue shiftVariables(double timeShift, DVector lastX=emptyVector, DVector lastXA=emptyVector, DVector lastP=emptyVector, DVector lastU=emptyVector, DVector lastW=emptyVector)
const int defaultHessianApproximation
virtual uint getNX() const
returnValue setVector(uint pointIdx, const DVector &_values)
virtual returnValue setReference(const VariablesGrid &ref)
virtual ~RealTimeAlgorithm()
BooleanType isLinearQuadratic(Objective *F, DynamicDiscretization *G, Constraint *H) const
virtual double getLengthPredictionHorizon() const
virtual ControlLaw * clone() const
virtual returnValue shift(double timeShift=-1.0)
virtual BooleanType isStatic() const
virtual uint getNU() const
const double defaultHessianProjectionFactor
returnValue setAllVectors(const DVector &_values)
const double defaultCorrectorTolerance
int getNumberOfSteps() const
const double defaultInfeasibleQPrelaxation
virtual double getLengthControlHorizon() const
Derived & setZero(Index size)
const double defaultLinesearchTolerance
Data class for defining optimal control problems.
void rhs(const real_t *x, real_t *f)
Implements different sequential convex programming methods for solving NLPs.
double getSamplingTime() const
returnValue declareOptionsUnchanged()
const double defaultInitialStepsize
const int defaultprintSCPmethodProfile
virtual uint getNU() const
const int defaultprintIntegratorProfile
const int defaultDynamicHessianApproximation
returnValue initializeAlgebraicStates(const char *fileName, BooleanType autoinit=BT_FALSE)
virtual uint getNXA() const
virtual returnValue step(double currentTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
const double defaultLevenbergMarguardt
virtual returnValue solve(double startTime, const DVector &_x, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid)
const int defaultGlobalizationStrategy
returnValue resetNumberOfSteps()
const int defaultAlgebraicRelaxation
virtual BooleanType isInRealTimeMode() const
virtual uint getNW() const
GenericVector< double > DVector
virtual uint getNW() const
VariablesGrid * reference
const int defaultConstraintSensitivity
#define ACADOWARNING(retval)
virtual returnValue getFirstControl(DVector &u0_) const
#define BEGIN_NAMESPACE_ACADO
const int defaultSparseQPsolution
const int defaultPlotResoltion
const int defaultLinearAlgebraSolver
const int defaultIntegratorType
virtual returnValue initializeControls(const VariablesGrid &_u_init)
const int defaultUseImmediateFeedback
const double defaultKKTtolerance
returnValue init(UserInteraction *_userIteraction)
returnValue addOption(OptionsName name, int value)
const int defaultPrintCopyright
virtual returnValue initializeAlgebraicStates(const VariablesGrid &_xa_init)
const int defaultUseRealtimeIterations
BEGIN_NAMESPACE_ACADO const int defaultMaxNumIterations
virtual returnValue init()
Base class for interfacing online feedback laws to be used within a Controller.
const int defaultUseRealtimeShifts
const double defaultAbsoluteTolerance
const int defaultInfeasibleQPhandling
Stores and evaluates the objective function of optimal control problems.
const int defaultMaxNumQPiterations
#define ACADOERROR(retval)