Sunteți pe pagina 1din 68

Product Engineering Optimizer

CATIA Training
Foils

Product Engineering
Optimizer
Copyright DASSAULT SYSTEMES

Version 5 Release 17
September 2006
EDU-CAT-EN-PEO-FI-V5R17

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Course Presentation

Objectives of the course


In this course you will learn the functionalities of CATIA Product Engineering
Optimizer (PEO) :

definition of an optimization problem, specification of the optimization algorithm,


solving of an optimization problem, analysing and reporting on the results of the
optimization, use of the Design of Experiments and Constraint Satisfaction tools.

Targeted audience
CATIA V5 Users

0.5 day Prerequisites


Copyright DASSAULT SYSTEMES

Fundamentals about CATIA V5

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Table of Contents
1. Workbench Presentation p.6
Accessing the workbench p.7
PEO User Interface p.8
Checking User Settings p.9
Terminology p.13
Understanding the general process p.19

2. Optimization Problem Formulation p.20


Accessing Product Engineering Optimizer Workbench p.21
Accessing Optimization Problem Editor p.22
Selecting the Optimization Type p.23
Defining the Objective Function p.24
Defining the Free Parameters p.25
Specifying a Range and a Step for a Free Parameter p.26
Accessing the Constraint Editor p.27
Formulating a New Constraint p.28
Assigning Weights to Constraints p.29
Editing a Constraint p.30
Deactivating and Deleting a Constraint p.31
Copyright DASSAULT SYSTEMES

3. Optimization Problem Resolution p.32


Selecting the algorithm p.33
Specifying the Termination criteria p.35

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Table of Contents
Running the optimization p.36
Exercises Presentation p.38

4. Solution Analysis p.39


Analyzing the optimization results p.40
Exercises Presentation p.44

5. Best Practices for Optimization with PEO p.45


Selecting the best algorithm p.46
Defining the Termination criteria p.47
Defining constraints p.48

6. Design of Experiments tool p.49


Introduction p.50
Selecting Input parameters p.51
Selecting Output parameters p.53
Analyzing the results p.54
Predicting an output value p.57
Exercises Presentation p.58

7. Constraint Satisfaction tool p.59


Copyright DASSAULT SYSTEMES

Introduction p.60
Creating constraints p.61
Specifying the number of solutions p.64
Setting the options p.65

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Planning

Day 1
MORNING Workbench Presentation p.6
Optimization Problem Formulation p.20
Optimization Problem Resolution p.32
Solution Analysis p.39
Best Practices for Optimization with PEO p.45

Exercises Master Exercise : Strap tension optimization p.3


Beam mass optimization p.21
Shape optimization : Hanger p.34
Shape optimization : Fastener p.44
Structural optimization : Surfacic structure p.58
AFTERNOON Design of Experiments tool p.49
Constraint Satisfaction tool p.59

Exercises Structural optimization : 1D beam, child’s swing p.67


Structural optimization : Silo, surfacic & beam structure p.76
Design of experiments p.85
Copyright DASSAULT SYSTEMES

Beam Mass Minimization through Constraint Satisfaction p.29

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Workbench Presentation

In this lesson, you will learn about the Product Engineering Optimizer by

Accessing the PEO workbench


Exploring the User Interface
Checking User Settings
Seeing Terminology
Understanding the general process
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Accessing the PEO Workbench Anywhere from 1- Start menu


or 2- A CATIA document
or 3- Workbench Icon
1-
2-

3-

If Optimizations node exists under Relations node


in the specification tree, double-click on it
Copyright DASSAULT SYSTEMES

See Tools + Customize + Start Menu


for the content of this Welcome to
CATIA V5 box

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

PEO User Interface


Product Engineering Optimizer Toolbars and Icons

Optimization
Optimizations Design of
node under Experiments
Relations
node Constraint
Satisfaction
tool
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

User Settings

Access Tools/Options menu.


Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

User Settings : General Knowledge Settings

Access the General/Parameters and Measure node. In the Knowledge tab check the
corresponding option if you want …
(1) the parameter values to be displayed in the specification tree
(2) the formulas driving the parameters to be displayed in the specification tree

2
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

User Settings : Knowledge in Part Settings

Access the Infrastructure/Part Infrastructure node. In the Display tab, check the
corresponding option if you want :
(1) the Part Parameters to be displayed in the specification tree
(2) the Part Relations (Rules, Formulas, Design Tables, etc) to be displayed in the
specification tree

2
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

User Settings : Knowledge in Product Settings

Access the Infrastructure/Product Structure node. In the Tree Customization tab, switch the
Activated status to “Yes” if you want :
(1) the Product Parameters to be displayed in the specification tree
(2) the Product Relations (Rules, Formulas, Design Tables, etc) to be displayed in the
specification tree

2
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (1/6)

1-
2-
1- An Optimization Problem is a
computational problem that formulates the
goal to find the best of all possible values of a
function with respect to some constraints.
Example : Find the value R0 of the radius R of
a cone between 12mm and 40mm such that
the value V of the cone volume calculated by
function V=πR2h/3 has its maximal value
when R= R0, is a volume optimization problem
of type Maximization.

2- The function for which we want to find the


best value is called Objective Function of the
optimization problem. In our example this is
the function V=πR2h/3 . V is sometimes called
Optimized parameter.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (2/6)

3 - The free parameters and the optimized parameter


can have some additional constraints (i.e. imposed 3-
conditions) specified :

For example, V > 250m3 and h - R > 5mm are


constraints.

According to syntax conventions of the Product


Engineering Optimizer, the right hand side of a
constraint must be a constant, i.e instead of writing
h > R + 5mm you must write: h - R > 5mm .

A constraint can be satisfied or not satisfied during


the computation. It is shown in the Optimization
panel by respectively green and red lights.
The constraint is satisfied if by substitution of
current values of the parameters we obtain a true
statement.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (3/6)

4 - The constraints can have priorities (or weights)


set by the user : 4-

For example, let the constraint V > 250m3 have the


weight 1 and h - R > 5mm have the weight 2. it
means that we consider the constraint h - R > 5mm
as more important than the constraint V > 250m3.
The priorities values can be real numbers, the
minimum (default) priority is 0.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (4/6)

5- A Free Parameter (or Free variable) is a

parameter of the optimization problem that can


change of value. In an optimization problem several
parameters can be declared as free. In the example
above, R is the (unique) free parameter of the
5-
volume optimization problem
6-

6- A free parameter can have specified the ranges of


value change (in our example, [12mm, 40mm] for R)
and the step of increasing of its value during the 7-
solving of the optimization problem.

7- An optimization problem can be solved using


different algorithms. Product Engineering Optimizer
uses two of them : Conjugate Gradient and
Simulated Annealing.
Copyright DASSAULT SYSTEMES

We advice you to use Conjugate Gradient algorithm


when the objective function is continuous and
differentiable at all point, and Simulated Annealing
algorithm in all other cases.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (5/6)

8- You can specify Termination criteria, i.e.


conditions to stop automatically the
computation of the best value.
These are : Maximum number of updates,
Consecutive updates without improvements,
Maximum time (of computation).

9- Optimization data are results of the


optimization problem computation. They
contain for each evaluation step the value of
free parameters and the value of the objective
function. In Product Engineering Optimizer
they are presented in two ways : graphical
and numerical representation. To save them,
you must specify the corresponding option.

10- The Run optimization without filling the


Undo Log. When this option is checked, the
8-
optimization is launched without being
recorded in the undo log. This new option
enables you to optimize medium and large 9-
Copyright DASSAULT SYSTEMES

size FEM models. This highlight allows a


10
reduction of computation time and a
drastic decrease in memory consumption
during the optimization process.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Terminology (6/6)

11- Sorted results present results of


different evaluation steps. The values of
the objective function and of the free
parameters are sorted, i.e. listed in a
certain order. Historic sort gives the values
of the parameters in the order of
computation, and Lexicographic sort gives
the values of the parameters in the
“dictionary” order.
11
12- Optimization curves is a graphical
representation of optimization data. They
show the changes of the values of free
parameters and of the objective function
during the computation of the optimization
problem.
12
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

General Process

Define a new optimization


1 problem :
objective function, free
2 parameters, constraints on
parameters
Create a new part / product
or open an existing one

3
Choose an optimization
algorithm
4

Specify termination criteria


if need.
Run the optimization
Copyright DASSAULT SYSTEMES

See the optimization curves and


5
the optimization report if need

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Optimization Problem Formulation

In this lesson you will learn how to define an Optimization problem

Accessing Product Engineering Optimizer Workbench


Accessing Optimization Problem Editor
Selecting the Optimization Type
Defining the Objective Function
Defining the Free Parameters
Specifying a Range and a Step for a Free Parameter
Accessing the Constraint Editor
Formulating a New Constraint
Assigning Weights to Constraints
Editing a Constraint
Copyright DASSAULT SYSTEMES

Deactivating and Deleting a Constraint

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Accessing Product Engineering Optimizer Workbench

If there is no optimization application in your CATIA document, a new


Optimizations node is created when you access the Product Engineering
Optimizer workbench. You can access the workbench from
1- Start menu or 2- Workbench Icon

2-
1-
Copyright DASSAULT SYSTEMES

See Tools + Customize + Start Menu


for the content of this Welcome to
CATIA V5 box

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Accessing Optimization Problem Editor

If there is no optimization application in your CATIA document click on the Optimize


icon of the workbench. You access the Optimization Problem editor panel.

If there is an optimization application in your CATIA document, double-click on the


Optimization.n node located under Optimizations node to open the Optimization Problem
editor panel.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting the Optimization Type

1
Access the
Optimization
Problem editor

2 Select in the list of the optimization types the type of the


optimization you want to perform : Minimization, Maximization,
Target Value or Only Constraints. The “Target Value”
optimization helps to find the value of free parameters such that
objective function’s value is as close as possible to the specified
target value.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Defining the Objective Function

1 2
Access the Click on Select button. In the panel that appears, select the
Optimization objective function. Click on OK
Problem editor
Copyright DASSAULT SYSTEMES

3 The information on the objective function appears in the Optimization problem editor.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting the Free Parameters

1 In the panel that appears, select the parameters


2 you want to choose in the left window. Use the
Access the
Optimization arrow to copy these parameters one by one in
Problem the right window. Click on OK after you have
editor. Click finished to complete the parameters list.
on Edit list
button

The information on free parameters indicating the current value of each parameter appears in
3
the Optimization problem editor.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Specifying a Range and a Step for a Free Parameter

1 In the displayed panel, select the options you


2 want to specify. Enter the values of the ranges
Access the
Optimization and /or the step for evaluation of the free
Problem editor. parameter. Click on OK
Select one of the
free parameters.
Click on Edit
ranges and step
button

The information on the range and / or the step of the free parameter appears in the
3
Optimization problem editor.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Accessing the Constraint Editor

1 2 Click on New button.


Go to the
Constraints
tab of the
Optimization
Problem
editor.

3 The Constraint Editor panel is displayed.


Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Formulating a New Constraint

1 In the Constraint editor type the text of


the constraint using the parameters
and the operators available in the
wizard. You have to respect the
following convention : the expression
in the right hand side of the relation
must be a constant. Click on OK.

The text of the constraint relation appears in the list of constraints in the

optimization problem editor.


Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Assigning Weights to Constraints

1 In the Constraint editor give to the


constraint a weight (or priority) as a
positive real number. For more
important constraints the weight must
be bigger than for less important
constraints.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Editing a Constraint

1 Choose the constraint to edit in the list of the constraints in the optimization
problem editor. Click on Edit button.

The Constraint editor panel appears. Edit the


2 constraint and click on OK.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Deactivating and Deleting a Constraint

1 Choose a constraint in the list of the constraints in the optimization problem


editor.

To deactivate the constraint, choose False in


2 the list of values for Activity parameter.

3 To delete the constraint, click on Delete button.


Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Optimization Problem Resolution

In this Step, you will see how to solve an optimization problem

Selecting the algorithm


Specifying the Termination Criteria
Running the optimization
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting the Algorithm

Access the Optimization Problem editor. In the Algorithm part of


the editor you have choice among 6 options:
- User algorithm defined in CAAOptimizationInterfaces.edu
- Local algorithm for Constraints and Priorities
- Simulated Annealing Algorithm
- Algorithm for Constraints & Derivatives Providers
- Gradient algorithm with constraint(s)
- Gradient algorithm without constraint

We advise you to use Conjugate Gradient algorithm when the objective function is continuous and
differentiable at all point, and Simulated Annealing algorithm in all other cases.
If you want to obtain a fine grain optimization, start with a Simulated Annealing algorithm then refine
the results with the Conjugate Gradient algorithm. This approach is slow but works for a large amount
Copyright DASSAULT SYSTEMES

of functions.
For both algorithms, the result can be refined by removing one or several parameters from the list of
free parameters and restarting the optimization.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Type of algorithms: overview


User algorithm
Users can define their own algorithms. To get an example, refer to the CAAOptimization interfaces.

Local Algorithm for Constraints & Priorities


This algorithm takes constraints priorities into account.

Simulated Annealing Algorithm


This algorithm is a global stochastic search algorithm hence two successive runs of this method might
not lead to the same result. It performs a global search that evolves towards local searches as the
time goes on.
It is usually used to explore non-linear, multi-modal functions. These functions can also be
discontinuous.
If the shape of the objective function is unknown, it is recommended to start with a Simulated Annealing
then refine the results with a gradient descent. This approach is slow but works for a larger amount
of functions.
A good way to quickly reach a solution when using the Simulated Annealing consists in specifying a low
number of consecutive iterations without improvements (15 or 20).
On the contrary, in order to foster search, the number of consecutive updates without improvements
can be increased as well as the time and the number of total updates.

Algorithm for Constraints & Derivatives Providers


This algorithm can handle objectives providing derivatives (like analysis global sensors) in conjunction
with constraints providing multiple values and derivatives (like analysis local sensors).

Gradient algorithm
Copyright DASSAULT SYSTEMES

This algorithm should be used first to perform a local search. Based on the calculation of a local slope of
the objective function, this algorithm will use a parabolic approximation and jump to its minimum, or
use an iterated exponential step descent in the direction of the minimum.
If the properties of the objective function are known (continuous, differentiable at all point), the
gradient can be used straight on. It is usually faster than the Simulated Annealing algorithm.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Specifying the Termination Criteria

1
Access the Optimization Problem editor

In the Termination criteria part of the editor specify :


the maximum number of updates, the number of consecutive

updates without improvements and the maximum

computation time that you wish. When one of this criteria is

satisfied, the optimization process will be stopped


Copyright DASSAULT SYSTEMES

automatically.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Running the optimization (1/2)

Solving the optimization


Access the Optimization Problem editor.
1
Before running the optimization, you have to specify if you
want to do it with or without filling the Undo Log. This new
functionality enables you to launch the optimization
without recording its result in a log. In the optimization
context, this will allow you to optimize medium and large
sized FEM models.

2
Click on Run Optimization button. If the option
Save optimization data is set, the panel asking you
to enter the name of the file where you want to save
the optimization results appears. Enter a file name
then click Open button.

A panel showing you the progress of the


3 optimization process is displayed.
The geometry changes dynamically with every
new iteration.
Copyright DASSAULT SYSTEMES

The panel shows the current best value of the


objective function, the state of each constraint
(satisfaction, distance to satisfaction, activity ) the
value of termination conditions and the number of
aborted updates.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Running the optimization (2/2)

Stopping the optimization

1
If you want to stop the optimization
process before one of the termination
criteria is reached, click on the Stop
button.

best value for the objective function

When the calculation is finished,


you can see in the Optimization
2 problem editor the free
parameters values that give the
Copyright DASSAULT SYSTEMES

best value for the objective


function.

corresponding values of the free parameters

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Exercises Presentation
Now open the CATIA Training exercise book and practice on:

Step 1 of Beam Mass Optimization ( page 22 )

Step 1 and 2 of Mass Optimization (page 34 and 37)

Step 2 and 4 of Shape Optimization Fastener ( page 48 and 54 )

Step 2 of Structural Optimization Surfacic structure ( page 62 )

Step 2 of Structural Optimization Beam structure ( page 70 )

Step 2 of Structural Optimization Surfacic and


Beam structure ( page 80 )

To learn how to :
Copyright DASSAULT SYSTEMES

Select the Free Parameters


Specify a Range and a Step for a Free Parameter
Access the Constraint Editor
Formulate a New Constraint
Specify algorithm
Run optimization

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Solution Analysis

In this Step, you will see how to analyze the optimization results

Analyzing the optimization results


Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the optimization results (1/4)

Optimization curves

1
Check that the option Save optimization data is set
in the Optimization Problem editor. When the
optimization problem calculation is finished, click
on Show curves button. A panel with the curves
presenting optimization results is displayed.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the optimization results (2/4)

In the left window you can see the graphical representation of values of

the free parameters and of the objective function for every evaluation

step. In the right window you can see what colour corresponds to what

parameter. When you click on a parameter in the right window, the name

of the parameter is displayed on the top of ordinate axis. It helps you to

analyze the behaviour of the objective function and of free parameters


2
during the optimization process.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the optimization results (3/4)

Excel report file


The optimization curves are generated from the data contained in the Excel file which name
has just been specified before running the optimization.

best value for the objective function value of the objective function and
corresponding values of the free parameters

evaluation
number

distance to the value


satisfying the constraint

In this file you can find the following optimization results for every evaluation step : the values of
Copyright DASSAULT SYSTEMES

the free parameters and of the objective function, distances to the values satisfying the constraints.
Since they are presented in the Excel format, you can easily reuse these data for other calculations
or for a report.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the optimization results (4/4)


Filter the optimization results
The results of different evaluation steps are presented
in the Sorted results part of the Computation results
tab. Its contents is exactly the same then the contents
of the Excel file.
Constraints priorities used for the results sort part of
the Computation results tab offer the possibility to
specify that the parameter values satisfying such or
such constraint (having the higher priority) must be
displayed first. To change the priorities, double-click
directly in the priority value field.
There are following sorting possibilities for the results
presentation :
Historic sort gives the values of the parameters in the
order of computation,
Lexicographic sort gives the values of the parameters in
the “dictionary” order.
The Results to display scrolling list gives some
filtering possibilities :
All to present all the values,
All constraints satisfied only to present the values
satisfying all the constraints,
User defined to present the values belonging to some
intervals. The interval of each parameter value can be
Copyright DASSAULT SYSTEMES

selected in Give the restriction filter criteria panel by


double-clicking directly in the Inf.Bound or Sup.Bound
field.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Exercises Presentation
Now open the CATIA Training exercise book and practice on:

Step 2 of Beam Mass Optimization ( page 27 )

Step 3 of Mass Optimization (page 40)

Step 3 and 5 of Shape Optimization Fastener ( page 51 and 56 )

Step 3 of Structural Optimization Surfacic structure ( page 65 )

Step 3 of Structural Optimization Beam structure ( page 73 )

Step 3 of Structural Optimization Surfacic and


Beam structure ( page 83 )
Copyright DASSAULT SYSTEMES

To learn how to :
Analyze the optimization results

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Best Practices for Optimization with PEO

In this lesson you will learn some advices to perform a better optimization
process

Selecting the best algorithm


Defining the termination criteria
Defining constraints
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting the best algorithm

When you define an optimization problem, try to understand the character of the
objective function. If it is derivable (I.e. its derivative exists), it is better to apply
Conjugate Gradient algorithm to optimize the function. If it is not, use Simulated
Annealing algorithm.
Conjugate Gradient algorithm gives very good results when all the constraints of
the optimization problem are satisfied when starting the optimization
computation. We advise you to start with the Simulated Annealing algorithm to
satisfy all the constraints then to stop the optimization computation and switch
to Conjugate Gradient algorithm to obtain the best value of the objective
function.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Defining the termination criteria

When you specify the termination criteria for an optimization problem, set for the
first computation :

Maximum number of updates - 300,


Consecutive updates without improvements - 30,
Maximum time of computation – 5min.

Try to analyse the behavior of the objective function during the computation to
modify the termination criteria (if need) after this first test. If you want to speed
up the improvement of the objective function during the computation, decrease
the Consecutive updates without improvements parameter (but keep it greather
than 10).
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Defining constraints

When you define the constraints of an optimization problem, keep in the mind
that the more constraints you will formulate, the more precise your computation
will be.
Write down all the constraints on the paper. Set the priorities (if you can), keep at
the beginning of the constraint list the most important ones. Give them
comprehensive and significant names.
Add the constraints one by one to the set of constraints in CATIA PEO (starting
at the beginning of your list, of course). Perform the computation with the
Simulated Annealing algorithm for every added constraint. If all the constraints
are satisfied and the objective function is derivable, stop the optimization and
switch to Conjugate Gradient algorithm. Run the optimization to get the best
value for the objective function.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Design of Experiments Tool

In this lesson, you will learn about the Design of Experiments tool:

Introduction
Selecting input parameters
Selecting output parameters
Analysing the results
Predicting an output value
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Introduction

Design of Experiment is the ability to understand the behavior of a system


thanks to space exploration

The tool provided with CATIA V5 allows you to:


Select inputs and outputs
Define ranges & number of steps to produce a matrix of experiments
Find interactions between parameters
Generate graphs of influence between inputs and outputs parameters
Predict results outside of the computed experiments

???
Controlled
input System Responses
factors
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting input parameters (1/2)

1 2
Click the Design of Experiments
icon to open the Design of Click the Edit list button to select the input
experiment window. parameters that will be taken into account
when performing the analysis. In the
opening dialog box, select the input
parameters by using the arrow button and
click OK.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting input parameters (2/2)

3 In the Select input parameters field,


select an input parameter and click
the Modify ranges and/or nb of
levels button.
4 In the opening dialog box, specify the
superior and the inferior ranges of the
input parameter and indicate the number
of levels (number of nodes). The
multiplication of these levels matches the
number of updates performed (computed
automatically).
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Selecting output parameters

1 Click the Edit list button to choose


You can then select two options:
the output parameter(s) by using
Save curves in the output file: enables
the arrow button and click OK. you to save the result of the analysis in
2
an .xls (for Windows only) or .txt file (for
both Unix and Windows.)
Show geometric updates during
computations: enables to display
changes, when the input values are
modified.

3
Click on Run DOE button to launch the analysis.
Enter the name of the output file and click Save.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analysing the results (1/3)

Results tab

1
Once the analysis is finished, select the Results tab.
The matrix displayed in the Table of experiments section is
the result of computations for each node: the number of
evaluations presented matches the number of updates
displayed in the Settings tab.

2
You can apply the values of the table to the
parameters. To do so, select one line in
the Table of Experiments and click the Apply
these values button.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the results (2/3)

Generated curves

The number of graphics generated depends on the number of selected


input and output parameters. A graphic is generated:
for each input and each output for the effects
for each couple of input factors and for each output.

Plot of one factor effect on one


output:

This graphic shows the mean effect of


the 'OxLength'parameter on the
OxyPerimeter. The three curves are
parallels which means there is no
interaction between the OxLength and
OyLength parameters on the output
Copyright DASSAULT SYSTEMES

parameter (Oxyparameter). The effect of


OxLength on OxPerimeter does not
depend on the OyLength value.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Analyzing the results (3/3)

Plot of interaction between 2 input


factors on one output :

This graphic shows the mean


effect of the "OxLength"
parameter on the OxyArea.
OxyArea increases when
OxLength increases and the
relation between these two
parameters seems to be
linear.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Predicting an output value

1
Select the Prediction tab. This tab presents a
mathematical model of the system and is used
to get a theoretical value of the output
parameter considering a specific configuration
of the input parameters.

2
Click the parameter to select it. Change its value
in the Selected parameter' s value field (hit the
Enter key or click anywhere to validate the input).
Repeat this operation for each parameter you
want to use.
Note: the parameter values must be contained
between their lower and upper ranges.

3
Click the Run Prediction button: the result displays
Copyright DASSAULT SYSTEMES

in the lower part of the window.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Exercises Presentation

Now open the CATIA Training exercise book and practice on:

DOE Exercise ( page 75 )

To learn how to :
Select the Free Parameters
Specify a Range and a Step for a Free Parameter
Access the Constraint Editor
Formulate a New Constraint
Specify algorithm
Run optimization
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Constraint Satisfaction Tool

In this lesson, you will learn about the Constraint Satisfaction tool:

Introduction
Creating constraints
Specifying the number of solutions
Setting the options
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Introduction

The objective of the « constraint satisfaction » feature is to efficiently


describe, solve and dialog with a pure constraint satisfaction problem.

The problem is made of a set of equality and inequality constraints including


measure computations (area, distance, length, volume, etc).

The user is able to drive the problem from any parameters (inputs or
computed ones) without changing the definition of the problem.

He can mix pure engineering constraints with geometric ones.

He can ask for one or several solutions. In the case of several solutions, he
can specify which must be the minimal distance between 2 solutions.
Note : This distance is calculated as an euclidean distance between 2 elements of the solution
Copyright DASSAULT SYSTEMES

set.

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Creating constraints (1/3)

1 Click the Constraint Satisfaction icon to


open the Editor. In the first dialog box which
is displayed, enter the name of the relation,
and a comment (optional). Click OK.

2 The Editor tab is divided into parts:


The Constraint Set body, i.e. the text of the
constraints,
The Inputs and Outputs of the constraints,
The Dictionary of Parameters and
Functions used to formulate constraints.

Enter the set of equations into the edition box.


Each constraint must be ended by a “;”
character.
Copyright DASSAULT SYSTEMES

Example:
Volume ==smartVolume(PartBody\Pad.1 );
PartBody\Pad.1\FirstLimit\Length >=1mm;
PartBody\Pad.1\FirstLimit\Length <=100mm;

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Creating constraints (2/3)

3 Click the Parse arrow so that the editor can


identify the variables of the set of constraints
and puts them as Unknown parameters.

4 Using the left and right arrows, select the


parameters that will be considered as input
(Constant parameters) and the parameters
that will be considered as variables
(Unknown parameters) by the solver.

5
Set the value of the input parameters to the
desired values. To do so, click twice (slowly)
inside the Value cell and set the value.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Creating constraints (3/3)

6 Click Apply button to solve the set of


equations.
Like sets of equations and unlike
optimization, constraint satisfaction issues
an "unresolved system" warning if the solver
is unable to satisfy all the equations and
inequations.

7
This process can be reversed: The input
parameters can be transferred to outputs
and vice-versa using the Switch input/output
arrow.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Specifying the number of Solutions

In the Results tab :


Specify the Number of solutions to find (1 by
default) and the minimum distance between
two solutions.
Note : This distance is an Euclidean
distance between 2 elements of the
solution set.
Suppose that 3 solutions were asked by the
user. In the case of successful solving, the
list of 3 solutions is displayed in the window
in the bottom of the editor. You can
navigate in the set of solutions, choose one
of them and apply corresponding values of
variables to the model using Apply solution
button.
Save solutions button allows to save the set
of solutions in an Excel file.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Setting the options (1/3)


Algorithm
1
Precision: Enables you to define the
precision of the results (i.e the number of
decimal digits after the decimal point).
Use the Gauss method for linear equations:
Accelerates the solve operation when
working with linear equations.

Termination criteria
2
Maximal computation time (sec.): Enables
you to indicate the computation time. If the
indicated time is equal to 0, the computation
will last until a solution is found.
Generate expanded error description:
Enables you to get detailed information
about errors if they occur.
Show 'Stop' dialog: If checked, displays a
"Stop" dialog box that will enable you to
interrupt the computation.

Black boxes algorithm


Copyright DASSAULT SYSTEMES

3 You have the choice between 2 algorithms :


Gradient and Quadratic approximation
algorithm. If your problem behaves like
quadratic functions, prefer Quadratic
approximation

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Setting the options (2/3)

Black box refers to a measure function. For instance, smartVolume is a measure that
calculates the volume of a body.

4 Black boxes parameters

Precision (for Black boxes): A real number taken from the


interval [1e- 10, 0,1]. This number has an influence on the
accuracy of the solution found.

Maximal number of Black boxes calls: This options allows


you to limit the number of measures calculation.
(equivalent to a time limit.)

Number of attempts: This option is only used for sets of


constraints with more than one variable. This option
changes the number of start points used by the solver.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

Setting the options (3/3)

• Use unimodal interval: This option allows you to use a


special information about the interval of unimodality.
• Width: This parameter sets the minimal width of the
interval of unimodality for measures. For linear, quadratic
and any monotonic measure, this value can be set to 1e
19. In a common case, the greater this value, the quicker
the solver finds the solutions. However if you are not sure
about the monotonicity of the problem, do not use this
option.

• Cache size: This option allows you to choose the size of


internal black boxes caches. Decrease this value only if
you do not have enough memory. Increase this value if
you have enough memory in order to reduce the
computation time.
• Restore Defaults button allows you to restore default
options.
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES


Product Engineering Optimizer

To Sum Up ...

In this Course you have seen the functionalities of the CATIA V5R14 Product
Engineering Optimizer :

How to define an optimization problem

How to solve it

How to analyze the optimization results

How to Determine a cause-effect relationship between the response(s) and the input
factors of a system (Design of Experiments)

How to manage complex and hybrid engineering problems using the Constraint
Satisfaction feature
Copyright DASSAULT SYSTEMES

Instructor Notes:

Copyright DASSAULT SYSTEMES

S-ar putea să vă placă și