Optimizer.AddConstraintBlock(Variable, String, Variable, Variable, Variable) Method

Top 

Description

Creates "n" new entries in the Optimizer.Constraints array, while providing initial values for Constraint properties. Label is used as a prefix to create incremented labels for each entry.

 

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

Variable n,


String baseLabel,


Variable lowerBound,


Variable upperBound,


Variable scale)

 

 

Arguments

n


Description:

The number of optimization constraints to add.

Valid Range:

n ≥ 0

 

 

baseLabel


Description:

The base label for this block of optimization constraints.

 

 

lowerBound


Description:

Lower bound associated with this block of optimization constraints.

 

 

upperBound


Description:

Upper bound associated with this block of optimization constraints.

 

 

scale


Description:

The scale used for this block of optimization constraints.

Valid Range:

scale ≥ 0

 

 

 

Return Value

Type:

number

 

 

Returns the updated number of constraints.

 

Syntax

myVariable1 = myOptimizer1.AddConstraintBlock(myVariable2, myString1, myVariable3, myVariable4, myVariable5);

 

 

See also

Optimizer Object

Optimizer.AddConstraintBlock