Table of Contents

Class Select

Namespace
TimeSeriesAnalysis.Dynamic
Assembly
TimeSeriesAnalysis.dll

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

public class Select : ModelBaseClass, ISimulatableModel
Inheritance
Select
Implements
Inherited Members

Constructors

Select(SelectType, string)

Constructor

public Select(SelectType type, string ID)

Parameters

type SelectType
ID string

Fields

type

The type of select block

public SelectType type

Field Value

SelectType

Methods

Clone(string)

Create a deep copy of itself

public ISimulatableModel Clone(string ID = null)

Parameters

ID string

Returns

ISimulatableModel

deep copy

GetOutputSignalType()

Gives the type of the output signal

public override SignalType GetOutputSignalType()

Returns

SignalType

GetSteadyStateInput(double, int, double[])

Not implemented

public double? GetSteadyStateInput(double y0, int inputIdx = 0, double[] givenInputValues = null)

Parameters

y0 double
inputIdx int
givenInputValues double[]

Returns

double?

GetSteadyStateOutput(double[], double)

Get the steady state value of the model output

public double? GetSteadyStateOutput(double[] u0, double badDataID)

Parameters

u0 double[]

vector of inputs for which the steady state is to be calculated

badDataID double

special value that indicates "NaN"

Returns

double?

the steady-state value, if it is not possible to calculate, a null is returned

IsModelSimulatable(out string)

Answers if the model is simulatable with the given input

public bool IsModelSimulatable(out string explain)

Parameters

explain string

Returns

bool

Iterate(double[], double, double)

Iterate simulation

public double[] Iterate(double[] inputsU, double timeBase_s, double badDataID = -9999)

Parameters

inputsU double[]
timeBase_s double
badDataID double

Returns

double[]

WarmStart(double[], double)

Not implemented

public void WarmStart(double[] inputs, double output)

Parameters

inputs double[]
output double