Optimizer.AddConstraint Method

Top 

Description

Creates a new entry in the Optimizer.Constraints array with the specified label.

 

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.

 

Overload List

Signatures

Return Value

Description

Optimizer.AddConstraint(String label)

Variable

Creates a new entry in the Optimizer.Constraints array with the specified label.

Optimizer.AddConstraint(String label, Variable lowerBound)

Variable

Creates a new lower bound entry in the Optimizer.Constraints array associated with the specified label.

Optimizer.AddConstraint(String label, Variable lowerBound, Variable upperBound)

Variable

Creates a new lower and upper bound entry in the Optimizer.Constraints array associated with the specified label.

Optimizer.AddConstraint(String label, Variable lowerBound, Variable upperBound, Variable scale)

Variable

Creates a new lower bound, upper bound, and scale entry in the Optimizer.Constraints array associated with the specified label.

Optimizer.AddConstraint(String label, Variable lowerBound, Variable upperBound, Variable scale, Variable cyclicRange)

Variable

Creates a new lower bound, upper bound, scale, and cycle range entry in the Optimizer.Constraints array associated with the specified label.

 

 

See also

Optimizer Object