Optimizer.AddStateVariableBlock(Variable, String) Method

Top 

Description

Creates "n" new entries in the Optimizer.StateVariables array. Label is used as a prefix to create incremented labels for each entry.

 

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(

Variable n,


String baseLabel)

 

 

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.

 

 

 

Return Value

Type:

number

 

 

Returns the updated number of optimization variables.

 

Syntax

myVariable1 = myOptimizer1.AddStateVariableBlock(myVariable2, myString1);

 

 

See also

Optimizer Object

Optimizer.AddStateVariableBlock