Optimizer.AddStateVariableBlock(StringArray, Array, Array, Array, Array, Array) Method

Top 

Description

Creates a new entry in the Optimizer.StateVariables array for every label provided, while providing initial values for StateVariable properties. All array arguments must be of the same length.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

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

 

Method Signature

Optimizer.AddStateVariableBlock(

StringArray labels,


Array initialGuesses,


Array lowerBounds,


Array upperBounds,


Array scales,


Array perturbations)

 

 

Arguments

labels


Description:

The labels for this block of optimization variables.

 

 

initialGuesses


Description:

The initial guesses for this block of optimization variables.

Required Size:

At least 0

 

 

lowerBounds


Description:

The lower bounds for this block of optimization variables.

Required Size:

At least 0

 

 

upperBounds


Description:

The upper bounds for this block of optimization variables.

Required Size:

At least 0

 

 

scales


Description:

The scales for this block of optimization variables.

Required Size:

At least 0

 

 

perturbations


Description:

The perturbations for this block of optimization variables.

Required Size:

At least 0

 

 

 

Return Value

Type:

number

 

 

Returns the updated number of optimization variables.

 

Syntax

myVariable1 = myOptimizer1.AddStateVariableBlock(myStringArray1, myArray1, myArray2, myArray3, myArray4, myArray5);

 

 

See also

Optimizer Object

Optimizer.AddStateVariableBlock