Class Select
Simulatable select block
This block can function either as "minimum" or "maximum" selector, mainly inteded for simulating "min select" or "max selct" pid-control by combining with PidModel
Implements
Inherited Members
Namespace: TimeSeriesAnalysis.Dynamic
Assembly: TimeSeriesAnalysis.dll
Syntax
public class Select : ModelBaseClass, ISimulatableModel
Constructors
| Edit this page View SourceSelect(SelectType, string)
Constructor
Declaration
public Select(SelectType type, string ID)
Parameters
Type | Name | Description |
---|---|---|
SelectType | type | |
string | ID |
Fields
| Edit this page View Sourcetype
The type of select block
Declaration
public SelectType type
Field Value
Type | Description |
---|---|
SelectType |
Methods
| Edit this page View SourceClone(string)
Create a deep copy of itself
Declaration
public ISimulatableModel Clone(string ID = null)
Parameters
Type | Name | Description |
---|---|---|
string | ID |
Returns
Type | Description |
---|---|
ISimulatableModel | deep copy |
GetOutputSignalType()
Gives the type of the output signal
Declaration
public override SignalType GetOutputSignalType()
Returns
Type | Description |
---|---|
SignalType |
Overrides
| Edit this page View SourceGetSteadyStateInput(double, int, double[])
Not implemented
Declaration
public double? GetSteadyStateInput(double y0, int inputIdx = 0, double[] givenInputValues = null)
Parameters
Type | Name | Description |
---|---|---|
double | y0 | |
int | inputIdx | |
double[] | givenInputValues |
Returns
Type | Description |
---|---|
double? |
GetSteadyStateOutput(double[], double)
Get the steady state value of the model output
Declaration
public double? GetSteadyStateOutput(double[] u0, double badDataID)
Parameters
Type | Name | Description |
---|---|---|
double[] | u0 | vector of inputs for which the steady state is to be calculated |
double | badDataID | special value that indicates "NaN" |
Returns
Type | Description |
---|---|
double? | the steady-state value, if it is not possible to calculate, a |
IsModelSimulatable(out string)
Answers if the model is simulatable with the given input
Declaration
public bool IsModelSimulatable(out string explain)
Parameters
Type | Name | Description |
---|---|---|
string | explain |
Returns
Type | Description |
---|---|
bool |
Iterate(double[], double, double)
Iterate simulation
Declaration
public double[] Iterate(double[] inputsU, double timeBase_s, double badDataID = -9999)
Parameters
Type | Name | Description |
---|---|---|
double[] | inputsU | |
double | timeBase_s | |
double | badDataID |
Returns
Type | Description |
---|---|
double[] |
WarmStart(double[], double)
Not implemented
Declaration
public void WarmStart(double[] inputs, double output)
Parameters
Type | Name | Description |
---|---|---|
double[] | inputs | |
double | output |