Optimizer.GetConstraintIndex(String) Method

Top 

Description

Returns the index of the Constraint with the specified label, or -1 if the entry is not found.

 

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.GetConstraintIndex(

String label)

 

 

Arguments

label


Description:

The label corresponding to the Constraint.

 

 

 

Return Value

Type:

number

 

 

Returns the index of the constraint based on the provided label.

 

Syntax

myVariable1 = myOptimizer1.GetConstraintIndex(myString1);

 

 

See also

Optimizer Object