Optimizer.AddStateVariableBlock(Variable, String, Variable, Variable) Method

Top 

Description

Creates "n" new entries in the Optimizer.StateVariables array, while providing initial values for StateVariable properties. Label is used as a prefix to create incremented labels for each entry.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

Optimizer.AddStateVariableBlock(

Variable n,


String baseLabel,


Variable initialGuess,


Variable lowerBound)

 

 

Arguments

n


Description:

The number of optimization variables to add.

Valid Range:

n ≥ 0

 

 

baseLabel


Description:

The base label for this block of optimization variables.

 

 

initialGuess


Description:

The initial guess for this block of optimization variables.

 

 

lowerBound


Description:

Lower bound for this block of optimization variables.

 

 

 

Return Value

Type:

number

 

 

Returns the updated number of optimization variables.

 

Syntax

myVariable1 = myOptimizer1.AddStateVariableBlock(myVariable2, myString1, myVariable3, myVariable4);

 

 

See also

Optimizer Object

Optimizer.AddStateVariableBlock