Methods
- Func AddConstraint( constraintExpression) As
- Adds a optimization constraint. This parameter must not be read only.
- Func Item( iIndex) As
-
Returns an optimization constraint using its index or its name from the
optimization constraints collection.
- Parameters:
-
- iIndex
- The index or the name of the optimization constraint to retrieve from the collection of optimization constraints. As a numerics, this index is the rank of the optimization constraint in the collection. The index of the first optimization constraint in the collection is 1, and the index of the last optimization constraint is Count. As a string, it is the name you assigned to the optimization constraint using the property or when changing the optimization constraint name by the property panel. dd>
- Returns:
- The retrieved optimization constraint
- Example:
-
This example retrieves the last optimization constraint in the optimization constraints
collection.
Set lastConstraint = constraints.Item(constraints.Count)
- Parameters:
-
- iIndex
- the name of the constraint if argument is a string or the index of the constraint if argument is an integer. dd>