Optimizer.Gradient Property

Top 

Description

The Gradient of the objective function. This is the partial derivative of the objective with respect to the state variables. At the beginning of the optimization process, FreeFlyer fills this array with a constant (-999) so that any derivatives the user provides using this array can be automatically detected. All derivatives that the user does not provide will be calculated numerically. When FreeFlyer calculates the derivatives numerically, the elements of the Gradient are filled in one at a time as they are calculated.

 

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.

 

Attributes

Type:

Array of number

Access:

read/write

 

Syntax

myVariable1 = myOptimizer1.Gradient[0];

 

myOptimizer1.Gradient[0] = myVariable1;

 

See also

Optimizer Object