Table of Contents

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

y_min double
y_max double
u_min double
u_max double
isKpScalingKpOn bool

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

bool

isDefault

If true, then all min/max are at their default value

public bool isDefault

Field Value

bool

isEstimated

If true then these parameters have been guessed automatically from data

public bool isEstimated

Field Value

bool

u_max

The maximum pid output(mainipulatd-) value

public double u_max

Field Value

double

u_min

The minimum pid output(manipulated-) value

public double u_min

Field Value

double

y_max

The maximum pid input(process-) value

public double y_max

Field Value

double

y_min

the minimum pid input(process-) value

public double y_min

Field Value

double

Methods

GetKpScalingFactor()

Get a scaling factor to convert and unscaled Kp

By defintion KpUnscaled = Kp / KpScalingFactor

public double GetKpScalingFactor()

Returns

double

GetUScaleFactor()

Get the scaling factor of U

public double GetUScaleFactor()

Returns

double

GetUmax()

Get the maximum U

public double GetUmax()

Returns

double

GetUmin()

Get the minimum U

public double GetUmin()

Returns

double

GetYScaleFactor()

Get the scaling factor for Y

public double GetYScaleFactor()

Returns

double

GetYmax()

Get the maximum Y

public double GetYmax()

Returns

double

GetYmin()

Get the minumum Y

public double GetYmin()

Returns

double

IsDefault()

Ask if scaling is at defautl values

public bool IsDefault()

Returns

bool

IsEstimated()

Ask if the scaling is estimated from data or given a priori

public bool IsEstimated()

Returns

bool

IsKpScalingOn()

Ask if scaling of Kp is active

public bool IsKpScalingOn()

Returns

bool

ScaleYValue(double)

Get the scaled version of an absolute y

public double ScaleYValue(double y_abs)

Parameters

y_abs double

Returns

double

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

y_min double
y_max double
u_min double
u_max double
isKpScalingKpOn bool

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

u_min double
u_max double

SetKpScalingOn(bool)

Turn scaling on or off

public void SetKpScalingOn(bool isKpScalingKpOn)

Parameters

isKpScalingKpOn bool