Allows to transform the output of the ControlLaw before passing it to the Process. More...
#include <clipping_functionality.hpp>
Public Member Functions | |
ClippingFunctionality () | |
ClippingFunctionality (uint _nU, uint _nP=0) | |
ClippingFunctionality (const ClippingFunctionality &rhs) | |
ClippingFunctionality & | operator= (const ClippingFunctionality &rhs) |
returnValue | setControlLowerLimit (uint idx, double _lowerLimit) |
returnValue | setControlLowerLimits (const DVector &_lowerLimit) |
returnValue | setControlUpperLimit (uint idx, double _upperLimit) |
returnValue | setControlUpperLimits (const DVector &_upperLimit) |
returnValue | setParameterLowerLimit (uint idx, double _lowerLimit) |
returnValue | setParameterLowerLimits (const DVector &_lowerLimit) |
returnValue | setParameterUpperLimit (uint idx, double _upperLimit) |
returnValue | setParameterUpperLimits (const DVector &_upperLimit) |
~ClippingFunctionality () | |
Protected Member Functions | |
returnValue | clipSignals (VariablesGrid &_u, VariablesGrid &_p=emptyVariablesGrid) |
returnValue | clipSignals (DVector &_u, DVector &_p=emptyVector) |
uint | getNumControlLimits () const |
uint | getNumParameterLimits () const |
Protected Attributes | |
DVector | lowerLimitControls |
DVector | lowerLimitParameters |
DVector | upperLimitControls |
DVector | upperLimitParameters |
Allows to transform the output of the ControlLaw before passing it to the Process.
The class ClippingFunctionality allows to limit the output of the ControlLaw before passing it as signal to control the Process.
Definition at line 56 of file clipping_functionality.hpp.
BEGIN_NAMESPACE_ACADO ClippingFunctionality::ClippingFunctionality | ( | ) |
Default constructor.
Definition at line 46 of file clipping_functionality.cpp.
Constructor which takes dimensions of the signals to be clipped.
@param[in] _nU Number of control signals to be clipped. @param[in] _nP Number of parameter signals to be clipped.
Definition at line 51 of file clipping_functionality.cpp.
ClippingFunctionality::ClippingFunctionality | ( | const ClippingFunctionality & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 67 of file clipping_functionality.cpp.
ClippingFunctionality::~ClippingFunctionality | ( | ) |
Destructor.
Definition at line 77 of file clipping_functionality.cpp.
|
protected |
Actually clips given control and parameter signals.
@param[in,out] _u Control signal sequence to be clipped. @param[in,out] _p Parameter signal sequence to be clipped.
Definition at line 202 of file clipping_functionality.cpp.
|
protected |
Actually clips given control and parameter signals.
@param[in,out] _u Control signal to be clipped. @param[in,out] _p Parameter signal to be clipped.
Definition at line 245 of file clipping_functionality.cpp.
|
inlineprotected |
Returns number of control signal limits.
|
inlineprotected |
Returns number of parameter signal limits.
ClippingFunctionality & ClippingFunctionality::operator= | ( | const ClippingFunctionality & | rhs | ) |
Assignment operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 82 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setControlLowerLimit | ( | uint | idx, |
double | _lowerLimit | ||
) |
Assigns new lower limit on given component of the control signal.
@param[in] idx Index of control signal component. @param[in] _lowerLimit New lower limit. \return SUCCESSFUL_RETURN, \n RET_INDEX_OUT_OF_BOUNDS
Definition at line 110 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setControlLowerLimits | ( | const DVector & | _lowerLimit | ) |
Assigns new lower limits on control signals.
@param[in] _lowerLimit New lower limits on control signals. \return SUCCESSFUL_RETURN, \n RET_VECTOR_DIMENSION_MISMATCH
Definition at line 98 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setControlUpperLimit | ( | uint | idx, |
double | _upperLimit | ||
) |
Assigns new upper limit on given component of the control signal.
@param[in] idx Index of control signal component. @param[in] _upperLimit New upper limit. \return SUCCESSFUL_RETURN, \n RET_INDEX_OUT_OF_BOUNDS
Definition at line 134 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setControlUpperLimits | ( | const DVector & | _upperLimit | ) |
Assigns new upper limits on control signals.
@param[in] _upperLimit New upper limits on control signals. \return SUCCESSFUL_RETURN, \n RET_VECTOR_DIMENSION_MISMATCH
Definition at line 122 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setParameterLowerLimit | ( | uint | idx, |
double | _lowerLimit | ||
) |
Assigns new lower limit on given component of the parameter signal.
@param[in] idx Index of parameter signal component. @param[in] _lowerLimit New lower limit. \return SUCCESSFUL_RETURN, \n RET_INDEX_OUT_OF_BOUNDS
Definition at line 159 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setParameterLowerLimits | ( | const DVector & | _lowerLimit | ) |
Assigns new lower limits on parameter signals.
@param[in] _lowerLimit New lower limits on parameter signals. \return SUCCESSFUL_RETURN, \n RET_VECTOR_DIMENSION_MISMATCH
Definition at line 147 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setParameterUpperLimit | ( | uint | idx, |
double | _upperLimit | ||
) |
Assigns new upper limit on given component of the parameter signal.
@param[in] idx Index of parameter signal component. @param[in] _upperLimit New upper limit. \return SUCCESSFUL_RETURN, \n RET_INDEX_OUT_OF_BOUNDS
Definition at line 183 of file clipping_functionality.cpp.
returnValue ClippingFunctionality::setParameterUpperLimits | ( | const DVector & | _upperLimit | ) |
Assigns new upper limits on parameter signals.
@param[in] _upperLimit New upper limits on parameter signals. \return SUCCESSFUL_RETURN, \n RET_VECTOR_DIMENSION_MISMATCH
Definition at line 171 of file clipping_functionality.cpp.
|
protected |
Lower limits on control signals.
Definition at line 234 of file clipping_functionality.hpp.
|
protected |
Lower limits on parameter signals.
Definition at line 237 of file clipping_functionality.hpp.
|
protected |
Upper limits on control signals.
Definition at line 235 of file clipping_functionality.hpp.
|
protected |
Upper limits on parameter signals.
Definition at line 238 of file clipping_functionality.hpp.