Optimizer.GradientSparsity Property

Top 

Description

This array represents the sparsity of the gradient. Utilizing this property is not required to solve an optimization problem. However, specifying the complete sparsity structure of a problem (both for the Jacobian and the gradient) in addition to setting Optimizer.ValidateUserDerivatives = 0 will significantly reduce the processing time needed for the Optimizer's sampling phase. If the sparsity isn't specified by the user, then FreeFlyer will detect it automatically. The detected sparsity structure will be readable from this property after the first 3 nominal evaluations of the Optimizer.

 

Each element of this array property is either -999 (corresponds to an unknown element), a 0 (corresponding to an element that is always zero), or a 1 (corresponding to an element that is not always zero).

 

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.

 

Attributes

Type:

Array of number

Access:

read/write

 

Syntax

myVariable1 = myOptimizer1.GradientSparsity[0];

 

myOptimizer1.GradientSparsity[0] = myVariable1;

 

See also

Optimizer Object