All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

OptimizationInterfaces Interface CATIOptProblem

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATIOptProblem
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIOptProblem

Interface to encapsulate the data access to an optimization problem definition.


Method Index


o AddConstraint(CATIOptConstraint_var&)
Adds a constraint.
o AddGoal(CATIOptGoal_var&)
Adds a goal.
o GetConstraints()
Returns the list of constraints defined for the problem optimization definition.
o GetGoals()
Returns the list of goals defined for the problem optimization definition.
o RemoveConstraint(CATIOptConstraint_var&,int)
Removes a constraint.
o RemoveGoal(CATIOptGoal_var&,int)
Removes a goal.

Methods


o AddConstraint
public virtual void AddConstraint( const CATIOptConstraint_var& constraint) = 0
Adds a constraint.
Parameters:
constraint
: the constraint to be added.
o AddGoal
public virtual void AddGoal( const CATIOptGoal_var& goal) = 0
Adds a goal.
Parameters:
goal
: the goal to be added.
o GetConstraints
public virtual CATLISTV(CATBaseUnknown_var)* GetConstraints()= 0
Returns the list of constraints defined for the problem optimization definition. This list mustn't be destroyed.
o GetGoals
public virtual CATLISTV(CATBaseUnknown_var)* GetGoals()= 0
Returns the list of goals defined for the problem optimization definition. This list mustn't be destroyed.
o RemoveConstraint
public virtual void RemoveConstraint( const CATIOptConstraint_var& constraint,
int index) = 0
Removes a constraint.
Parameters:
constraint
: the pointer on the constraint to remove.
index
: the index of the constraint to remove.
o RemoveGoal
public virtual void RemoveGoal( const CATIOptGoal_var& goal,
int index) = 0
Removes a goal.
Parameters:
goal
: the pointer on the goal to remove.
index
: the index of the goal to remove.

This object is included in the file: CATIOptProblem.h
If needed, your Imakefile.mk should include the module: OptimizationItf

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