Class PidScaling
- Namespace
- TimeSeriesAnalysis.Dynamic
- Assembly
- TimeSeriesAnalysis.dll
Parameters describing PID-controller parameters for scaling PidModel PidController
public class PidScaling
- Inheritance
-
PidScaling
- Inherited Members
Constructors
PidScaling()
Constructor
public PidScaling()
PidScaling(double, double, double, double, bool)
Constructor
public PidScaling(double y_min, double y_max, double u_min, double u_max, bool isKpScalingKpOn)
Parameters
Fields
doesSasPidScaleKp
Determines if the SAS scales Kp according to the scaling information in this object or not. Set this to match the reality in the SAS you are studying. For example: AIM "PIDcon": does not scale KP and TI AIM "PIDx" : DOES scale KP and TI
public bool doesSasPidScaleKp
Field Value
isDefault
If true, then all min/max are at their default value
public bool isDefault
Field Value
isEstimated
If true then these parameters have been guessed automatically from data
public bool isEstimated
Field Value
u_max
The maximum pid output(mainipulatd-) value
public double u_max
Field Value
u_min
The minimum pid output(manipulated-) value
public double u_min
Field Value
y_max
The maximum pid input(process-) value
public double y_max
Field Value
y_min
the minimum pid input(process-) value
public double y_min
Field Value
Methods
GetKpScalingFactor()
Get a scaling factor to convert and unscaled Kp
By defintion KpUnscaled = Kp / KpScalingFactor
public double GetKpScalingFactor()
Returns
GetUScaleFactor()
Get the scaling factor of U
public double GetUScaleFactor()
Returns
GetUmax()
Get the maximum U
public double GetUmax()
Returns
GetUmin()
Get the minimum U
public double GetUmin()
Returns
GetYScaleFactor()
Get the scaling factor for Y
public double GetYScaleFactor()
Returns
GetYmax()
Get the maximum Y
public double GetYmax()
Returns
GetYmin()
Get the minumum Y
public double GetYmin()
Returns
IsDefault()
Ask if scaling is at defautl values
public bool IsDefault()
Returns
IsEstimated()
Ask if the scaling is estimated from data or given a priori
public bool IsEstimated()
Returns
IsKpScalingOn()
Ask if scaling of Kp is active
public bool IsKpScalingOn()
Returns
ScaleYValue(double)
Get the scaled version of an absolute y
public double ScaleYValue(double y_abs)
Parameters
y_absdouble
Returns
Set(double, double, double, double, bool)
Set scaling
public void Set(double y_min, double y_max, double u_min, double u_max, bool isKpScalingKpOn)
Parameters
SetDefault()
Set scaling to default
public void SetDefault()
SetEstimatedUminUmax(double, double)
Set the estimated u_min and u_max (if it is not known, but guessed from data)
public void SetEstimatedUminUmax(double u_min, double u_max)
Parameters
SetKpScalingOn(bool)
Turn scaling on or off
public void SetKpScalingOn(bool isKpScalingKpOn)
Parameters
isKpScalingKpOnbool