Optimizer.AddConstraint(String, Variable) Method

Top 

Description

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

 

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.

 

Method Signature

Optimizer.AddConstraint(

String label,


Variable lowerBound)

 

 

Arguments

label


Description:

The label for this optimization constraint.

 

 

lowerBound


Description:

Lower bound associated with the state constraint.

 

 

 

Return Value

Type:

number

 

 

Returns the updated number of constraints.

 

Syntax

myVariable1 = myOptimizer1.AddConstraint(myString1, myVariable2);

 

 

See also

Optimizer Object

Optimizer.AddConstraint