|
| Controller () |
|
| Controller (ControlLaw &_controlLaw, Estimator &_estimator, ReferenceTrajectory &_referenceTrajectory=emptyReferenceTrajectory) |
|
| Controller (ControlLaw &_controlLaw, ReferenceTrajectory &_referenceTrajectory=emptyReferenceTrajectory) |
|
| Controller (const Controller &rhs) |
|
returnValue | disable () |
|
returnValue | enable () |
|
virtual returnValue | feedbackStep (double currentTime, const DVector &_y, const VariablesGrid &_yRef=emptyConstVariablesGrid) |
|
double | getNextSamplingInstant (double currentTime) |
|
uint | getNP () const |
|
uint | getNU () const |
|
uint | getNY () const |
|
returnValue | getP (DVector &_p) const |
|
double | getPreviousRealRuntime () |
|
double | getSamplingTimeControlLaw () |
|
double | getSamplingTimeEstimator () |
|
returnValue | getU (DVector &_u) const |
|
BooleanType | hasDynamicControlLaw () const |
|
BooleanType | hasEstimator () const |
|
BooleanType | hasReferenceTrajectory () const |
|
BooleanType | hasStaticControlLaw () const |
|
virtual returnValue | init (double startTime=0.0, const DVector &_x0=emptyConstVector, const DVector &_p=emptyConstVector, const VariablesGrid &_yRef=emptyConstVariablesGrid) |
|
returnValue | initializeAlgebraicStates (const VariablesGrid &_xa_init) |
|
returnValue | initializeAlgebraicStates (const char *fileName) |
|
virtual returnValue | obtainEstimates (double currentTime, const DVector &_y, DVector &xEst, DVector &pEst) |
|
Controller & | operator= (const Controller &rhs) |
|
virtual returnValue | preparationStep (double nextTime=0.0, const VariablesGrid &_yRef=emptyConstVariablesGrid) |
|
returnValue | setControlLaw (ControlLaw &_controlLaw) |
|
returnValue | setEstimator (Estimator &_estimator) |
|
returnValue | setReferenceTrajectory (ReferenceTrajectory &_referenceTrajectory) |
|
virtual returnValue | step (double currentTime, const DVector &_y, const VariablesGrid &_yRef=emptyConstVariablesGrid) |
|
virtual returnValue | step (double currentTime, uint dim, const double *const _y, const VariablesGrid &_yRef=emptyConstVariablesGrid) |
|
virtual | ~Controller () |
|
BlockName | getName () const |
|
double | getSamplingTime () const |
|
BooleanType | isDefined () const |
|
SimulationBlock & | operator= (const SimulationBlock &rhs) |
|
returnValue | setName (BlockName _name) |
|
returnValue | setSamplingTime (double _samplingTime) |
|
| SimulationBlock () |
|
| SimulationBlock (BlockName _name, double _samplingTime=DEFAULT_SAMPLING_TIME) |
|
| SimulationBlock (const SimulationBlock &rhs) |
|
virtual | ~SimulationBlock () |
|
virtual int | addPlotWindow (PlotWindow &_window) |
|
virtual int | operator<< (PlotWindow &_window) |
|
virtual int | operator<< (LogRecord &_record) |
|
UserInteraction & | operator= (const UserInteraction &rhs) |
|
| UserInteraction () |
|
| UserInteraction (const UserInteraction &rhs) |
|
virtual | ~UserInteraction () |
|
returnValue | addOptionsList () |
|
returnValue | ensureConsistency () |
|
returnValue | ensureConsistency () |
|
returnValue | get (OptionsName name, int &value) const |
|
returnValue | get (OptionsName name, double &value) const |
|
returnValue | get (OptionsName name, std::string &value) const |
|
returnValue | get (uint idx, OptionsName name, int &value) const |
|
returnValue | get (uint idx, OptionsName name, double &value) const |
|
returnValue | get (uint idx, OptionsName name, std::string &value) const |
|
uint | getNumOptionsLists () const |
|
Options | getOptions (uint idx) const |
|
Options & | operator= (const Options &rhs) |
|
Options & | operator= (const Options &rhs) |
|
| Options () |
|
| Options () |
|
| Options (const Options &rhs) |
|
| Options (const Options &rhs) |
|
| Options () |
|
| Options (const OptionsList &_optionsList) |
|
returnValue | print () const |
|
returnValue | print () const |
|
returnValue | printOptionsList () const |
|
returnValue | printOptionsList (uint idx) const |
|
returnValue | set (OptionsName name, int value) |
|
returnValue | set (OptionsName name, double value) |
|
returnValue | set (OptionsName name, const std::string &value) |
|
returnValue | set (uint idx, OptionsName name, int value) |
|
returnValue | set (uint idx, OptionsName name, double value) |
|
returnValue | set (uint idx, OptionsName name, const std::string &value) |
|
returnValue | setOptions (const Options &arg) |
|
returnValue | setOptions (uint idx, const Options &arg) |
|
returnValue | setToDefault () |
|
returnValue | setToDefault () |
|
returnValue | setToFast () |
|
returnValue | setToFast () |
|
returnValue | setToMPC () |
|
returnValue | setToReliable () |
|
returnValue | setToReliable () |
|
| ~Options () |
|
| ~Options () |
|
virtual | ~Options () |
|
int | addLogRecord (LogRecord &record) |
|
returnValue | getAll (LogName _name, MatrixVariablesGrid &values) const |
|
returnValue | getFirst (LogName _name, DMatrix &firstValue) const |
|
returnValue | getFirst (LogName _name, VariablesGrid &firstValue) const |
|
returnValue | getLast (LogName _name, DMatrix &lastValue) const |
|
returnValue | getLast (LogName _name, VariablesGrid &lastValue) const |
|
returnValue | getLogRecord (LogRecord &_record) const |
|
uint | getNumLogRecords () const |
|
| Logging () |
|
int | operator<< (LogRecord &record) |
|
returnValue | printLoggingInfo () const |
|
returnValue | printNumDoubles () const |
|
returnValue | setAll (LogName _name, const MatrixVariablesGrid &values) |
|
returnValue | setLast (LogName _name, const DMatrix &value, double time=-INFTY) |
|
returnValue | setLast (LogName _name, VariablesGrid &value, double time=-INFTY) |
|
returnValue | updateLogRecord (LogRecord &_record) const |
|
virtual | ~Logging () |
|
int | addPlotWindow (PlotWindow &_window) |
|
uint | getNumPlotWindows () const |
|
returnValue | getPlotWindow (uint idx, PlotWindow &_window) const |
|
returnValue | getPlotWindow (PlotWindow &_window) const |
|
int | operator<< (PlotWindow &_window) |
|
Plotting & | operator= (const Plotting &rhs) |
|
virtual returnValue | plot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
|
| Plotting () |
|
| Plotting (const Plotting &rhs) |
|
virtual returnValue | replot (PlotFrequency _frequency=PLOT_IN_ANY_CASE) |
|
virtual | ~Plotting () |
|
Calculates the control inputs of the Process based on the Process outputs.
The class Controller is one of the two main building-blocks within the SimulationEnvironment and complements the Process. It contains an online control law (e.g. a DynamicFeedbackLaw comprising a RealTimeAlgorithm) for obtaining the control inputs of the Process.
A state/parameter estimator as well as a ReferenceTrajectory can optionally be used to provide estimated quantities and a reference values to the control law. The reference trajectory can either be specified beforehand as member of the Controller or, alternatively, provided at each step in order to allow for reference trajectories that can be adapted online.
- Author
- Hans Joachim Ferreau, Boris Houska
Definition at line 71 of file controller.hpp.