All Frameworks  Object Hierarchy  This Framework  Indexes   

Optimizations (Collection)

Represents a collection of optimization features.
See also:
Optimization

Method Index

CreateConstraintsSatisfaction
Returns a set of equations.
CreateOptimization
Creates an empty optimization.
Item
Retrieves an optimization using its index or its name from the Optimizations collection.

Methods


o Func CreateConstraintsSatisfaction( iName,
iComment,
iFormulaBody) As
Returns a set of equations.
Parameters:
iName
The name of the set of equations.
iComment
The comment of the set of equations.
iFormulaBody
The body of the set of equations " a==b+4; c ≤ 90".
o Func CreateOptimization() As
Creates an empty optimization.
This optimization cannot be used while its properties have not been set.
o Func Item( iIndex) As
Retrieves an optimization using its index or its name from the Optimizations collection.
Parameters:
iIndex
The index or the name of the item (optimization or constraintSatisfaction) to retrieve from the collection of optimizations. As a numerics, this index is the rank of the item in the collection. The index of the first item in the collection is 1, and the index of the last item is Count. As a string, it is the name you assigned to the item using the
AnyObject.Name property or when changing the item name by the property panel.
Returns:
either the retrieved optimization or the retreived constraintSatisfaction
Example:
This example retrieves the last item (optimization or constraintSatisfaction) in the optimizations collection.
 Set lastItem = optimizations.Item(optimizations.Count)
 

Copyright © 2003, Dassault Systèmes. All rights reserved.