Class PidIdentifier
Class that attempts to identify the parameters (such as Kp and Ti) of a PID-controller from a given set of time-series of the input and output of said controller.
Inherited Members
Namespace: TimeSeriesAnalysis.Dynamic
Assembly: TimeSeriesAnalysis.dll
Syntax
public class PidIdentifier
Constructors
| Edit this page View SourcePidIdentifier(PidScaling, double, PidControllerType)
Default constructor
Declaration
public PidIdentifier(PidScaling pidScaling = null, double badValueIndicatingValue = -9999, PidControllerType type = PidControllerType.Unset)
Parameters
Type | Name | Description |
---|---|---|
PidScaling | pidScaling | |
double | badValueIndicatingValue | |
PidControllerType | type |
Methods
| Edit this page View SourceGetSimulatedU(PidParameters, UnitDataSet, bool)
Returns the simulated time series of the manipulated variable u as given by the PID-controller.
Declaration
public (double[], int) GetSimulatedU(PidParameters pidParams, UnitDataSet dataset, bool isPIDoutputDelayOneSample)
Parameters
Type | Name | Description |
---|---|---|
PidParameters | pidParams | |
UnitDataSet | dataset | dataset, including including the "indicesToIgnore" |
bool | isPIDoutputDelayOneSample |
Returns
Type | Description |
---|---|
(double[], int) | the simulated value, and the number of restarts |
Identify(ref UnitDataSet)
Identifies a PID-controller from a UnitDataSet
Declaration
public PidParameters Identify(ref UnitDataSet dataSet)
Parameters
Type | Name | Description |
---|---|---|
UnitDataSet | dataSet | a UnitDataSet, where .Y_meas, .Y_setpoint and .U are analyzed |
Returns
Type | Description |
---|---|
PidParameters | the identified parameters of the PID-controller |