Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Red Cedar Technology, Inc. The information in this manual is subject to change without notice and should not be construed as a commitment by Red Cedar Technology, Inc. While every effort has been made to ensure the accuracy of the material, Red Cedar Technology, Inc. assumes no responsibility or liability for any errors, inaccuracies or omissions that may be present in this manual. Copyright 2011 by Red Cedar Technology, Inc. All rights reserved. HEEDS is a registered trademark of Red Cedar Technology, Inc. Other brand or product names that may appear in this manual or in the illustrations are the registered trademarks or trademarks of their respective holders.
Contents
Part 1 Overview 1
1. Introduction ..................................................................................................................2
What is Optimization? ................................................................................................ 2 How HEEDS MDO Optimization Works ..................................................................... 3
About HEEDS MDO agents ............................................................................................ 4
Creating a Baseline Design ....................................................................................... 9 The Anatomy of a HEEDS MDO Project .................................................................. 10
Setting up a Project in HEEDS MDO Modeler............................................................... 11
Saving Projects ....................................................................................................... 27 Switching Projects ................................................................................................... 28 Exiting from HEEDS MDO Modeler ......................................................................... 30
www.redcedartech.com
31
ii
www.redcedartech.com
Defining parameter variables ........................................................................................ 90 Using HEEDS MDO internal variables .......................................................................... 93
Removing Project Variables ..................................................................................... 95 Adding, Editing and Removing Variables in Batches ............................................... 96
Removing Project Responses ............................................................................... 121 Adding, Removing, and Editing Responses in Batches ......................................... 121
128
Retagging .............................................................................................................. 135 Re-reading a File ................................................................................................... 135 Other Tagging Tools ............................................................................................... 136
The Processes tree ..................................................................................................... 136 The Process Coloring option ....................................................................................... 137 The Search feature...................................................................................................... 140
www.redcedartech.com
iii
Untagging Variables or Responses........................................................................ 144 Copying and Pasting Tags ..................................................................................... 145
9. Scripting................................................................................................................... 146
The Script Editor Screen ....................................................................................... 147 HEEDS Scripting Language (HSL) ........................................................................ 148
Important HSL Rules ................................................................................................... 148 The scripting commands.............................................................................................. 149
iv
www.redcedartech.com
227
Defining Agent Variables ....................................................................................... 235 Defining Agent Responses .................................................................................... 235
vi
www.redcedartech.com
237
www.redcedartech.com
vii
Using Particle Swarm Optimization (PSO)................................................................... 286 Using the Nelder Mead Simplex method ..................................................................... 290
294
Agent Variables and Responses ............................................................................ 303 Using the Directed Method .................................................................................... 304 Setting Up a Custom DOE ..................................................................................... 308
Defining your factor levels: 2-level projects ................................................................. 311 Defining your factor levels: 3-level projects ................................................................. 312 Defining your factor levels: central composite method................................................. 313 Fitting a Response Surface to existing design data ..................................................... 315
viii
www.redcedartech.com
329
Viewing Agent Variables and Responses ............................................................... 334 Defining a Robustness and Reliability Project ....................................................... 335
Setting up a reliability analysis .................................................................................... 335 Setting up a robustness study ..................................................................................... 337
340
348
Files Created Before and During a Run ................................................................. 357 Running a Project from the Modeler ...................................................................... 358
Running a project for the first time............................................................................... 359
www.redcedartech.com
ix
Part 6 Post-Processing
378
www.redcedartech.com
The probability distribution plots .................................................................................. 424 The parallel plot........................................................................................................... 426
Copying Plots to the Clipboard .............................................................................. 429 Results Files .......................................................................................................... 429
The PLOT and RES files ............................................................................................. 430 Opening Results Files in Excel or a Text Editor .......................................................... 431 Pareto optimization (MO-SHERPA) results ................................................................. 431
433
Appendices
446
www.redcedartech.com
xi
Continuing a run from the command line ..................................................................... 455 Extending a run from the command line ...................................................................... 456 Other command line options ........................................................................................ 457
Index
459
xii
www.redcedartech.com
www.redcedartech.com
xiii
Part 1 Overview
1. Introduction
HEEDS MDO is a multidisciplinary design exploration and optimization software package that automates the search for better and more robust solutions within a given design space, and dramatically reduces design time. HEEDS MDO enables you to find designs that perform extremely well according to multiple criteria, while simultaneously satisfying multiple constraints and using a large number of variables. In an overnight run, HEEDS MDO can produce results that would take several weeks to accomplish manually. Although the technology behind HEEDS MDO and its powerful search engine is complex, the software is user friendly. You do not need to be an expert in optimization theory to use it effectively. Simply create your design model with the analysis software you normally use. Then, set up your design project in the HEEDS MDO Modeler. When your project runs, HEEDS MDO automates and accelerates the natural design iteration process, using the same analysis tool(s) you used to create your design.
What is Optimization?
As an engineer, your goal in creating something new is typically to design it to be as good as it can be in some sense. That may mean that it should last as long as possible, perform as efficiently as possible, or be as easy to maintain as possible. Or it may mean that it should be ready for market in as short a time as possible or be as inexpensive to manufacture as possible. If the product is to replace an existing one, it needs to be at least as good as the old one in many respects and better in others. All of these reasons for creating a new design have one common goalto improve one or more aspects of the design so that it results in a better product. This is what optimization is all about. Websters Collegiate Dictionary defines optimization as an act, process, or methodology of making something (a design, system, or decision) as fully perfect, functional, or effective as possible. Based on this definition, true optimization is making something as good as it can possibly be. Closely related to optimization is improvementthat is, making something better than it currently is. Traditional optimization has focused on improvement rather than true optimization. The result is not necessarily the best design possible, but merely a design
www.redcedartech.com
Introduction
that is improved over the original. True optimization, on the other hand, results in the best design possible under a given set of circumstances. To solve an optimization problem manually, you would need to choose combinations of variables and perform an analysis for each combination. Then, you would examine the output to evaluate how well it fulfills the objectives and constraints and determine what a good set of variables for the next run might be. Eventually, given enough time, you would come up with a solution that was more optimal than the baseline design. For a simple problem, you might even come up with the best solution. However, given the nature of most engineering design environments, limitations on time and resources prevent manual search methods from reliably producing the best possible design. Instead, you must settle for better or good enough. This is where HEEDS MDO comes in.
www.redcedartech.com
www.redcedartech.com
Introduction
Or, when the linear and quadratic weight variables are set to their default values:
Nobj 2 QuadWt j * ConstrntViolation j LinWti * Signi * Obji Ncon 2 Normi Norm i =1 j = 1 j
Variable Nobj LinWti Si Obji Normi QuadWti Ncon LinWtj ConViolj Normi QuadWtj
Definition Number of objectives in the optimization study The linear weight for the i objective. The default value is 1. Sign for the i objective. The value is -1 for objectives being minimized and +1 for objectives being maximized The response value for the i objective for that design The normalizing value for the i objective. The quadratic weight for the i objective. The default value is 0. Number of constraints in the optimization study The linear weight for the j constraint. The default value is 0. The amount by which the j constraint is violated. This value is 0.0 if the constraint is met. The normalizing value for the i constraint. The quadratic weight for the j constraint. The default value is 10000.0.
th th th th th th th th th
Design feasibility
A design that simply meets or satisfies all of the constraints is called a feasible design, regardless of how well it meets its objective. There may be many feasible designs that are very bad, but what we look for in optimization is the best of the feasible designsthe one that maximizes or minimizes the objective as much as possible while still satisfying the constraints. As indicated by the performance value equation given above, for feasible designs (all constraints are satisfied), the performance function is a sum of the normalized objective values. When one or more constraints are violated, the performance value of the design is
www.redcedartech.com
reduced by a value based on the violation of the constraint (the second term in the equation). Feasibility is technically an either/or propertyany violation of any constraint means that a design is infeasible. However, it is difficult to treat feasibility in that way for many real-world problems. Instead of treating all infeasible designs equally, HEEDS MDO computes a penalty factor for each constraint that is violated. For example, a constraint may say that the first natural frequency of a structural system must be greater than a specific fixed value. It does not matter how much greater, as long as it is that value or larger. Small violations of that constraint would be assigned smaller penalties than large violations. These penalties are combined with the objective rating to calculate the overall performance value of a design. Performance is good for designs with a good score on the objective and no violations of the constraints; performance gets worse when the objective score gets worse or constraints are violated. Since the constraints are enforced using the penalty method, in certain cases, the reduction in performance of a design due to a small violation in constraint(s) can be offset by the increase in the performance because of the improvement in the objective the same time. This means that you can have slightly infeasible designs that have a higher performance value than designs that are feasible. In fact, it is possible that the best design reported is slightly infeasible for this reason. If no amount of infeasibility is acceptable, the weights for the constraint definitions should be increased and/or the normalizing factor value should be reduced such that even a small violation in the constraint results in a large reduction in the performance value. By not eliminating designs on the basis of feasibility, HEEDS MDO can still provide results that are valuable in optimizing the design, even if no designs in a given run are actually feasible. HEEDS MDO still provides the best of the infeasible designs, which you can use to recast your design problem (perhaps by extending the range or number of the variables or by relaxing some of the constraints) and let HEEDS MDO try again. This means that a run that does not produce desirable results is not a failed run but a step in the direction of optimizing the design.
www.redcedartech.com
The best possible design will be the one that most effectively meets the objective while staying within the constraints. There are often many different ways to look at the same problem. For example, you might specify the maximum allowable weight of a part (a constraint) and try to maximize the load it can tolerate without failing (the objective). Alternatively, you might seek to minimize the weight (the objective) while enforcing that it cannot break at a certain load (a constraint). The solutions will likely be different, but each might be appropriate for a given situation.
www.redcedartech.com
Parameter Optimization
In a HEEDS MDO parameter optimization study, optimized designs are sought by an agent by iteratively changing the values of tagged variables, executing the defined analyses, and extracting the responses for each design candidate. New design candidates are generated based on the mathematical search algorithms in HEEDS MDO.
www.redcedartech.com
identify which of the variables have the greatest influence on your responses and which have little or no effect. When you set up a DOE, you choose the factors (variables) you want to test and the method you want to use to set up the DOE matrix. Using the DOE matrix, HEEDS MDO generates the designs and uses the responses you specify to evaluate the influence of your selected factors and also the influence of the interaction between these factors. The results are reported in post-processing plots, which can be displayed within HEEDS MDO.
Evaluation projects
In a HEEDS MDO Evaluation study, you specify the designs that you want to evaluate and the best process for you. With this type of project, you are using the process automation capabilities of HEEDS MDO to automate the creation and execution of, and results extraction for, different combinations of design variables that you specify.
www.redcedartech.com
become the variables in your HEEDS MDO design study. Then, run your analysis software to produce an output file and check the results to make sure the input file is error free. HEEDS MDO uses the input and output file(s) from your design as a basis for creating and evaluating the design candidates. Except for the variables, the input file is used as is for each evaluation during a HEEDS MDO run. The baseline input files are never altered by HEEDS. These files are used as templates to create new copies of these files with the updated design variables. The output file is used only to determine the location of the values that will be used in determining the results of the study. Using the HEEDS MDO Modeler you will (1) identify your project variables and the responses that contain your objective(s) and your constraints and (2) define the constraints (whether a response should be or a par ticular value) and objectives (whether a response should be maximized or minimized).
Description
Search for an optimal design. Determine how certain variables influence the performance of your design. Test your design against expected real-world deviations in your design and environmental variables. Execute and post-process designs that you specify.
All HEEDS MDO projects, regardless of agent type, have the following elements: At least one process, which contains at least one analysis. Analyses define the tools and model files that are used to evaluate the performance of each design candidate. A set of project variables. The project variables are the quantities (or parameters) that are varied for each evaluation.
10
www.redcedartech.com
A set of project responses. The project responses are used to evaluate the performance of the design. At least one agent. Agents execute and control the design exploration study.
www.redcedartech.com
11
12
www.redcedartech.com
viewed while the project is running, as well as at the end of the run, so you can always see what the end result would be if you were to stop the run. DOE post-processing plots are not available until the entire run is completed. HEEDS MDO Modeler displays the following post-processing plots. The type of plot displayed depends on the type of agent: Parameter optimization plots
Plot Type Performance Variable (for each variable) Response (for each response) A list of the best designs found Parallel Pareto Front Description Shows how well the objective(s) and constraint(s) are being met. Shows variable selection Tracks the values that have been extracted for each response. Includes the best designs along with their performance ratings, the values used for the variables, and the values returned by the responses. Contains a composite view of the variables and responses for all designs plotted. For studies with only two objectives that use the MO-SHERPA method.
DOE plots
Chart/Plot Type Pareto chart Main effects plot Interaction effects plot MARS, quadratic, and linear response surface plot Response surface fit plot Parallel plot Description Shows the relative influence of each factor for a given response. Shows the effect of each factor on each of the responses. Shows the influence of the interaction between factors for each response. Allows you to examine how changes to your variables might affect your responses. Shows how well the response surface models approximate the design space. Contains a composite view of the variables and responses for all designs plotted.
www.redcedartech.com
13
Evaluation plots
Plot Type Performance (optional) Variable (for each variable) Response (for each response) A list of the best designs found (optional) Parallel Description Shows how well the objective(s) and constraint(s) are being met. Shows variable selection Tracks the values that have been extracted for each response. Includes the best designs along with their performance ratings, the values used for the variables, and the values returned by the responses. Contains a composite view of the variables and responses for all designs plotted.
14
www.redcedartech.com
Windows
1. Click Start and select Programs (Windows 2000) or All Programs (Windows XP) 2. Highlight the HEEDS MDO 6.1 program group on the Programs menu. 3. Click on Modeler to start the Modeler. The next time you start HEEDS MDO, HEEDS MDO 6.1 should be listed in your frequently used programs, so you shouldnt have to open the full program menu.
Hint: If you are running Windows, you can place a shortcut to the Modeler on your desktop. Then
you wont need to start it from the menu. The default path to the Modeler is:
C:\HEEDS\MDO\Ver6.1\Modeler\HEEDSModeler6.1.exe Note: If you are running a single-user system and you did not set the license manager up to start
the server automatically at power up, you will need to start the license server first. Refer to the installation guide for instructions.
www.redcedartech.com
15
16
www.redcedartech.com
Note: If you are using Windows and have not yet created a folder for your project, you can do so now in the Save New Project As dialog. Simply click the will appear in the currently displayed directory. in the tool bar, and the new folder
3. Enter a name for your new project in the File name field. You do not need to enter the .hds extension; HEEDS MDO will add it automatically. 4. Click Save.
www.redcedartech.com
17
Function Define the processes, analyses, and files that are to be used in the project. Define the project variables and responses. Link variables and responses to the input and output files. Create your agents and assemble the project for execution. Run and monitor the project. Display the plots that report your post-processing results.
18
www.redcedartech.com
Initiating actions
The menu bar contains functions that apply to the project as a whole. Most actions you perform are initiated from right-click or context menus. These menus contain the commands that are valid for the currently selected object.
To initiate an action
1. To display the pop-up menu for a given object, right-click on the object. An object can be any of the following: A graphical representation:
A table or window:
www.redcedartech.com
19
A cell in a table:
An item in a tree:
2. The menu will contain a list of functions that can be performed on the selected object. If a function is not currently valid for the object, it will be grayed out. 3. To perform a function, select the corresponding command from the menu.
Note: If an object is inactive or does not have any actions associated with it, no menu will appear.
Naming conventions
When you add an element to your project (such as a variable, a response, an analysis or an agent), it is given a default name of name_n, where name is the name of the object or element (e.g., variable, Analysis, OPT_Agent) and n is the next number in sequence (e.g., if you already have a variable_1, the next variable will be variable_2). You can change this name to one that is more suitable for your project and clearly identifies the object, but there are some naming conventions that you need to follow: All names must be alphanumeric and may not have any spaces: This is a legal name: This is not a legal name:
20
www.redcedartech.com
Variables and responses have one additional restriction: They cannot begin with a number. These are legal names: These are not legal:
Area_1, Sig2Max 3x3Area_1, 3Out
If you enter a name that is not legal, a message will appear when you try to move to another field. You will not be able to leave the field until you enter a legal name.
To add an item
1. Right-click in the window that contains the table or list you want to add the item to. The pop-up menu will appear:
2. Select the Add option from the menu. A new line will be added to the table.
www.redcedartech.com 21
Removing items
1. Click on the box in front of the item. A selected: will appear in front to show that it is
2. Right-click anywhere in the window, and select the Delete option from the pop-up menu:
Entering values
Each cell in a table row represents one of the attributes that can be defined for that item. Values are entered into cells either by directly typing into text boxes or by making selections from a drop-down list.
Note: Not all cells in a table will necessarily be active. Some are activated based on the other choices you make. For example, if you are creating a discrete variable, only the cells that apply to discrete variables will be active.
Text box cells In text box cells, you simply enter the value you want, just as you would in a text field in a dialog box. If you use Microsoft Excel, you will find that it is very much like entering a value in an Excel table.
22
www.redcedartech.com
To enter a value
1. Click on the cell where you want to enter the value. A box will appear around it to show it is selected, and an insertion point will appear in the box:
2. Type the value into the cell. Then either press Tab to move to the next cell or click on the next cell you want to fill.
Note: When you select a cell, that row in the table is automatically selected (notice the
from the row, click on the . ). When you select another cell in the row, the original cell will be deselected. To remove the selection box
Hint: You can fill in an entire row in a table without using your mouse by using Tab to move from cell to cell. When you get to the end of a line, Tab will move the selection box to the next line. To back up to a previous cell, press Shift + Tab.
To replace a value
1. Click on, or tab to, the cell that contains the value you want to replace. The current value will be highlighted:
www.redcedartech.com
23
2. Click your mouse on the place where you want to insert or delete characters. The highlight will disappear and the insertion point will appear in the place you clicked:
3. Edit your value as needed by inserting and/or deleting characters. Use the left and right arrow keys to move the insertion point if necessary, or tab to the cell that contains the value you want to edit. 4. Press the left or right arrow keys to remove the highlight. 5. Use the left or right arrow keys to move the insertion point to the place where you want to insert or delete characters, and edit your value.
24
www.redcedartech.com
Dropdown lists If you click on, or tab to, a cell with a dropdown list, a will appear to the right of the cell. You can use either your mouse or the keyboard to make your selection from the list.
3. Click on the value you want to select. Then click either on another cell or on the
3. Use the left and right arrow keys to highlight the value you want to select.
www.redcedartech.com
25
2. Click on the
and drag your cursor to the left or right to change the column width.
26
www.redcedartech.com
2. Drag the splitter up or down to change the height of the window. It should be noted that not all windows have moveable splitters between them. If the does not appear, the splitter is not moveable.
Saving Projects
Whenever you save a project, the files needed to run HEEDS MDO are generated. You can save your project at any stage of development, but you should always save it at the following times: 1. Before you load a new project or exit from HEEDS MDO Modeler, to ensure that your latest changes are preserved. 2. Before you run a project, to generate the most up-to-date run files. To assist with this, the Automatically save project before run option on the Run tab is enabled by default (see more information about this option on page 360).
www.redcedartech.com
27
When you save a project, the contents of the input files are saved inside of the HEEDS project file (.hds). If you have large input files, the process of saving may take some time.
Switching Projects
Once you create or open a project, it remains in the Modeler until you create or open another project, or exit from the Modeler. When you change projects, the project you are working on will be replaced by the new one. Be sure to save the current project before switching projects.
28
www.redcedartech.com
If your project has been saved, click Yes to display the Open dialog box. If you are not sure whether you have saved your project, click No and the message box will close. Save your project, and then select Open, or press Ctrl + O again. 2. Navigate to the directory containing the project file you want to open. 3. Select the project file, and click Open. The file must have an .hds extension.
If your current project has been saved, click Yes. If you are not sure whether you have saved your project, click No and the message box will close. Save your project, then select New or press Ctrl + N again. 2. When you click Yes, the Save New Project As dialog will appear. 3. Navigate to the directory where you want to store your new project. 4. Enter the file name in the File name field, and click Save to save the file. The current project will be cleared, and the defaults for a new project will appear.
www.redcedartech.com
29
2. Select one of the following: Yes Saves the project in its current state before you exit. No Closes the project without saving your unsaved changes. Cancel Cancels the Exit command. Use Cancel if you selected Exit by mistake.
Reminder: HEEDS MDO Modeler does not keep track of whether the project has unsaved changes. Generally, it is best to click Yes when you are asked whether you want to save the project.
There is no harm in saving, unless you have made manual changes to the HEEDS MDO Solver files or you do not want to save your latest changes.
30
www.redcedartech.com
Input files
HEEDS MDO Solver uses the input files from your baseline design as a template for creating the input files for the designs to be evaluated. Each time HEEDS MDO tries a new design, it writes out new input files, in which it assigns new values to the variables. The input files must contain values that represent the variables you intend to use in the HEEDS MDO study. In projects where more than one tool is used to evaluate a design or
32
www.redcedartech.com
more than one input file is used, your defined variables may not necessarily be included in a single input file.
Output files
HEEDS MDO Solver uses the output files generated from your baseline design as a template to identify the information used in determining the results of your study. In a HEEDS MDO project, these values are called responses. Your output files must have been generated by your analysis tool and must contain values for the responses you want HEEDS MDO Solver to use to compute design performance and/or post-processing results.
www.redcedartech.com
33
Because every project needs at least one analysis, a default process (Process_1) containing one default analysis (Analysis_1) is automatically created for every new project. To define an element, either click on it in the Processes tree, or click on the corresponding button in the Process Graph. The fields that allow you to define that element will be displayed in the Manager panel below the Process Graph.
Defining an analysis
Entering an analysis definition is simply a matter of naming the analysis, selecting a solver (if desired), specifying the command to execute the analysis tool, and defining the success requirement (if desired).
34
www.redcedartech.com
Selecting a solver
If you want to tag your output file through a portal, you need to select one of the supported simulation packages in the Analysis Manager (see Supported Portals on page 164). To do this, click the dropdown under Select solver to enable portal(s), and choose the desired solver. The portals available for each solver are listed next to it on the menu:
Description No portals are enabled. If your study does not require a portal, select this option. Enables the Abaqus portals. Enables the ADAMS output portal.
www.redcedartech.com
35
Portals Input/output Input/output Input/output Input/output Input/output Input only Input/output Input/output
Description Enables the ANSYS Workbench portals. Enables the Excel portals. Enables the LS-DYNA portals. Enables the MATLAB portals. Enables the Nastran portals. Enables the NX input portal. Enables the SolidWorks portals. Enables the SolidWorks Simulation
Excel Solver Options When you select Excel as your solver, an additional Macro field appears. If your Excel analysis utilizes a macro, enter the name of the macro in this field:
36
www.redcedartech.com
NX and SolidWorks Solver Options When you select NX or SolidWorks as your solver, an additional CAD Export Format option appears. Select an option from the dropdown, if desired:
In addition to updating and saving the .prt or .sldprt file, HEEDS MDO will also generate a CAD file for the format you select in the CAD Export Format field.
Note: In the Input Files Manager for the analysis, be sure to attach the solver input file that represents the baseline design.
SolidWorks and SolidWorks Simulation Solver Version For the SolidWorks and SolidWorks Simulation portals, the portal definition does not require you to specify which version of SolidWorks to use. The portals will use the version of SolidWorks that was last opened. We recommend that you close all sessions of SolidWorks running on your machine and then start a new session with the version that you want to use. The HEEDS portal will attach itself to the version that is open and use it for the analysis. SolidWorks Simulation Solver Options When you select SolidWorks Simulation as your solver, an additional Study option appears. Enter the exact name of the study, as you named it in Simulation:
www.redcedartech.com
37
To place the execution file and command line options in separate fields
This is recommended when the full path to the execution file is required, because you can browse for the folder and file. This reduces the likelihood of human error. The following command line c:\LSDYNA_970\program\ ls970_s_nsmp.exe i=MyInputFile.dyn could be placed in the fields like this:
38
www.redcedartech.com
Note: If you are working on a Windows machine and any of your path or file names contain spaces, you must place the execution file string in quotation marks:
www.redcedartech.com
39
40
www.redcedartech.com
search in a direction that is not correct. You can use the success requirement to avoid this outcome.
Note: If you do not define a success requirement, the option will be set to None by default. We recommend that all general users enable If text in an output file matches what is specified for all optimization studies.
www.redcedartech.com
41
2. Click on the dropdown to select the method HEEDS MDO should use to determine whether an evaluation was successful:
Option Do not check for success Description No success check is enabled. Most solvers create a log file that contains information on success or failure of the analysis. Examples include .sta files for Abaqus, d3hsp or messag files for LS-DYNA, and .out files for Nastran. A text string in this file can be used to define the success requirement. We recommend this option for all users. Some applications return an integer value to indicate the completion of an evaluation. Additionally, some users have written custom scripts that accomplish the same goal. If you are advanced user and/or have a custom script written for a return value, you may want to use this option to define your success requirement. HEEDS MDO will check to see whether the file you specified exists. HEEDS MDO will check to see whether the file you specified is absent.
Using a return value from a script or application If a specific file exists If a specific file does not exist
42
www.redcedartech.com
2. Click Browse:
www.redcedartech.com
43
3. In the Open dialog, navigate to output file containing the text you would like HEEDS MDO to match. 4. Click Open to select the file. The name of the file will be displayed in the File Name field:
5. In the Text field, enter the text string that HEEDS MDO should search for. 6. Click OK to exit the dialog.
44
www.redcedartech.com
2. In the Successful Return Value field, enter the integer value HEEDS MDO should look for. 3. Click OK to exit the dialog.
2. Click the Browse button, and select the file that HEEDS MDO should look for to determine that an evaluation has been successful:
www.redcedartech.com
45
3. Click OK.
2. Click the Browse button, and select the file that should be absent for HEEDS MDO to consider the evaluation successful:
46
www.redcedartech.com
3. Click OK.
www.redcedartech.com
47
3. Right-click in the Input Files Manager window. 4. Select Add Input File from the pop-up menu:
5. Navigate to the directory where your input file is stored. 6. Double-click on the file name (or select the file name, and click Open). HEEDS MDO will copy that file into the project directory 7. Once the file is added to the directory, it will be placed in your Input Files Manager list.
48
www.redcedartech.com
If you have one analysis in your project, HEEDS MDO will use the input file in your project directory for all evaluations. In this case, the Location To Copy From option is set to Project Directory.
If you have more than one analysis in your project, however, you might want HEEDS MDO to run the first analysis, and then copy the input file from that analysis to the second analysis before it runs (rather than using the input file from the project directory). In this case, you would set the Location To Copy From option to the name of the first analysis:
www.redcedartech.com
49
If you select Project Directory, HEEDS MDO will use the input file located in the project directory for the analysis. If you select the name of another analysis, HEEDS MDO will wait until that analysis has completed, and then use its input file to execute the current analysis.
5. Add a Comment to give further information about the file, if you wish. This is a good practice if your analysis contains more than one input file.
2. Right-click in the Output Files Manager window and choose Add Output File from the pop-up menu. The Open dialog box will appear. 3. Navigate to the directory where your output file is stored and double-click on the file name to select it. 4. If the file you are adding is not already in your project directory, you will be asked if you want to copy it to the project directory. Select one of the following:
Button Yes No Description If you want the file placed in your project directory. Copying the file does not affect the location or content of the original file. If you do not want to place the file in your project directory.
5. When the file is added, it will appear in the Output Files list. 6. Add a Comment to give further information about the file if you wish. This is a good practice if your analysis contains more than one output file.
a. If the input file is not already located in your project directory, it will be automatically copied to your project directory.
Note: Large input files may take some time to copy.
b. If there is an input file with the same name already in the project directory, a dialog like the following one will appear:
To overwrite the existing file with the new one, select Yes. To exit the dialog without overwriting the existing file, select Cancel.
5. The selected input file will be added to the Input Files Manager.
52
www.redcedartech.com
4. Navigate to the directory where the output file is stored, and double-click on the file name to select it. a. If the selected file is not already located in the project directory, the following dialog will appear:
1. To copy the selected file to the project directory, click Yes. 2. If you wish to use this output file without copying it to the project directory, click No. 3. To exit the dialog without taking any action, click Cancel. 5. The selected output file will be listed in the Output Files Manager.
Important: If your output file has been tagged through a portal, a command prompt window will appear and will remain on the screen while the file is parsed. Do not close the window or you will terminate the process.
www.redcedartech.com
53
The HEEDS MDO Modeler will not allow you to remove any files that you have tagged, unless you untag them first. This is to prevent you from accidentally removing a file you have spent a lot of time tagging.
3. Right-click anywhere in the Input Files Manager window 4. Select Remove Input File from the menu.
3. Right-click anywhere in the Output Files Manager window. 4. Select Remove Output File from the pop-up menu.
54
www.redcedartech.com
Important: Removing a file from your project does not delete the file. If you need it again, you can always add it back in to your project.
Adding analyses
You can add as many analyses as you want to a process. The process button will expand to accommodate them:
To add an analysis
1. From the Process Installation options, Select Add Analysis:
www.redcedartech.com
55
2. Click on the Process button. The analysis will be added to the process:
After you create your additional analyses, you will need to define them, as described in the Defining an analysis section on page 34.
56
www.redcedartech.com
Removing analyses
You can remove analyses from a process as long as they are not linked to any input or output files. If you have assigned files to an analysis, you must remove the files before removing the analysis.
Removing an analysis
1. Remove any associated input or output files from the analysis (see Removing input and output files from an analysis on page 53). 2. Right-click on the analysis to display the pop-up menu:
www.redcedartech.com
57
first process you define is automatically assigned to your agent. You can modify the agent assignment options on the Assembly tab.
Adding a process
Creating a new process is simply a matter of adding it to the Process Graph and giving it a name. You do not have to name your processes, but when you work with more than one, giving each process a distinct name will make it easier to keep track of them.
To add a process
1. From the Process Installation options, select Add Process:
2. Click anywhere in the Process Graph, and the process will be added:
3. If you wish, enter a name for your process in the Name field in the Process Manager. This must be an alphanumeric string with no spaces:
58 www.redcedartech.com
4. You may also want to add a Comment to remind you what the process is used for and to make note of any additional information for your own reference.
www.redcedartech.com
59
To copy an analysis
1. In the Process Graph, right-click on the analysis you want to copy. 2. Select Copy from the menu:
3. Right-click on the process to which you want to add the analysis. 4. Select Paste Identical to add the copy of the analysis.
Reminder: Dont forget that the copy is a linked copy. Any changes you make to one copy will be
made in the other.
60
www.redcedartech.com
Copying processes
Just as you can copy an analysis, you can also copy an entire process. This may save you time if the two processes perform most of the same analyses. Once youve copied a process, you can add or delete analyses as needed. When you copy a process, all analyses copied with the process are linked copies, although the process itself is not. Any changes to an analysis will be reflected in the original and any other linked copies. However, deleting copied analyses from one process does not affect the linked copies in other processes, and adding analyses to a copied process does not affect the original process.
To copy a process
1. Right-click on the process you want to copy. 2. Select Copy from the pop-up menu. 3. Right-click anywhere in the Process Graph window. 4. Select Paste Identical from the menu. The new process will be given a default name (Process_n), because two processes cannot have the same name. 5. Rename the process as desired. 6. Edit the process, as needed, by adding and/or removing analyses.
Removing processes
If you no longer want to use a process, you can remove it to avoid confusion. But you do not have to remove it for HEEDS MDO Solver to function correctly. If a process is not assigned to an agent, its analyses will simply not be performed. If you think you may want to use the process again, you may want to leave it in the project so you dont have to redefine it.
To remove a process
1. Right-click on the process you want to remove. 2. Select Delete from the pop-up menu.
www.redcedartech.com
61
62
www.redcedartech.com
2. The Open dialog will appear. 3. Navigate to the directory where your data file is stored. 4. Either double-click on the file or highlight the file, and click Open. The dialog will close, and your data will be imported.
www.redcedartech.com
63
64
www.redcedartech.com
Project variables represent the quantities or values in the input file that are to be varied during a design evaluation. Some examples might include: the thickness of a plate the radius of a hole the stiffness of a spring the voltage of a power supply the orientation of a ply in a composite structure the number of stages in a turbine engine the choice of material To be used as a variable, a quantity that represents the variable must be present in at least one of the input files used in the project.
Continuous variables
The values of continuous variables are chosen from a range of real numbers. Quantities like lengths, thicknesses, coordinates, etc., are typically specified as continuous variables. When you define a continuous variable, you specify the minimum value and the maximum value of the range. For example, a minimum value of 2.0 and a maximum of 200.0 would specify real numbers between (and including) 2 and 200. During a HEEDS MDO run, the value is varied within the specified range.
on the level of refinement you specify when you define the study. This level of refinement is the resolution. If you specified a range of 0 to 100 and set the resolution to 11, only values 0, 10, 20, 20, 100 would be used in an even distribution. If you specified a resolution of 101, any integer value from 0 to 100 could be used. More will be said about this when we discuss defining agent variables during project assembly (see Defining Agent Variables on page 235). No resolution is specified for continuous variables in a DOE project. The values used are determined by the DOE method and are selected based on the maximum and minimum values of the range, unless you override them. Continuous variables are not varied in robustness and reliability projects. If they are present in the project, their baseline values are used. Discretization of continuous variables reduces the size of the design space. This generally has a very beneficial effect on search efficiency whenever non-gradient-based search methods are used. There are also other advantages to variable discretization. First, from a practical point of view, there is no reason to specify a value that cannot be achieved in practice. Second, discretization allows you to use more than one agent to search the design space simultaneously at different resolutions. An agent searching at a low resolution can quickly identify regions of the design space with high potential (and filter out those regions with low potential), while a second agent, searching at a higher resolution and using information from the low-resolution search, can concentrate on the regions with high potential for a more efficient search. In the rare cases where continuous variations are desirable, the resolution can be set as high as necessary to mimic the behavior of a true continuous variable within the precision limits of the computer.
66
www.redcedartech.com
your variables (see Defining Project Variables on page 64). It is applied to your variables at the agent level. It is important to note that applying stochasticity may significantly increase the number of evaluations performed, depending on the percentage of variables that are stochastic. It can often be beneficial to use two agents when you use stochastic variables, where one agent, working with non-stochastic variables, feeds a second agent, which then applies stochastic distributions to designs that have already been determined good. Your first agent might, for example, determine that 2.25 is the optimal thickness and pass that design to the second agent. The second agent would then test the robustness of the design against the specified variations and modify the design as needed to increase its robustness. For more information about working with multiple agents, see Using Multiple Agents on page 434.
Discrete variables
Discrete variables can only take on values from a specified set of choices. This set may contain specific numeric values. It may also contain non-numeric choices (e.g., steel, aluminum, titanium). Discrete variables are used whenever only specific values are valid. When you define a discrete variable, you create a discrete set, which contains the allowable values. If there are only three possible thicknesses of a given material, for example, and the values are not evenly distributed, you would specify it as a discrete variable and reference the three thicknesses through a discrete set. There is no point in allowing HEEDS MDO to select any number within a given range when only three would be considered valid input.
Dependent variables
The value of a dependent variable is determined from other values supplied during the evaluation. A dependent variable can simply assume the value of another variable or response, or you may define a formula to calculate the value. When a value in a given variable must be based on the values in one or more other variables or responses, you write a formula to calculate it. For example, the area of the triangle must be calculated using its base and height. HEEDS MDO Solver can assign the base and height, based on your constraints, but it will not automatically calculate the area. So, to prevent HEEDS MDO Solver from assigning a non-
www.redcedartech.com
67
logical area value, you would make the area variable dependent, and calculate it from the base and height variables. Dependent variables can be used in all types of projects. Before you define a dependent variable, you must define the variables and/or responses it is dependent upon. During a HEEDS MDO run, these variables and responses must be assigned values before the value of the dependent variable can be determined. Since the values for all variables in the design are written out before the analyses are run, your formulas can reference any variable that is used by the agent, regardless of which analysis it is in. It does not matter if the analysis has been run. If you have more than one analysis in a process, you can use dependent variables to pass values from one analysis to another. If, for example, you want the value in a response from one analysis to be used as the value for a variable in a subsequent analysis, you can assign that response to a dependent variable. You can also use the response in a calculation. Unlike variables, which can be used regardless of which analysis they are associated with, responses are only filled after an analysis is run. So, the analysis that contains the response must be run before the analysis where you plan to use the value. Therefore, you must make sure that the analyses in that process run in the correct order (see Defining Processes and Analyses). If you are running a project with HEEDS PARALLEL enabled, HEEDS MDO will automatically reorder the analysis execution by adding dependencies that this condition is met. A warning is written out to the message file in this case.
Parameter variables
A parameter variable is one whose nominal value does not change. You can also use a parameter variable to vary a known value stochastically to test a design for robustness.
68
www.redcedartech.com
Absolute numeric parameter variables can be used in all project types. Stochastic numeric parameter variables can only be used in parameter optimization and robustness and reliability projects.
To add a variable
1. Right-click anywhere in the Project Variables window. A pop-up menu will appear:
www.redcedartech.com
69
2. Select Add Variable. A line will be added to the table in the Project Variables window:
3. The variable will be given the default name of variable_n. Click on the Name cell and change it to the name you want to give the variable. Make sure the name does not start with a number and does not contain spaces.
70
www.redcedartech.com
If you do not create custom Print Formats for your variables, HEEDS MDO will use the Default (Automatic) setting for all of the project variables. The Automatic setting simply selects the most appropriate Print Format, and the settings for that format, so that the variable value is written to the input file with the highest possible precision. For any of the Print Formats, if your choice will result in a significant loss of data in writing out a value with the specified format, HEEDS MDO will write a warning to the message file. For example, if you choose the integer format with a fixed length of 4, then the value 12345 will be written out as 1234, since the max length was restricted to be smaller than the precision of the number. HEEDS MDO will write a warning in this case.
2. Right-click in the Print Format window, and select the desired format Type:
www.redcedartech.com
71
Type
Description This format should be used when the variable value can be written out as a real number or text. This option will determine if the value being written is a number or text based. In case it is a number, it will identify the best format (floating or scientific) along with the format options to use such that the number is written out with the highest possible precision. This option allows you to control the total field length. This format should be used when the variable value needs to be written out as an integer, even if the value being written has a fractional part. If the value being written is not an integer, the value will be rounded before writing to the file. This option allows you to control the total field length. This format should be used for text parameters or discrete variables with non-numeric choices in the discrete set. This option allows you to control the total field length. This format should be used when the variable values needs to be written out in the decimal format. (e.g., 12.00238). This option allows you to control the total field length as well as the number of digits after the decimal point. This format should be used when the variable values needs to be written out in the scientific format (e.g. 1.00E+00). This option allows you to control the total field length, the number of digits after the decimal, the number of digits for the exponent and if a sign is required for the exponent.
Automatic (Default)
Integer
String
Floating Point
Scientific
72
www.redcedartech.com
3. If you wish to restrict the length of the variable value, check the Use Fixed Length box:
4. Then, enter the desired length in the Total Field Length field:
5. To assign the new Print Format to your variables: a. Return to the Project Variables list, and select a variable. b. Click on the dropdown in the Print Format column for that variable and select the format you just created:
www.redcedartech.com
73
The remaining fields in the Project Variables table are used to define the variables attributes. The way you set them depends on the variable type: continuous, discrete, dependent or parameter (text or numeric).
74
www.redcedartech.com
It is best to limit the range of values chosen during an analysis to those that would be logical or valid for your design. The narrower the search, the more efficient HEEDS MDO will be in zeroing in on the best value. There is no point in searching for values between 0 and 100 if you know, in advance, that valid values cannot be less than 0.6 or greater than 2.0.
Entering a Baseline
When you define a continuous variable, you also need to enter a baseline value. How HEEDS MDO uses this baseline value depends on the type of study: In parameter optimization studies, the baseline value is used for the very first design evaluated. In DOE studies, the baseline value will be used for any continuous variables that are not used as factors (more information on DOE factors is given in Chapters 15 and 16). For robustness and reliability studies, the baseline value will be used for all continuous variables. In evaluation studies, the baseline values are for reference only. For most studies, we recommend that you use the value from your baseline design.
www.redcedartech.com
75
4. Enter the Baseline value. Use the value from the baseline design unless you have some good reason for using a different one. 5. Enter the maximum value of the range in the Max field.
Note: Instead of allowing HEEDS MDO Solver to select any real number from your specified range, continuous variables in parameter optimization projects are discretized by specifying a level of refinement (the resolution). The level of refinement is defined at agent level.
76
www.redcedartech.com
while searching for good designs. The statistical data and the number of times a design has been evaluated are written out to the HEEDS MDO project results files. By using stochastic distributions, you can ensure a more robust design that is relatively insensitive to the slight variations that may result from the manufacturing process. In running the above example, HEEDS MDO Solver might pick 2.25 as an initial (mean) value. However, based on our distribution, the real world deviation could be between 2.23 and 2.27. If HEEDS MDO found that a value of 2.25 resulted in a good design, but 2.24 would result in a poor design, the design with 2.25 would not be rated highly, even if it was the best design found otherwise.
Important: The use of stochastic variations may significantly increase the number of evaluations HEEDS MDO performs, depending on the problem and the number of stochastic variables involved.
Stochastic distributions are defined on the Variables tab and associated with a variable there, as well. However, you choose whether or not to actually apply the distribution when you define the agent-specific attributes for the variable on the Assembly tab.
www.redcedartech.com
77
4. Select the type of distribution you want to add from the menu (Uniform or Gaussian). A distribution will be added to the list with the default name of Dist_n, where n is the next number in sequence:
5. To change the name of the stochastic distribution, click on the Distribution cell and enter the name you want to give it. Make sure the name does not contain spaces. 6. Select the distribution, and a field will appear on the right:
7. Next, enter the value that determines the tolerance or deviation that will be applied.
78
www.redcedartech.com
For uniform distributions, enter the Maximum Variation either as a Percentage of Baseline or an Absolute Value. For Gaussian distributions, enter the Standard Deviation as either a Percentage of Baseline or an Absolute Value.
www.redcedartech.com
79
Note: If the values are evenly spaced (e.g., 1, 2, 3), they could also be specified with a continuous variable by setting the appropriate resolution.
3. Select Add Discrete Set from the menu. A discrete set will be added with the default name of Set_1. 4. Highlight the name, and change it to the desired name for the set:
80
www.redcedartech.com
5. Next, you will need to add items to the set. Click on the set to select it. 6. Follow these steps for each item you want to add: Right-click in the Items window to display the pop-up menu. Select Add Item from the menu to add the item. It will be given the default value of Item_n, where n is the next number in sequence:
Select the default value and change it to value you want to assign to the item.
For non-numeric values, be sure to use the values your analysis tool recognizes. 7. When you finish, your Items list should include all of the values in the discrete set:
www.redcedartech.com
81
8. Select the Ordered value from the drop-down list. If the item values are listed in order, select Yes.
Note: We recommend that you set up your items in the desired order, because this results in a much more efficient search
If the item values are not listed in a particular order, select No. 9. Both numeric and non-numeric sets can be ordered:
Ordered numeric set
82
www.redcedartech.com
Note: You can add comments to a discrete set and to each of the items in it. The Comment field is located to the right of the other columns in the Set and Items window; you can scroll to it. Hint: If you want to add comments as you add items to a set, you can make the Items panel larger by dragging the vertical splitter to the left. You can also adjust the column width in the table itself.
www.redcedartech.com
83
3. Click in the Discrete Set column for the variable, and select the set you want to use for that variable.
The first value in the set will automatically be placed in the Baseline field. 4. You can select another Baseline value from the set (e.g., the one in your baseline design) if you wish: Click on the Baseline field. Click the to display the list of values in the discrete set, and select the one you want to use for the Baseline value:
84
www.redcedartech.com
Note: The baseline value of a discrete variable is not important for parameter optimization and DOE studies. However, the baseline value is used as the constant value in robustness and reliability studies (see About Robustness and Reliability Projects on page 330).
www.redcedartech.com
85
assigning it the value of another variable or response, or by defining a formula to calculate the value. Both methods use the Formula Definition editor in HEEDS MDO.
The Formula Definition editor will appear in the lower right corner of the screen. 2. Enter the formula for the variable in the editor. Instructions are given below. The formula you enter will appear in the Formula column.
86
www.redcedartech.com
Note: You can also apply stochastic distributions to dependent variables. They work the same way as stochastic continuous variables with one exception: if you attach a distribution to a dependent variable, it will always be applied. It cannot be enabled or disabled for a given agent.
Entering a formula
You can populate a dependent variable with a value from another variable or a response, or you can calculate the value. Both are entered in the Formula Definition editor window.
Important: The Formula Definition editor is case sensitive. Your variables or responses must match, and all functions must be entered in lower case, as they appear on the calculator keys.
2. In the Formula Definition window, type the name of the variable/response whose value you want to assign to the dependent variable. 3. Click the Accept button, or press the Enter key on your keyboard.
www.redcedartech.com
87
4. The variable or response you entered will appear in the Formula column in the Project Variables list for the dependent variable:
Note: If an error message appears after you enter the variable/response name in the editor, make sure the variable or response has been defined for the project. You need to define it before you can enter it in the editor window. Also, make sure you have typed the name exactly as it appears in the variables/responses list (the editor is case sensitive).
2. To enter numbers, operators, symbols, or functions, do either of the following: Use your mouse to click on the editor buttons, or
88
www.redcedartech.com
Use the keyboard to type the formula into the editor window. Make sure that the formulas are typed in lower case just as they appear on the calculator buttons.
Important: When you enter decimal numbers smaller than 1, you must enter a 0 to the left of the decimal point0.52, 0.725, etc. The Formula Definition editor does not accept decimals without a leading 0.
3. To place a variable or response in the formula, type its name into the appropriate position in the window. 4. To delete characters, use either the Del or Backspace key on the keyboard. 5. To clear your formula and start over, click the Clear button in the editor. 6. When you finish, click Accept or press Enter to save the formula. The formula will appear in the Formula column for the dependent variable.
Note: The max, min, sum, and avg keys are used for vector-valued variables. All functions can be applied to scalars or vector-valued variables (e.g., sin of a vector-valued variable performs the sin on every single element in the variable).
To edit a formula
1. Select the variable you want to edit. The formula editor will appear and the current formula will be displayed in the window. 2. Make changes to the formula as needed. 3. When you are finished, click Accept or press Enter.
www.redcedartech.com
89
Warning: Clicking Cancel before you click Accept when you first enter a formula will clear out everything you entered, just as if you clicked Clear.
90
www.redcedartech.com
2. In the Baseline field, enter the absolute value you want to assign to the variable:
www.redcedartech.com
91
3. In the Baseline field, enter the value you want to assign to the variable. This value will be used as the mean for your stochastic distribution. 4. Click on the Distribution field, and select the stochastic distribution you created for this variable (for information about creating stochastic distributions, see page 77):
92
www.redcedartech.com
2. In the Baseline field, enter the text string you want to assign to the variable:
www.redcedartech.com
93
The internal variables will appear at the top of your list of Project Variables:
Description Allows you to access the design number for the design being executed. Allows you to access the complete path to the design folder for the design being executed. Allows you to access the agent ID of the agent running the optimization. Allows you to access the name used to identify jobs running in the queue. This is also the name HEEDS MDO uses to check for completion if you are using HEEDS PARALLEL and have chosen either Execute job status check command or Get job status info from file as the completion check option (for information about this option, see the HEEDS PARALLEL and Q Users Guide).
94
www.redcedartech.com
Note: Internal variable names are reserved by HEEDS MDO and cannot be used for other variables in a project.
3. Tag HEEDS MDO internal variables in exactly the same way that you would tag any other project variable.
To remove a variable
1. Click on the box in front of the variable you want to remove:
2. Right-click anywhere in the Project Variables window. A pop-up menu will appear:
www.redcedartech.com
95
3. Select Delete Variable. The variable will be removed from the table.
Note: Project variables that have been tagged in an input file cannot be deleted unless they are untagged first.
96
www.redcedartech.com
www.redcedartech.com
97
5. Variables will be named using a prefix followed by a variable number (i.e., Prefix_1). Enter a Prefix to be used for the variable names. The default name is variable_.
6. Next, enter the Starting number for the variables, and the desired Increment between numbers. 7. In the Attributes group box, define the variables as you typically would for the Type you have chosen:
98
www.redcedartech.com
8. If you wish to add the variables and keep the dialog open, click Apply. 9. If you wish to add the variables and close the dialog, click OK. 10. To exit the dialog without adding any variables, click Cancel.
www.redcedartech.com
99
4. In the Variable Attributes group box, select the variable Type. If you do not wish to change the type, select **No Change**:
100
www.redcedartech.com
6. If you wish to apply the edits to the selected variables, and keep the dialog open, click Apply. 7. If you wish to apply the edits to the variables, and close the dialog, click OK. 8. To exit the dialog without making any edits, click Cancel.
www.redcedartech.com
101
3. Place a checkmark next to each variable you wish to delete. If you wish to delete all of the variables, select the checkbox next to Name.
4. Click OK.
Note: HEEDS MDO will not ask you to confirm the deletion of these variables. They will be deleted immediately.
102
www.redcedartech.com
For parameter optimization projects, you must create responses for your objective(s) and your constraints, and also for any other values you want to use in formulas. For DOE and
103
www.redcedartech.com
robustness and reliability projects, you must define a response for each output value to be used in post-processing. Values for responses may either be used directly from the output file that is created for the design, or they may be calculated based on other variables and/or responses. When you add a response, it is given the default name of response_n, where n is the next number in sequence. You may change the name to one of your choice. Responses have no additional attributes other than the source of the value and a definition (formula, curve fit, filter, FLD) if applicable. Because responses can differ from agent to agent, the way they are used in parameter optimization projects (as objectives, constraints, or prerequisites) is defined when you assemble your project, not when you initially define your responses. Responses for robustness and reliability, and most DOE projects, have no additional agent attributes. They only need to be defined for the project and tagged. For DOE projects that use Taguchi Robust Parameter Design, however, you will need to define the goal of each response in a particular agent.
Important: Any response in an analysis may be used to calculate the value of another response in the same analysis. If you use a response from another analysis, make sure that the analysis containing that response runs first.
104
www.redcedartech.com
Extracting a response from a file To add a response extracted directly from a file
1. Right-click anywhere in the Project Responses window. A pop-up menu will appear:
2. Select Add Response. A line will be added to the table in the Project Responses window:
3. The response will have the default name of response_n. Click on the Name cell and change it to the name you want to give the response. Make sure the response name does not start with a number and does not contain spaces. 4. Select File as the Source (this is the default). 5. Add a comment if you wish, so you will know what the response is used for.
www.redcedartech.com
105
3. The response will have the default name of response_n. Click on the Name cell and change it to the name you want to give the response. Make sure the response name does not start with a number and does not contain spaces. 4. In the Source field, select Formula.
Note: Instructions for entering formulas are found on page 87.
5. Enter the formula to calculate the response in the Formula Definition editor window. 6. Click Accept. The formula will be placed in the Formula field for the response:
106
www.redcedartech.com
7. Add a Comment if you wish, so you will know what the response is used for and/or how it is calculated.
www.redcedartech.com
107
2. Select Add Response. A line will be added to the table in the Project Responses window:
3. The response will have the default name of response_n. Click on the Name cell and change the name, if you wish. Make sure the response name does not start with a number and does not contain spaces. 4. In the Source field, select Curve Fit. A Curve Fit Definition window will appear to the right of the Project Responses window. 5. RMS will be automatically assigned as the default Type for the Curve Fit.
Note: The only curve fit currently available within HEEDS MDO is the Root Mean Square Method (RMS). This method, also known in mathematics as the quadratic mean, is the square root of the mean of the squares of values. Mathematically this can be represented by:
1 N 2 RMS = ( y y ') dx N i =1
where N is the number of increments, y is the actual curve, y is the target curve, and dx (x) is the increment size for i. The smaller the value of RMS, the closer the two curves are to matching.
108
www.redcedartech.com
a. In the Variable and Response Attributes window, select the Target Curves tab:
b. Right-click in the Curve window, and select either Add Curve Manually or Add Curve from File:
To add a curve manually, right-click in the x-y window, and choose Add Item from the popup menu. When you add an item, fields appear for x and y values. Enter the appropriate values. Repeat this process until you have defined the curve completely.
www.redcedartech.com
109
To add a curve from a file, browse for and select the file that contains your predefined curve data. This file should contain only the x and y values for the curve, with one item per line. Commas, spaces, and tabs may be used as delimiters between the x and y values.
7. Once you have defined the target curve, you need to assign it to the RMS response: a. Go back to the Curve Fit Definition window, and click on the Target Curve dropdown:
b. From the dropdown, select the curve you just created. 8. Finally, you need to define X and Y values for the curve fit. Project responses are used as the X and Y Values for completion of the Curve Fit definition. The X and Y Values are vectors that make up the curve to be compared with the Target Curve. The number of items in X and Y should be the same; otherwise, HEEDS MDO will give an error. You need to create two responses to represent these vectors. The responses are then obtained through tagging, as normal, using either Scripting or a Portal. Although it is
110
www.redcedartech.com
desirable for these vectors to contain the same number of items as the Target Curve vector, this is not required. Once two responses have been created that will represent the vectors of the X and Values, assign the responses as their proper values in the Curve Fit Definition window:
Once the X and Y Values are assigned, the Curve Fit Definition is complete for the response:
www.redcedartech.com
111
b. Select Add Response. A line will be added to the table in the Project Responses window:
c.
The response will have the default name of response_n. Click on the Name cell and change it to the name you want to give the response. Make sure the response name does not start with a number and does not contain spaces.
d. Define the response as desired. 2. In the Source field for the response you want to filter, select Filter. A Filter Definition window will appear to the right of the Project Responses window:
112
www.redcedartech.com
3. In the Filter Definition Window, click on the Response To Be Filtered dropdown, and select the name of the response that you want to filter. 4. Click on the Filter Type dropdown, and select the filter that you wish to use: SAE 6487 (Butterworth 4-pole phaseless CFC filter) or Point Average. a. If you chose SAE 6487: 1. Select a Cutoff Frequency (hertz) from the choices available in the dropdown (60 or 180). 2. In the Time Interval Between Data Points (sec) field, enter the desired number of points. b. If you chose Point Average: 1. Click in the Number of Points to Average field, and type the desired number of points. The default value in this field is 7. 5. When you have completed the Filter Definition, the details of that definition will appear in the Formula column next to the filtered response:
www.redcedartech.com
113
114
www.redcedartech.com
b. Select Add Response. A line will be added to the table in the Project Responses window:
c.
The response will have the default name of response_n. Click on the Name cell and change it to the name you want to give the response. Make sure the response name does not start with a number and does not contain spaces.
d. In the Source field for the response you want to filter, select FLD. 2. Next, create a Major Strain Response: a. Right-click in the Project Responses window. A pop-up menu will appear. b. Select Add Response. A line will be added to the table in the Project Responses window:
c.
The response will have the default name of response_n. Click on the Name cell and change it to the name you want to give the response. Make sure the response name does not start with a number and does not contain spaces.
d. Define the response as desired. 3. Follow the same steps to create a Minor Strain Response with a Source of File. 4. Select the FLD response in the Project Responses window. A FLD Definition window will appear to the right of the Project Responses window:
www.redcedartech.com
115
5. Click on the Minor Strain Response dropdown, and select the minor strain response from the list. 6. Click on the Major Strain Response dropdown, and select the major strain response from the list. 7. For the FLC Type, select the Curve Based or Math Based radio button: a. If you chose Curve Based: 1. Create a curve in the Target Curves tab. For information about creating curves, see page 107. 2. Click on the Tensile Curve dropdown, and select the appropriate curve from the list:
116
www.redcedartech.com
3. Click in the Offset field, and enter the desired value. The offset provides a factor of safety for tearing. Without an offset, HEEDS MDO will look for designs that go right up to the FLC limit. b. If you chose Math Based:
1. Select the Thickness data. There are two ways to do this: Click on the Thickness dropdown, and select the variable containing the thickness data, OR Type the desired value into the Thickness field.
Note: If thickness is being designed, select the variable containing the thickness value here. Otherwise, if the thickness is not changing, define it as a numeric parameter variable.
www.redcedartech.com
117
Click on the Hardening Component dropdown, and select the variable containing the related data, OR
3. Click in the Offset field, and enter the desired value. The offset provides a factor of safety for tearing. Without an offset, HEEDS MDO will look for designs that go right up to the FLC limit. 8. For the Compression Line Type, select the appropriate radio button:
Description Select this option if you do not wish to apply a compression line. Select this option if you want to apply a compression line at a particular angle. In the Angle (deg) field, enter the desired angle. Select this option if you want to apply a compression curve whose coordinates youve specified. Click on the Compression Curve dropdown, and select the appropriate curve.
Curve Based
118
www.redcedartech.com
1. If you have already run a HEEDS MDO study to obtain your response surface model (MDL file), and you wish to modify the study to use an RS Model response, you first need to click on the Tagging tab, and untag the response that will now be calculated using the RSM file (it will no longer obtain its value from the output file). 2. Click on the Variables tab. 3. In the Source field for the response you want to calculate using an RSM file, select RS Model. The RS Model Definition window will appear to the right:
www.redcedartech.com
119
4. Click the Import button. 5. Navigate to, and select, the MDL file from a previous HEEDS MDO study. Click Open. 6. The RS Model Variable Mapping will be displayed. a. RS Model Variable The variables from the MDL file will be show in this first column. b. Range Used For Fit The middle column (read only) shows the range that was used to fit that surface.
Note: HEEDS MDO does not prevent you from using variables that go outside of the range shown, but depending on the type of response surface that you use, it may be not be accurate to do so.
c.
Project Variable HEEDS MDO will automatically populate this column. In most cases, your variables from the previous study and the variables in this study are going to be the same. If you need to change a variable, click the dropdown next to it, and select any variable defined in the current project.
120
www.redcedartech.com
7. To look at the MDL file that you imported, click the View button. This will show you the contents of the file as well as the date/time and location of import.
To remove a response
1. Click on the box in front of the response you want to remove. A show that it is selected: will appear to
2. Right-click anywhere in the Project Responses window. A pop-up menu will appear. 3. Select Delete Response. The response will be removed from the table.
Note: As with variables, tagged responses cannot be deleted unless they are untagged first.
www.redcedartech.com
121
Finally, if you wish to delete a large number of responses, the Batch Delete Responses option allows you to select the specific responses from a list and delete them all at once.
122
www.redcedartech.com
5. Responses will be named using a prefix followed by a response number (i.e., Prefix_1). Enter a Prefix to be used for the response names. The default name is response_.
www.redcedartech.com
123
Note: Unlike for variables, the batch add responses feature does not allow you to create the data for the responses, only the response name and type.
6. Next, enter the Starting number for the responses, and the desired Increment between numbers:
7. If you wish to add the responses and keep the dialog open, click Apply. 8. If you wish to add the responses and close the dialog, click OK. 9. To exit the dialog without adding any responses, click Cancel.
124
www.redcedartech.com
The Batch Edit Responses dialog will appear 3. Place a checkmark next to the responses you want to edit:
4. In the Response Attributes group box, select the response Source. If you do not wish to change the type, select **No Change**:
www.redcedartech.com
125
5. Enter a Comment for the entire group of responses, if desired. 6. If you wish to apply the edits to the selected responses, and keep the dialog open, click Apply. 7. If you wish to apply the edits to the responses, and close the dialog, click OK. 8. To exit the dialog without making any edits, click Cancel.
126
www.redcedartech.com
3. Place a checkmark next to each response you wish to delete. If you wish to delete all of the responses, select the checkbox next to Name.
4. Click OK.
Note: HEEDS MDO will not ask you to confirm the deletion of these responses. They will be deleted immediately.
www.redcedartech.com
127
128
www.redcedartech.com
7. Overview of Tagging
Once you have identified your input and output files, and defined your project variables and responses, you need to tag the values in the files that represent those variables and responses. Tagging an input file is merely a matter of linking the variables you have defined with the corresponding values you want to replace in the input file. For each design it evaluates, HEEDS MDO Solver writes out new input files, in which it assigns new values to the variables you have tagged. After an evaluation is complete, it uses the responses you have tagged in the output files to calculate additional responses or variables, to evaluate the performance of that design, or to collect information for post-processing. The values you tag in the output file represent the locations of the responses you have defined to evaluate the quality of the design, as well as any that will be used as prerequisites for determining other values. Variables and responses are tagged on the Tagging tab. There are three types of tagging: Marking simply tags the values (based on row and column numbers) that represent the variables or responses. Scripting uses a script to determine the location of the values and can only be used for responses. Scripting allows you to tag a vector of values, responses in a fixed file format, or locations relative to a constant string. Tagging with portals allows users of certain supported software packages to tag variables and responses without knowing exactly where the values are located in the input or output files.
www.redcedartech.com
129
Although only the first column of the Project Variables and Project Responses windows is displayed, these are actually the same windows you used to define your variables and responses on the Variables tab. If you find that you forgot to add a variable or response, you can create it in the appropriate window here, without having to return to the Variables tab.
Note: You can use the vertical splitter at the right of these windows to enlarge their panes temporarily.
When you first display the Tagging tab, you will see a Summary window. The information displayed in this window summarizes the tagging details for a selected variable or response. If you do not have any variables or responses selected, the summary information will instruct you to select one to view the tagging information. If a variable or response has not yet been tagged, this information will be displayed in the Summary. If a variable or response has been tagged, you will see a list of files the variable or response has been tagged in:
130
www.redcedartech.com
Overview of Tagging
If you deselect the variable or response, you will be returned to the initial summary screen.
www.redcedartech.com
131
location from one output file to another. Marking is discussed in detail in Marking on page 141. If your response does not meet the conditions required for marking, you can use scripting (discussed in Scripting on page 146). Or, if you are using one of the supported simulation packages, you can tag the file through a portal (discussed in Tagging with Portals: Overview on page 164). Only responses that are retrieved directly from a File (those with a source of File) are tagged. Responses that are calculated through a Formula, Curve Fit, Filter or FLD (forming limit diagram) are not tagged, because these values are calculated based on other extracted results and are not present in the file. Note that you can only tag a response once in a process.
Note: If you fill a response through a formula, curve fit, filter or FLD, the definition will be displayed
in the summary panel when the response is selected.
When you click this button, the value in the tagged cell will appear. You do not need to have a file open to use it. Extract Value is especially valuable for checking response formulas.
132
www.redcedartech.com
Overview of Tagging
When you click on a response that is filled by a formula, the results of the calculation will appear.
Note: Extract Value is available for responses only. You cannot use it to check variables, even those that are filled with a formula.
Untagging
All tagged variables and responses will be used in your analyses. Whenever you no longer want a project variable or response to be considered in a particular process, you must untag it. Untagging a variable or response does not remove it from your project, only from use in the file where it was untagged. You can always retag it if you want it to be used again. There is no harm in leaving untagged variables and responses in your project, because HEEDS MDO simply ignores them.
Untagging values
If you want to remove a variable or response completely, you need to untag it before you can remove it. HEEDS MDO will not let you remove a variable or response that is in use. When you untag a value in an input file, the original value from the file will be restored and used, as is, in subsequent runs. When you untag a value in an output file, the original value is also restored. However, since this value is not actually used, the only effect in HEEDS MDO Solver is the removal of the response from consideration in the process where it was tagged.
www.redcedartech.com
133
134
www.redcedartech.com
Overview of Tagging
Retagging
Tagging associates a response or variable with a specific file and a definition (created either by selecting a specific location in a file or by using a script or portal). If you change the way a tagged variable or response is defined (for example, by making different selections in the portal definition or changing the script commands), the Retag button will become active. If you want the changes youve made to be saved as part of the tagging for that variable/response, you must click Retag. If you havent clicked Retag, and you leave the screen after making changes, those changes will be lost.
Note: The Retag option is only available in the portal and scripting tagging modes.
Re-reading a File
If you need to make a minor change to an input or output file after you have tagged the file (for example, correcting a typo), you can use the Re-read File option. This will preserve your existing tags. If you think the changes you made to the file may have affected the validity of your tagged values, be sure to go back and check that all of your tags are still correctly defined after using the Re-read File option.
To re-read a file
1. Make your changes to the file outside of the HEEDS MDO Modeler. 2. Highlight the file you want to update in the Processes tree. 3. Right-click in the Processes tree, and select Re-read File from the pop-up menu.
www.redcedartech.com
135
Important: Make sure you modify the correct file. HEEDS MDO Solver will look for the file in the location specified on the Processes tab. If your file location has changed, use Replace File on the Processes tab to change the location before you update the file on the Tagging tab.
136
www.redcedartech.com
Overview of Tagging
Process coloring can be used to figure out which variables or responses are tagged in a given file. Additionally, if you have more than one process, you can use Process Coloring to find out which variables and/or responses are associated with a given process. Or, if you have more than one analysis in a process, you can use Process Coloring to find out which variables and/or responses are associated with a given analysis.
www.redcedartech.com
137
2. Select one of the highlighted variables or responses. If you are using marking, you will see the highlighted values in the parsed file:
When Process Coloring is activated, the tagged values for the selected file will also be highlighted on the other tabs in the Modeler.
138
www.redcedartech.com
Overview of Tagging
To use Process Coloring to find out which variables/responses are associated with
a process or analysis 1. Select the element you want to check from the Processes tree: To find out which variables or responses are associated with a process, select the process:
To find out which variables or responses are associated with an analysis in a given process, select the analysis:
To find out which variables are tagged in a given analysis, select Input Files:
To find out which responses are tagged in a given analysis, select Output Files:
www.redcedartech.com
139
2. When you select the item from the tree, the corresponding variables and/or responses will be highlighted in the Modeler.
3. Click Find Next. You will scroll to the next location of the search string in the file. A will appear in front of the row that contains the value.
140
www.redcedartech.com
8. Marking
Marking allows you to tag the values in input or output files that represent your projects variables or responses. Marking is the easiest way to tag an output file. However, you can only use marking if your response 1) represents a scalar value, 2) is located in a delimited file, and 3) does not vary in location from one output file to another.
The default delimiters are commas, semicolons, double quotes, the equal sign, and open and closed parentheses. In addition to these, a space is always treated as a delimiter. If your file does not parse into columns correctly, it either uses a field delimiter that is not one of the defaults, or one of the defaults is used for something other than a delimiter in the file. To correct the problem, you can add delimiters or remove any of the default delimiters (except the space delimiter).
To remove delimiters
1. Click in the Parsing Delimiters field.
www.redcedartech.com
141
2. Remove the delimiters you do not want. Use the left and right arrow keys on your keyboard to move your cursor and Del or Backspace to delete them. 3. Press Enter, and the file will reparse.
To add delimiters
1. Click in the Parsing Delimiters field. 2. Add your delimiter to the list. Each delimiter character is treated individually, so you do not need a space or other separator between them. 3. To add a tab delimiter, check the Include Tab box. 4. Press Enter and the file will reparse.
Note: Delimiters can only be modified in an untagged file.
3. Select the input file in the Processes tree that contains the value you want to associate with the selected variable. The parsed file will be displayed in the center of the screen. 4. Click on the cell in the parsed file that contains the value that corresponds to the selected variable. This will select the cell.
142
www.redcedartech.com
Marking
5. Right-click on the cell you selected, and choose Tag from the pop-up menu:
The variable name will appear in the cell in place of the value:
www.redcedartech.com
143
The response name will appear in the cell in place of the value
To untag a value
1. In the Project Variables or Project Responses window, select the variable or response you want to untag. 2. Select the file that contains the value from the Processes tree. 3. Scroll to the cell in the file that contains that variable or response. The cell will be highlighted so you can easily spot it as you scroll through the file. 4. Click on the cell that contains the variable or response to select the cell. 5. Right-click on the selected cell, and select Untag from the menu:
144
www.redcedartech.com
Marking
www.redcedartech.com
145
9. Scripting
When you use scripting to tag a response, you specify its location relative to constant elements in the file (e.g., strings, line numbers) instead of tagging a fixed row and column. There are three main reasons you may want to use scripting: 1. In some output files, the locations of the tagged values may vary each time the files are generated, usually because of warning messages that are inserted when the file is output. By specifying the location relative to a string (e.g. the third column in the line below the label Load Case 1), you can ensure that the value can always be located. 2. Values in fixed-format files do not have delimiters to denote where one field ends and another begins. To tag a value in a fixed-format line, you need to specify the location of the starting and ending character. 3. The value of a response may need to be based on a vector of values instead of just a single value. You can create a vector of values by tagging a number of individual values or one or more columns of values. All of these situations can be easily handled through scripts.
Note: Scripting can only be used to tag output files.
146
www.redcedartech.com
Scripting
The Script Editor is at the top of the screen. It contains buttons you can use to insert the HEEDS MDO Scripting Language (HSL) commands. It also contains an editable window where you enter the script. The lower portion of the screen displays the output File you are tagging. You can use this file to find the location you want to tag. The Search String function is available to assist you in finding specific strings in your file. Notice that the output file displayed in the script editor screen is not parsed, as it is on the marking screen. When you write a script, you direct HEEDS MDO Solver to the position in the file where the value(s) you want to tag are located. Then, you specify the location of the value(s) you want to extract.
www.redcedartech.com
147
Comments
A line that starts with a dollar sign ($) is treated as a comment. You can insert an unlimited number of comments into the file.
Line length
The length of each line should not exceed 255 characters.
Parsed data
All data parsed using the script are stored in the response variable that invoked the script via the *PREREQUISITE, *OBJ_AFTER_EXTRACTION, and *CON_AFTER_EXTRACTION keywords in HEEDS MDO. Parsed data are stored and available for any other computations, including subsequent response calculations.
148
www.redcedartech.com
Scripting
Errors
When HEEDS MDO encounters an error while running a script, execution of the script is terminated.
File commands
The file commands are used to open and close the output file. When you write a script, you will start with an OPEN_FILE command and end with a CLOSE_FILE command. OPEN_FILE
Description Description Syntax Arguments Example Opens the output file where your script will be executed. OPEN_FILE must be the first command in any script. OPEN_FILE(filename) filename Output file name and extension
OPEN_FILE(tower.log)
www.redcedartech.com
149
CLOSE_FILE
Description Description Syntax Arguments Example Closes the output file after your script is executed. CLOSE_FILE None. CLOSE_FILE
Loop commands
The loop commands let you execute a block of commands a specified number of times. There are two loop commandsone that designates the beginning of the loop and one that designates the end. LOOP
Description Description Syntax Arguments Example Executes a script block a specified number of times. LOOP(repetitions) repetitions Number of times to repeat the loop
END_LOOP
Description Description Syntax Arguments Example Designates the end of a loop. All code between the LOOP command and the END_LOOP command will be executed the number of times specified in LOOP. END_LOOP None. LOOP(3) code to be executed END_LOOP
150
www.redcedartech.com
Scripting
Positioning commands
The positioning commands move to specified positions in the file. The default position when a file is opened is at the top of the file. You can specify the position to move to by the number of lines or by specifying a string, a line number, or the top or bottom of the file. MOVE_DOWN
Description Description Syntax Arguments Example Specifies the number of lines to move down from the current row position. MOVE_DOWN(lines) lines Number of lines to move down from the current line.
MOVE_DOWN(8)
MOVE_UP
Description Description Syntax Arguments Example Specifies the number of lines to move up from the current row position. MOVE_UP(lines) lines Number of lines to move up from the current line.
MOVE_UP(4)
GOTO_TOP
Description Description Syntax Arguments Example Moves to the first line in the file. GOTO_TOP None. GOTO_TOP
GOTO_END
Description Description Syntax Moves to the last line in the file. GOTO_END
www.redcedartech.com
151
GOTO_LINE
Description Description Syntax Arguments Example Moves to the specified line. GOTO_LINE(line) line Number of the line to move to.
GOTO_LINE(126)
GOTO_STRING
Description Description Syntax Moves to the specified occurrence of a specified string, based on the current position in the file. GOTO_STRING(string, occurrence) string occurrence The string to search for. The occurrence of the string you are searching for based on the current position in the file. A positive number means the file is searched towards the end of the file, while a negative number will result in the search being performed towards the beginning of the file. For example, if the value for the second parameter is set to 2, the search will skip the first occurrence of the string and position the file pointer at the beginning of the line containing the next occurrence string.
Arguments
Example
GOTO_STRING(Load Case, 3)
152
www.redcedartech.com
Scripting
Notes: Unlike most programming languages and many scripting languages, in HEEDS MDO you do not enclose literal strings in quotation marks. If a command requires a string in a specific position, HSL assumes that the value entered in that position is a string. If you place quotation marks around a string, they will be considered part of the string. Commas and parentheses cannot be part of the search string.
Extraction commands
The extraction commands retrieve values from a specified location in a line. Every script must contain at least one extraction command. After you use the positioning commands to find the row where the value is located, you use the extraction commands to retrieve it. You can retrieve single values or you can retrieve a column of values. The latter feature allows you to retrieve a vector of values for your response. There are commands for both free-format and fixed-format files.
Note: The scripting commands assume that free-format files are either comma or space delimited. Other delimiters are not recognized.
GET_VALUE_FREE
Description Description Syntax Arguments Example Retrieves a value from the specified position in the current line in a freeformat file. GET_VALUE_FREE(position) position - Position of the value in the row. If you were to enter a 3, the third value in the row would be retrieved. The position is determined by the delimiter used to separate the values. GET_VALUE_FREE(5)
GET_VALUE_FIXED
Description Description Syntax Retrieves a value from the specified position in the current line in a fixedformat file. The position is specified by entering the starting and ending character positions. GET_VALUE_FIXED(startPos, endPos)
www.redcedartech.com
153
Description Arguments Example StartPos - Starting character position of the value in the row. EndPos - Ending character position of the value in the row. GET_VALUE_FIXED(7, 15)
GET_COLUMN_FREE
Description Description Syntax Retrieves a set of values from a free-format file, starting with the current line. The value in the designated position in the line will be retrieved from the number of consecutive lines you specify. GET_COLUMN_FREE(position, lines) position - The position of the column in the row. If you were to a 3, it would retrieve the third value. enter
Arguments
lines - The number of lines to be retrieved. For example, 25 would retrieve the value in the specified column position from 25 consecutive lines, starting with the current line There are two different types of values that can be used for this parameter: it can either be the integer number of consecutive lines that need to be read or EOC. Using EOC allows reading columns whose length is not fixed. If EOC option is used, the values will be read until the end of column or the file is detected. GET_COLUMN_FREE(5, 25)
Example
Note: After the values are extracted, the file position will be on the last value in the extracted column.
GET_COLUMN_FIXED
Description Description Syntax Retrieves a set of values from a fixed-format file, starting with the current line. The value in the designated position will be retrieved from the number of consecutive lines you specify. GET_COLUMN_FIXED(startPos, endPos, lines)
154
www.redcedartech.com
Scripting
Description startPos - The starting character position of the column value in the row. endPos The ending character position of the column value in the row. lines - The number of lines to be retrieved. 10 would retrieve the value in the specified position from 10 consecutive lines, starting with the current line. There are two different types of values that can be used for this parameter: it can either be the integer number of consecutive lines that need to be read or EOC. Using EOC allows reading columns whose length is not fixed. If EOC option is used, the values will be read until the end of column or the file is detected. GET_COLUMN_FIXED(7, 15, 10)
Arguments
Example
Note: After the values are extracted, the file position will be on the last value in the extracted column.
Entering a Script
Entering a script is relatively easy, because buttons are provided in the Script Editor to insert the actual commands. All you have to do is supply the arguments.
www.redcedartech.com
155
a. Press Enter to start a new line and click the button for the command. b. If the command has arguments, enter the required arguments in the parentheses: GOTO_STRING(Stress, 2) MOVE_DOWN(3) 4. Commas are inserted automatically for commands with more than one argument. 5. Enter the command to extract the value(s): a. Press Enter to start a new line and click the button for the command. b. Enter the required arguments to locate the value in the parentheses: GET_VALUE_FREE(3) 6. Press Enter, and click the CLOSE_FILE button to place the close file command in the script. 7. Click Tag to associate the script with the response.
Important: When you click a button, the command is inserted at the point where your insertion point is positioned, so be sure to always start a new line before you click a button.
To enter a loop
1. Start the loop by clicking the button for the LOOP command. Place the number of times you want to execute the loop in the parentheses:
LOOP(3)
2. Enter the commands for the loop. Loops are usually easier to read when the commands in the loop are indented, so press Tab to indent the line before you enter the command:
LOOP(3) GOTO_STRING(Load Case, 1)
156
www.redcedartech.com
Scripting
Loops can also contain loops. You can place a loop inside another loop as shown below:
LOOP(3) GOTO_STRING(Load Case, 1) LOOP(2) MOVE_DOWN(4) GET_VALUE_FREE(5) END_LOOP END_LOOP
When you nest loops, make sure you have included an END_LOOP command for every LOOP command.
www.redcedartech.com
157
Values are added to a vector in the order in which they are retrieved by the script. When values are added to a vector, they are appended to the end of the vector list. If you were creating a vector by extracting a column of 10 values from each of three load cases, your script might look like this:
OPEN_FILE(rail.log) LOOP(3) GOTO_STRING(Load Case, 1) MOVE_DOWN(2) GET_COLUMN_FREE(2, 10) END_LOOP CLOSE_FILE
The first time the loop was executed, it would extract 10 values from the first load case, creating a vector of 10 values. The second time, it would extract 10 values from the second load case and append them to the first 10 values. The third time, it would extract 10 values from the third load case and append them to the 20 values that are currently in the vector, giving you a vector of 30 values. Since you cannot change the order, if order makes a difference, you should retrieve them in that order.
This button will return the value you have tagged with your script. If you have tagged a vector of values, the first value will be returned.
To test a script
1. Click Extract Value. A command prompt window will appear briefly on your screen while the script is run.
158
www.redcedartech.com
Scripting
The value you have tagged will appear in the field next to the button. This value should match the one you tagged in the file (or the first value if you are tagging a vector of values). 2. If the value is not what you expect, check the script for errors.
Note: You can also use the Extract Value button to check response formulas.
To troubleshoot errors
1. Make sure that the following are true: The first line contains an OPEN_FILE command, and There is an extraction command. 2. If either of these is missing, add it to the script and try extracting the value again. 3. Check the name of the output file entered in the OPEN_FILE command, and correct it if necessary. Then try extracting the value again. 4. If the output file name is correct and you still get an error, you may not have clicked Tag before testing. Click Tag and try extracting the value again. 5. If you still get an error, check for the following syntax errors:
www.redcedartech.com
159
Check each command to make sure the arguments are valid and that you have the correct number of arguments. Make sure the required parentheses and commas are present in commands with arguments. Make sure you have not used commas and parentheses in string arguments and that you have not enclosed your strings in quotation marks. Make sure the command key words are spelled correctly. If you used the buttons to paste them in, they should be correct unless you changed something accidentally. 6. If you do not find any syntax errors, check your script by manually simulating the script commands in the output file at the bottom of the screen to find which command contains the error: Be sure to position yourself on line 1 because all scripts start at line 1. To simulate the GOTO_STRING command, enter the string in the Search String field and click Find Next once for each occurrence your command specifies. If your line location is specified correctly, check to make sure the location you specify in that line contains a value. If you cannot find the error by looking at the script, open the checkPerformance.out file in the HEEDS-Scratch folder your project directory. This file will contain a description of the errors. If there is an incompletely defined variable, it will be listed. If there is a syntax error, you will be able to determine what command it is in.
Copying scripts
If you have several scripts that are fundamentally alike in your project, you can copy the first one and paste it in for each of the others. Once it is pasted in, you can edit it as needed.
To copy a script
1. Select the response that contains the script. 2. Highlight the script in the script window. 3. Right-click, and select Copy from the menu. 4. Select the response that you want to copy the script to. 5. Right-click in the script window, and select Paste from the pop-up menu. 6. Make whatever changes you need to make to the script.
160
www.redcedartech.com
Scripting
Sample Scripts
Here are some examples of typical scripts.
www.redcedartech.com
161
162
www.redcedartech.com
Scripting
www.redcedartech.com
163
Supported Portals
The following portals are available in HEEDS MDO:
Package Abaqus Adams ANSYS WB Excel LS-DYNA MATLAB Nastran NX SolidWorks SolidWorks Simulation Input Portal Output Portal Versions Supported 6.6 through 7.1 2010 12.1 and later Excel 97 and later 970, 971 Versions 2009, 2010 and 2011 MSC 2008 R1 and later NEi 9.2 and later 4, 5, 6
164
www.redcedartech.com
www.redcedartech.com
165
166
www.redcedartech.com
3. If you chose Material: a. Select a Material Name. b. Select a Material Keyword. c. Select an Input to be Modified.
4. If you chose Node: a. Enter a Node Number. b. Select a Coordinate Direction. 5. Click the Tag button.
www.redcedartech.com
167
Note: Once you complete the portal definition for a variable, a read-only Value from File field will appear at the bottom of the portal. This displays the baseline value from the specified location in your input file.
168
www.redcedartech.com
The Environment Variables window appears. 5. In the System variables group box, scroll down to locate the HEEDS_ANSYS_CMD variable. 6. Click to select it. 7. Click the Edit button:
www.redcedartech.com
169
8. Make sure the Variable value path is correct. It should point to the runwb2.bat file in your installation directory. The default path is as follows: C:\Program Files\ANSYSInc\v130\Framework\bin\Win32\runwb2.bat
170
www.redcedartech.com
Note: If you select the ANSYS WB solver for an analysis, the supported file types must be tagged through the portal. You can have other input or output files attached to the analysis as well, but they can only be tagged through one of the other methods (i.e., marking or scripting).
www.redcedartech.com
171
The portal easily integrates the analysis tool into the HEEDS MDO optimization process. HEEDS MDO Modeler reads in the active worksheet of a Microsoft Excel project for both input and output. It launches macros associated with a project and gives you full use of Excels capabilities in an automated fashion.
172
www.redcedartech.com
www.redcedartech.com
173
Note: Design variables are tagged in the .xls file that was brought in as an input file, and responses are tagged in the .xls file that was brought in as an output file. If you are using the same file for both the input and output, HEEDS MDO treats it as two separate files. Consequently, tags placed in the input file will not appear in the output file, and tags placed in the output file will not appear in the input file.
174
www.redcedartech.com
2. Change the Tagging mode to Portal. HEEDS MDO parses the input file and reads it in as it would appear in Microsoft Excel, with numeric rows and alpha columns. 3. In the Project Variables window, click on the desired variable to select it. 4. In the File window, select the cell containing the value that you want to tag.
Note: The Contents of Selected Cell field will display the value or formula that occupies the cell you have selected. Be aware that if you tag a cell that contains a formula, HEEDS MDO Solver will overwrite that formula with a value.
Note: Formulas are updated in the Microsoft Excel analysis as they would be if you manually changed the values in the cells that the formula was calling.
www.redcedartech.com
175
2. In the Input Files Manager for the analysis, attach the input file that represents the baseline design. The file type must be the one that is supported by the portal.
Note: If you select the LS-DYNA solver for an analysis, the supported file types must be tagged through the portal. You can have other input or output files attached to the analysis as well, but they can only be tagged through one of the other methods (i.e., marking or scripting).
176
www.redcedartech.com
www.redcedartech.com
177
2. Register the automation server by running the following command: <path specified in step 1>\MATLAB.exe /regserver Example: C:\Program Files\MATLAB\R2012a\bin\win64\MATLAB.exe /regserver
2. In the Input Files Manager for the analysis, add the solver input file that represents the baseline design: a. The file type must be supported by the portal. For MATLAB, this is an .m file.
178
www.redcedartech.com
b. You can bring in multiple .m files. However, only those files that need to be copied to the evaluation folder need to be added as input files. 3. Next, you need to specify which file is the Main input file. This is the only file that is executed by HEEDS MDO for this analysis (this file can reference and execute other input files). HEEDS MDO needs to know which input file to run initially. To specify the Main input file: a. Select the desired input file. b. Right-click in the Input Files Manager. c. Select Designate as Main Input File from the pop-up menu:
4. The word Yes will appear in the Main File column next to the file you designated. The first .m added is set as the Main input file by default.
www.redcedartech.com
179
180
www.redcedartech.com
Important: When you select variables/responses to share with the MATLAB analysis (to be loaded into the MATLAB engine without tagging), these variables must NOT be set in the .m files. If these variables are set in the .m file, the value set by HEEDS MDO for each new design will be overwritten by the variable definition in the m file.
www.redcedartech.com
181
182
www.redcedartech.com
NX Input Portal
NX is a powerful CAD tool used in many industries. Because NX is a parametric CAD tool, it allows a finite number of parameters to control the geometry of a part or assembly. These parameters are easily translated into design variables in a design optimization project. Integrating NX with HEEDS MDO is simple using the HEEDS MDO NX Input Portal. The portal handles all communication between HEEDS MDO Solver and the NX part file, and the project definition is straightforward and intuitive in the HEEDS MDO Modeler.
www.redcedartech.com
183
184
www.redcedartech.com
6. In the System variables group box, scroll down to locate the Path variable. 7. Click to select it. 8. Click the Edit button. 9. In the Variable value field, add a semi-colon to the end of the path, and then enter the complete path to the UGII folder in your NX installation:
10. So, for example, if your NX installation directory location is C:\Program Files\UGS\NX 6.0\ then append the following to the Path variable: ;C:\Program Files\UGS\NX 6.0\UGII
www.redcedartech.com
185
Note: In addition to updating and saving the .prt file, HEEDS MDO Solver will also generate a CAD file for the format you select in the CAD Export Format field.
3. In the Input Files Manager for the analysis, attach the solver input file that represents the baseline design. The file type must be the one supported by the portal. For NX, this will be a .prt file.
186
www.redcedartech.com
The NX Input Portal screen contains an Expressions window, which displays the expressions in the input (.prt) file that are available for tagging. By making selections from this window, you tell HEEDS MDO Solver which value, or vector of values, you want to tag for your selected variable.
Note: If you select the NX solver for an analysis, the supported file types must be tagged through the portal. You can still have other input or output files attached to the analysis as well, but they can only be tagged using one of the other methods (i.e., marking or scripting).
www.redcedartech.com
187
3. In the Input Files Manager for the analysis, attach the solver input file that represents the baseline design. The file type must be the one supported by the portal. For SolidWorks, this will be a .sldprt file.
188
www.redcedartech.com
The SolidWorks Input Portal screen contains an Equations window, which displays the equations in the input (.sldprt) file that are available for tagging. By making selections from this window, you are telling HEEDS MDO Solver which value you want to tag for your selected variable.
Note: If you select the SolidWorks solver for an analysis, the supported file types must be tagged through the portal. You can still have other input or output files attached to the analysis as well, but they can only be tagged using one of the other methods (i.e., marking or scripting).
5. In the Expressions window, click on the expression you want to tag: 6. Click the Tag button.
www.redcedartech.com
189
190
www.redcedartech.com
5. In the System variables group box, scroll down to locate the HEEDS_SWSIMULATION_PATH variable. 6. Click to select it. 7. Click the Edit button:
8. Make sure the Variable value path is correct. It should point to the Simulation directory in the SolidWorks installation directory. The default path for this environment variable is as follows: C:\Program Files\SolidWorks Corp\SolidWorks\Simulation
www.redcedartech.com
191
5. Select an Element Type (Shell, Solid or Beam). 6. Select an Input to be Modified (Material or Thickness). a. If you chose Material, you need to add at least one Material Library. To do this:
192
www.redcedartech.com
1. Click the Add Library button. 2. Browse to the desired library file, and select it. It must be a .sldmat file.
Note: This file should contain the definition of all the materials you want to consider during the optimization. If all of the definitions are not in a single file, then you must add all of the material library files necessary so that the definitions for all materials in consideration are available.
3. Click the Open button. The file path will appear in the Material Libraries window. 7. If you chose a Solid element type, you also need to select the desired Body. 8. Click the Tag button.
www.redcedartech.com
193
Preliminary Setup
If you plan to use the Abaqus Output Portal to tag output files in a given analysis, you must first do the following on the Processes tab when you define the analysis: 1. In the Analysis Manager, select Abaqus (Input/output) from the Solver dropdown list. 2. In the Output Files Manager for the analysis, attach the output file that contains the results of the baseline design produced by the solver you have chosen. The file type must be the one that is supported by the portal. For Abaqus, this will be the .odb file.
Note: If you select the Abaqus solver for an analysis, the .odb file must be tagged through the
portal. You can have other input or output files attached to the analysis as well, but they can only be tagged through one of the other methods (i.e., marking or scripting).
194
www.redcedartech.com
4. Select the output file from the Processes tree. A command prompt window will open while HEEDS MDO Solver parses the file for display on the tagging screen. Then the Portal screen will appear:
www.redcedartech.com
195
If you have chosen Field, continue with the instructions in the Defining a Field Response section. If you have chosen History, continue with the instructions in the Defining a History Response section.
196
www.redcedartech.com
2. Select the Frame increment, to extract the value from a specified frame or group of frames.
Option Last All Range Description Retrieves the value from the last frame increment executed. Retrieves the values from all increments associated with the step. Retrieves the values from a specified range of increments.
3. If you select Range, fields will appear in the Range Data window so you can specify the range:
In the Start field, enter the number of the starting increment in the range. In the End field, enter the number of the last increment in the range. For example, if you want the first increment, enter 0 for both Start and End. Similarly, if you only want the fifth increment, enter 5 for both Start and End.
www.redcedartech.com
197
Defining what output quantity to retrieve The second row is used to identify the output quantity you want to associate with your selected response.
Note: Definitions of the Output variable abbreviations used in this field can be found in the Output
Variables section of the Abaqus Analysis Users Manual.
2. In the Type field, select either the Component or Invariant radio button. 3. From the list below the Type field, select the specific Component or Invariant that you want to retrieve the values from. 4. If required, select a value from the Position field. 5. If required, select a value from the Section field. Defining where in the design the value is located The selections in the third row define where in the design (i.e., which region) the value you want to retrieve is located. To do this, you specify the part or assembly, the set entity type, and the specific set.
If you selected Instance, a list of part instances will appear. Select the instance of the part you want to extract the value from:
Note: Some parts only have one instance. Others (spokes in a wheel, for example) may have
multiple instances of the same part.
2. Next, in the Entity window, select All or Subset. If you want to extract the value(s) from all element sets, choose All. Then, continue on to tagging the response. If you select Subset, an entity type list will appear. Select the desired entity type Node Set or Element Setfrom the list.
The available sets for the entity you selected will appear in the ID window. Select the set in the ID window that you want to extract the quantity from. Tagging the response After you have defined the information that you want to extract for the response, click the Tag button at the bottom of the screen to tag the response.
www.redcedartech.com
199
Testing the setup Testing your output setup can help you identify and eliminate errors in your analysis before you run it. To test your output definition, click Extract Value. The extracted value will appear in the Value field next to the button:
Note: If you tagged a vector of values, only the first value will appear in the Value field.
2. Select the Time increment, to extract the value from a specified time increment or group of time increments.
200
www.redcedartech.com
Description Retrieves the value from the last time increment executed. Retrieves the values from all time increments associated with the step. Retrieves the values from a specified range of time increments.
3. If you select Range, fields will appear in the Range Data group so you can specify the start and end times for the range:
In the Start field, enter the number of the starting increment in the range. In the End field, enter the number of the last increment in the range. If you want the first increment, enter 0 for both Start and End. Similarly, if you only want the fifth increment, enter 5 for both Start and End. Defining where in the design the value is located The selections in the History Region define where in the design (i.e., which region) the value you want to retrieve is located.
www.redcedartech.com
201
Defining what output quantity to retrieve The third row is used to identify the Output quantity you want to associate with your selected response.
202
www.redcedartech.com
Note: Definitions of the Output variable abbreviations used in this field can be found in the Output
Variables section of the Abaqus Analysis Users Manual.
Tagging the response After you have defined the output quantity that you want to extract for the response, click the Tag button at the bottom of the screen to tag the response. Testing the setup Testing your output setup can help you identify and eliminate errors in your analysis before you run it. To test your output definition, click Extract Value. The extracted value will appear in the Value field next to the button:
Note: If you tagged a vector of values, only the first value will appear in the Value field.
www.redcedartech.com
203
2. In the Project Responses window, click on the desired response to select it. 3. Change the Tagging mode to Portal. 4. From the Processes tree, select the desired output file. The Adams Output Portal screen will appear:
5. Select the desired Request. 6. Select the desired Component. 7. Select the desired Time Increment:
204
www.redcedartech.com
Description Retrieves the value from the first time increment executed. Retrieves the value from the last time increment executed. Retrieves the values from all time increments available in the request file. Retrieves the values from a specified range of time increments.
8. If you select Range, fields will appear in the Range Data window so you can specify the range: a. In the Start Time field, enter the number of the starting increment in the range. b. In the End Time field, enter the number of the last increment in the range. c. The available range will be read from the request file you added as an output file in the Adams analysis and displayed next to the Range option.
206
www.redcedartech.com
www.redcedartech.com
207
It launches macros associated with a project and gives you full use of Excels capabilities in an automated fashion.
208
www.redcedartech.com
1. To open the Excel Output Portal, click on the Tagging tab. 2. Change the Tagging mode to Portal. HEEDS MDO parses the output file and reads it in as it would appear in Microsoft Excel, with numeric rows and alpha-columns:
www.redcedartech.com
209
3. In the Project Responses window, click on the desired response to select it. 4. In the File window, select the cell containing the value that you want to tag.
Note: The Contents of Selected Cell field will display the value or formula that occupies the cell
you have selected. Be aware that if you tag a cell that contains a formula, HEEDS MDO Solver will overwrite that formula with a value.
210
www.redcedartech.com
Note: Formulas are updated in the Microsoft Excel analysis as they would be if you manually
changed the values in the cells that the formula was calling.
Preliminary setup
If you plan to use the LS-DYNA Output Portal tagging mode for an output file in a given analysis, you must first do the following on the Processes tab when you define the analysis: In the Analysis Manager, select LS-DYNA (Input/output) from the Solver dropdown list. In the Output Files Manager for the analysis, add the output file that contains the results of the baseline design produced by the solver you have chosen. For LSDYNA, this will be a binout or binout0000 file.
www.redcedartech.com
211
Note: If you select the LS-DYNA solver for an analysis, the binout file must be tagged through the
portal. You can still have other input or output files attached to the analysis as well, but they can only be tagged using one of the other methods (i.e., marking or scripting).
212
www.redcedartech.com
4. From the Processes tree, select the binout output file. The LS-DYNA Output Portal screen will appear:
www.redcedartech.com
213
3. For some Data Files, youll also need to select a value from the Component dropdown list. 4. In the IDs (or Mode Numbers) field, either select All or User-defined. 5. Select a Time Increment.
214
www.redcedartech.com
Description Retrieves the value from the first time increment executed. Retrieves the value from the last time increment executed. Retrieves the values from a specified range of time increments.
6. To tag the response, click the Tag button at the bottom of the screen.
Note: If you tagged a vector of values, only the first value will appear in the Value field.
www.redcedartech.com
215
216
www.redcedartech.com
2. In the Output Files Manager for the analysis, attach the output file that contains the results of the baseline design produced by the solver you have chosen. For MATLAB, this will be an .m file.
www.redcedartech.com
217
2. Select the Data Type: Real or Imaginary 3. Click the Tag button.
218
www.redcedartech.com
www.redcedartech.com
219
220
www.redcedartech.com
b. If you chose Element Force, Strain, or Stress, select an Element Class from the dropdown, and then go on to Step 2.
2. Under Output, select a Component from the dropdown. 3. Under Location, select an Entity Type: a. If you chose Node Set or Element Set, also select the appropriate file from the Input File With Set Definition dropdown:
www.redcedartech.com
221
4. Select an Entity IDs option (either All or User Defined). 5. If your Output Type from Step 1 was Element Force, Strain, or Stress and your Element Class was COMPOSITE, you will also need to select a Ply Number option (either All or Specified) at this point:
6. Select a Subcase ID (All or Specified). 7. Select a Time Step or Mode Number option:
Option First
Description Retrieves the value from the first time increment executed.
222
www.redcedartech.com
Description Retrieves the value from the last time increment executed. Retrieves the values from all the time increments for the selected subcase. Retrieves the values from a specified range of time increments.
8. When you are finished with the response definition, click the Tag button:
3. In the Output Files Manager for the analysis, attach the solver output file that represents the baseline design. The file type must be the one supported by the portal. For SolidWorks, this will be a .sldprt file.
www.redcedartech.com
223
1. Click on the Tagging tab. 2. In the Project Responses window, click on the desired response to select it. 3. Change the Tagging mode to Portal. 4. From the Processes tree, select the .sldprt output file. The SolidWorks Output Portal screen will appear. The SolidWorks Output Portal screen contains an Equations window, which displays the equations in the output (.sldprt) file that are available for tagging. By making selections from this window, you are telling HEEDS MDO Solver which value, or vector of values, you want to tag for your selected variable.
Note: If you select the SolidWorks solver for an analysis, the supported file types must be tagged
through the portal. You can still have other input or output files attached to the analysis as well, but they can only be tagged using one of the other methods (i.e., marking or scripting).
5. In the Equations window, click on the expression you want to tag. 6. Click the Tag button.
224
www.redcedartech.com
1. In the Analysis Manager, select SW Simulation (Input/Output) from the Solver dropdown list. 2. In the Study field, enter the exact name of your Simulation study. 3. In the Output Files Manager for the analysis, attach the solver output file that represents the baseline design. The file type must be the one supported by the portal. For SolidWorks Simulation, this will be a .sldprt or .asm file.
www.redcedartech.com
225
a. If you are doing a non-linear analysis, you should enter the specific Step Number in this field. For a linear analysis, this would just be 1. b. If you are doing a frequency analysis, then you should enter the Mode Number in this field. 6. Select an Output Type.
Important: The Output Type list is static and does not reflect the contents of your output file. Make sure that the selected output is being calculated and is available from your simulation results.
226
www.redcedartech.com
228
www.redcedartech.com
Adding Agents
An agent is created using the Agent Installation options on the Assembly tab. When you add an agent to your project, you must specify its type. You cannot change the type after the agent is created.
3. The agent will be removed and the agent group button will look like this:
To add an agent
1. To add your agent, select the type of agent you want to add from the Add Agent Type list box:
www.redcedartech.com
229
2. Move your mouse to the Agent Graph. The pointer will change to a
3. Place the pointer anywhere on the button: 4. Click on the agent group button to add the new agent.
5. Note that the new agent also appears in the Agents tree:
230
www.redcedartech.com
To remove an agent
1. Right-click on the agent you want to remove to display the pop-up menu. 2. Select Delete from the pop-up menu:
HEEDS MDO will always place the agent type prefix in front of the name in the graph and in the tree: OPT_Coarse_Agent DOE_3X3_Agent Just like variable and analysis names, agent names may not contain spaces. If you use more than one agent in your project, you should give each agent a uniquely descriptive name: Coarse_Agent 3X3_Agent
www.redcedartech.com
231
2. Type the new name for the agent. Do not include the prefix. The name you type will replace the highlighted value:
3. Press Tab or Enter or click on another field or in the Agent Graph. The new agent name will appear on the agent button in the Agent Graph and also in the Agents tree. The agent prefix will be added to the name in the graph and in the tree. It will not appear in the Name field.
3. Click the Process dropdown, and choose a different process to assign to the selected agent:
www.redcedartech.com
233
The methods available depend on the type of agent youre using: parameter optimization, DOE, robustness and reliability, or evaluation. These methods are summarized briefly here, and then discussed in detail in the assembly section for each specific type of project.
DOE methods
For DOE projects, the method determines how the design matrix is created. You may select the specific method you want to use or allow HEEDS MDO Solver to select it for you. For a more detailed discussion of DOE search methods, see DOE Methods on page 234.
Evaluation method
Since there is no search performed by the Evaluation agent, the Methods Manager is just used to define the designs that you want HEEDS MDO to create, evaluate and post process.
234
www.redcedartech.com
During assembly, agent variables in parameter optimization projects and DOE projects require additional definition. No further definition is required for robustness and reliability projects, as all necessary definition is done when the variable is created. For continuous variables in parameter optimization projects, you must enter the resolution. The resolution controls the fineness of the values that will be used within the specified range and is used to discretize continuous variables for search methods that employ variable discretization. For more information about agent variables in parameter optimization projects, The Components of a Parameter Optimization Project on page 238. For DOE projects, you must select your factors from the variables defined for your agent. Only continuous and discrete variables may be used as factors. For more information, see The Components of a DOE Project on page 298.
www.redcedartech.com
235
In parameter optimization and evaluation projects, each agent response requires additional definition (objective or constraint) to tell HEEDS MDO Solver what to do with the response when it evaluates the performance of the design. No further response definition is required for DOE and robustness and reliability projects, as these studies are only concerned with the output value.
236
www.redcedartech.com
238
www.redcedartech.com
Search methods
Parameter optimization methods are the mathematical search algorithms that a parameter optimization agent uses to find an optimized design. You can choose from a variety of methods. The default search algorithm in HEEDS MDO is a proprietary method called SHERPA, which is actually a combination of strategies from several different search methods that are used simultaneously and adaptively. Because SHERPA performs both global and local search, it is applicable to almost any engineering design optimization problem. If you prefer, you may choose another method from the list of those available.
www.redcedartech.com
239
www.redcedartech.com
241
Because the resolution is defined at agent level, agents can run the same analysis and still have different resolutions for the variables. When you use coarse and refined resolutions in different agents, there is a guideline formula that must be followed to arrive at a valid resolution: RefinedResolution = n (CoarseResolution - 1) + 1 where n is a positive integer. Based on the above formula, with a coarse resolution of 11, we could use 21, 31, 41, 51, 61, .., 101,....., etc. If the resolution is not valid, HEEDS MDO Solver will generate an error during the run.
Applying stochasticity
You can apply stochastic distributions to your continuous variables to account for known tolerances (e.g., variations in material thickness) and to test the robustness of a design against expected deviations. When you associate a continuous variable with a stochastic distribution, it enables HEEDS MDO Solver to treat that variable as stochastic. You can enable or disable stochasticity for continuous variables as needed for a given agent. This allows you to have two agents perform the same analyses, where one applies a stochastic distribution to the variable and the other does not. By having the non-stochastic agent feed designs to the stochastic agent, you can guide the stochastic agent to a more
242
www.redcedartech.com
productive region of the design space for its search. For more information about working with more than one agent, see Using Multiple Agents.
www.redcedartech.com
243
that agent. Responses in a parameter optimization project either represent objectives or constraints values in the output file that HEEDS MDO Solver uses to determine the performance of each design. You will need to define one response for each objective and each constraint you want HEEDS MDO Solver to use in determining the optimal design. Response attributes are defined on an agent-by-agent basis. Responses that are not defined as objective or constraints will be treated as prerequisite responses (values that will be used by dependent variables and responses).
OR When the linear and quadratic weight variables are set to their default values:
244 www.redcedartech.com
Variable Nobj LinWti Si Obji Normi QuadWti Ncon LinWtj ConViolj Normi QuadWtj
Definition Number of objectives in the optimization study The linear weight for the i objective. The default value is 1. Sign for the i objective. The value is -1 for objectives being minimized and +1 for objectives being maximized The response value for the i objective for that design The normalizing value for the i objective. The quadratic weight for the i objective. The default value is 0. Number of constraints in the optimization study The linear weight for the j constraint. The default value is 0. The amount by which the j constraint is violated. This value is 0.0 if the constraint is met. The normalizing value for the i constraint. The quadratic weight for the j constraint. The default value is 10000.0.
th th th th th th th th th
Prerequisite responses
Prerequisite responses are not directly used to evaluate how well a design performs. Instead, they store values for later use by dependent variables and/or calculated responses. They do not have any attributes. These responses can be used to monitor certain aspects of the design without any impact on the performance. You can use prerequisite responses to neutralize a response that you dont want used by a particular agent. If you do not define a response as either an objective or a constraint, it will automatically be considered a prerequisite, which means that you remove it from consideration in the search for better designs for that agent.
www.redcedartech.com
245
Suppose, for example, you have a stress response and a mass response. In one agent, you could minimize stress and impose a constraint on mass, while, in the other agent, you could minimize mass and maintain a constraint on stress. In this section, well show you how to define your responses at the agent level.
Note: Each project response can be defined as an objective and one or more constraints.
The agent responses will appear in a read-only list in the Agent Responses panel:
246
www.redcedartech.com
Note: If no agent responses appear, either no process has been assigned to the agent or no
responses have been tagged in the output files of the assigned process.
www.redcedartech.com
247
In problems where there is only one objective and some constraints, the normalizing factor makes sure that the weighting of the objective is not too large. In this case the infeasible designs may be treated as better designs because the weight on reducing the objective value is higher than strictly meeting the constraints. Defining an acceptable range for response values Values outside of the acceptable range will be treated as error designs by HEEDS MDO. The default values for the Acceptable Range fields are a very negative minimum number (1.0d300) and a very large maximum number (1.0d300). For many studies, leaving these default values in place will work just fine:
However, there are some studies for which you will want to customize the acceptable range to eliminate designs that should be errors. By changing the values in the Acceptable Range fields, you can specify a reasonable range within which HEEDS MDO should limit its search.
248
www.redcedartech.com
For example, if one of your responses was mass, you would want set the minimum value for this response above zero (because negative mass isnt feasible). This would prevent HEEDS MDO from considering designs for which the mass response was a negative value due to errors in the analysis or an invalid combination of design variables. If you didnt specify that mass should be greater than zero, you might run a 10-hour study only to find that HEEDS MDO had found optimal designs with negative values for mass. This is why defining the acceptable range is such a valuable way to place limits on the search for an optimal design.
The Add Objective dialog will appear. 2. Select a response from the Response list:
www.redcedartech.com
249
3. Enter a value for the Normalizing Factor. The normalizing factor should be set to a value that is on the same order of magnitude as the expected answer (For more information, see Setting the normalizing factor on page 252). 4. Under Option, select Minimize or Maximize, depending on whether you want to minimize or maximize the objective:
5. If desired, adjust the Acceptable Range values (For more information, see Defining an acceptable range for response values on page 248).
250
www.redcedartech.com
7. When you have completed the objective response definition, click OK. The response now appears in the Objectives list:
Notice that the response is marked with an x in the Responses list. This gives a quick visual indication that you have defined this response as either an objective or a constraint.
www.redcedartech.com
251
Setting the normalizing factor The normalizing factor should be set to a value that is on the same order of magnitude as the expected answer. The normalizing factor has no real effect unless you have more than one objective in your problem; so, if you have only one objective you can leave the default. In problems with more than one objective, the normalizing factor is used to adjust the response values to ensure that all objectives are treated appropriately when HEEDS MDO Solver computes the weighted-sum performance of a given design. For example, suppose that displacement and stress are both objectives in a given problem. The expected values of displacement might be on the order of 0.1 inches, while stress is on the order of 10,000 psi. If these values are not adjusted when computing the performance of the design, the objective with the largest valuestress in this casewill govern the performance rating and the smaller valuedisplacementwill not have any effect. Defining an acceptable range for response values Values outside of the acceptable range will be treated as error designs by HEEDS MDO. The default values for the Acceptable Range fields are a very negative minimum number (-
252
www.redcedartech.com
1.0d300) and a very large maximum number (1.0d300). For many studies, leaving these default values in place will work just fine: However, there are some studies for which you will want to customize the acceptable range to eliminate designs that should be errors. By changing the values in the Acceptable Range fields, you can specify a reasonable range within which HEEDS MDO should limit its search. For example, if one of your responses was mass, you would want set the minimum value for this response above zero (because negative mass isnt feasible). This would prevent HEEDS MDO from considering designs for which the mass response was a negative value. If you didnt specify that mass should be greater than zero, you might run a 10-hour study only to find that HEEDS MDO had found optimal designs with negative values for mass. This is why defining the acceptable range is such a valuable way to place limits on the search for an optimal design.
4. Enter a value for the Normalizing Factor. The normalizing factor should be set to a value that is on the same order of magnitude as the expected answer. (For more information, see Setting the normalizing factor on page 252). 5. If desired, adjust the Acceptable Range values (For more information, see Defining an acceptable range for response values on page 248).
www.redcedartech.com
253
7. When you have completed the objective response definition, click OK. The response now appears in the Constraints list.
254
www.redcedartech.com
Notice that the constraint is marked with an x in the Responses list. This gives a quick visual indication that you have defined this response as either an objective or a constraint.
2. Click the Edit button. 3. Make any desired changes to the response in the Edit dialog. 4. Click OK.
www.redcedartech.com
255
Click Yes to confirm that you wish to delete the objective/constraint. Click No if you do not wish to delete the objective/constraint.
Collaborative Optimization
Collaborative optimization allows you to contribute designs to the search process at the start of and during a parameter optimization study. Using this feature, you can provide design ideas for HEEDS MDO to use during its search. This allows you to combine your domain knowledge and experience with the intelligent search technology in HEEDS MDO.
256
www.redcedartech.com
The Agent Manager will appear. 2. In the Collaborative Optimization group box, click on the Define User-Specified Designs button:
The Define User-Specified Designs dialog will appear. This is where you will define the design sets you want HEEDS MDO to include in the parameter optimization study.
2. Click on the name of the set to select it. 3. Click Rename Set to change the name of the set:
5. Next, youll need to add designs to the set either by importing them from a file or by adding them manually.
258
www.redcedartech.com
variable values on the subsequent design lines should be in the same order as the order in the header line. The output files HEEDS0.res and HEEDS0.gph are supported for collaborative optimization.
To import designs
1. Click on the desired set to select it. 2. Click Import:
3. Navigate to the comma-delimited file that you wish to import. 4. Select the file, and click Open. The imported designs will appear in the Designs in Set list:
www.redcedartech.com
259
To view and edit variable and response values for imported designs
1. To select a design from the Designs in Set list, click on the designs name. The values for the design will be displayed to the right:
Description Enable this option to specify response values. This is useful if the design was already evaluated outside of HEEDS and you have results for it. Typically, to use the design in its search, HEEDS MDO will evaluate a design and then calculate the values for the response variables. However, if the design evaluation takes a long time, you may want to specify the response values for the design being added so that HEEDS does not have to perform the evaluation to get the response values. In this case HEEDS MDO uses the response values you specified, saving the time it would have taken to evaluate the design. Note: You can specify the response values for a design only if the Specify response values option is selected. In this case, the values must be specified, or the design will be ignored by HEEDS MDO as an error input.
If this option is not selected, the design variable values that you specify here will be evaluated as you entered them. If this option is selected, HEEDS MDO will map the variable values to the closest value represented inside HEEDS MDO based on the variable resolution specified for each variable.
260
www.redcedartech.com
2. To change a variable or response value, enter a new number in the Value field:
www.redcedartech.com
261
2. If you wish to rename the design, click the Rename Design button, and enter a new name. 3. Select the design name from the Designs in Set list. The variable/response values will be displayed in the Values for Design window. 4. Define values that are needed for each of the variables or responses.
Description Enable this option to specify response values. This is useful if the design was already evaluated outside of HEEDS and you have results for it. Typically, to use the design in its search, HEEDS MDO will evaluate a design and then calculate the values for the response variables. However, if the design evaluation takes a long time, you may want to specify the response values for the design being added so that HEEDS does not have to perform the evaluation to get the response values. In this case HEEDS MDO uses the response values you specified, saving the time it would have taken to evaluate the design. Note: You can specify the response values for a design only if the Specify response values option is selected. In this case, the values must be specified, or the design will be ignored by HEEDS MDO as an error input.
262
www.redcedartech.com
Description If this option is not selected, the design variable values that you specify here will be evaluated as you entered them. If this option is selected, HEEDS will map the variable values to the closest value represented inside HEEDS based on the variable resolution you specified.
www.redcedartech.com
263
After you click the Submit button, all of the options allowing you to modify the design set will be disabled. This prevents you from making changes that would cause the values in the HEEDS Modeler to potentially be different from the ones used by HEEDS Solver. There is no limit on the number of sets that you can create and submit to the HEEDS MDO study.
264
www.redcedartech.com
www.redcedartech.com
265
266
www.redcedartech.com
evaluation function that is used and (2) the type, range, and number of variables and responses that have been defined. The best search method to use depends upon the characteristics of the design space that has been defined. However, it is often difficult, if not impossible, to know the type or character of a design space without first exploring it rather thoroughly, which is the primary role of the search method. There are three possible answers to this dilemma: 1. If you have some experience solving design problems similar to your current one, you may know which method(s) worked well in the past. Often, this is a good place to start, assuming that your current design problem statement is very similar to that of the previous design problems. 2. If you have sufficient experience and expertise with a particular type of method, you may understand how to redefine your current design problem in such a way that this method will work effectively. Unfortunately, this approach may force you to modify your design problem statement or to reduce the problem scope to better match the capabilities of the chosen method. In doing so, you may, perhaps, sacrifice some of the design goals that might have been realized by solving the original intended design problem. This is an example of the tail wagging the dog. 3. If you dont know which search method is likely to be the best one for your design problem, you can use the default search method SHERPA, which is available only within HEEDS MDO. SHERPA, which is an acronym for Systematic Hybrid Exploration that is Robust, Progressive and Adaptive, is a hybrid and adaptive search strategy that works well on many classes of design problems.
www.redcedartech.com
267
2. The Methods Manager will appear in the panel below the Agent Graph:
3. To define a method, select the method you want to use from the list, and click to display and set its attributes.
Using SHERPA
SHERPA is a proprietary hybrid and adaptive search strategy available within HEEDS MDO. During a single parametric optimization study, SHERPA uses the elements of multiple search methods simultaneously (not sequentially) in a unique blended manner. This approach attempts to take advantage of the best attributes of each method. Attributes from a combination of global and local search methods are used, and each participating approach contains internal tuning parameters that are modified automatically during the search according to knowledge gained about the nature of the design space. This evolving knowledge about the design space also determines when and to what extent each approach contributes to the search. In other words, SHERPA efficiently learns about the design space
268
www.redcedartech.com
and adapts itself so as to effectively search all sorts of design spaces, even very complicated ones. SHERPA is a direct optimization algorithm in which all function evaluations are performed using the actual model as opposed to an approximate response surface model. Because all of the parameters within SHERPA are tuned internally, there are no attributes to define for this method, except the number of evaluations you wish to perform.
Using MO-SHERPA
MO-SHERPA (Multi-Objective SHERPA) is designed to be used with projects with multiple objectives when those objectives conflict with one another. It works fundamentally like SHERPA but has the advantage of handling multiple objectives independently of each other to provide a set of solutions, each of which is optimal in some sense for one of the objectives. Conventional parameter optimization methods take all objectives into consideration and provide solutions based on the weighted sum of all objectives. If all objectives get
www.redcedartech.com
269
better or worse together, the conventional method can find the optimal solution. However, if the objectives conflict (as, for example, weight and load-carrying ability typically do), the tradeoff can be explored using the multi-objective approach called Pareto optimization.
270
www.redcedartech.com
Note: The MO-SHERPA method also calculates the weighted-sum performance for all evaluated
designs and returns the best design based on the weighted-sum performance, although it is not used as a criterion for determining the values used in future designs during the search. However, if your normalizing coefficients for your objectives are reasonable, it may be beneficial to also examine some of these designs to see how the weighted solutions compare with the Pareto front results.
You can control the search by limiting the number of evaluations, enabling or disabling automatic termination, and defining the archive size:
Attribute Max Number of Evaluations Description The maximum number of evaluations that you want HEEDS MDO Solver to perform. The minimum number of evaluations needed for valid results is 400 500. If you do not have time to run that many evaluations, you should use a weighted-sum method instead. A flag that determines when the project will stop: Off On The run will continue until the maximum number of evaluations has been performed. The run will stop if there is a convergence of the Pareto front.
Automatic Termination
www.redcedartech.com
271
Description The maximum number of designs in the Pareto set at any time. If there are not enough designs in the Pareto set with rank 1, the archive is filled with rank 2 or below. The number you specify will be the number of designs that will be archived at the end of each cycle and the maximum number of designs that that will be included in the set at the end of the run. A larger archive size typically produces better designs, but only if you increase the number of evaluations as well. Recommended archive sizes: Minimum archive size Minimum recommended size Maximum recommended size 6 12 Number of evaluations 40
As a general rule, the optimal archive size can be calculated using the following: Number of evaluations 100
272
www.redcedartech.com
2. Replace the current value with the number of designs you want included in the Pareto set. OR 1. Delete the current value and press Tab or Enter to restore the default value.
www.redcedartech.com
273
Evaluation control
For a genetic algorithm search, you can specify the number of cycles you want to perform, the number of generations per cycle, and the population size. The population size controls the number of designs maintained at any time to use as parents of new designs. Together with the crossover and mutation rates, it determines the number of designs that are evaluated during each generation. At the beginning of a generation, HEEDS MDO Solver multiplies the population size by the crossover rate and/or the mutation rate and generates that number of new designs. These designs form the basis of the evaluations that will be run during that generation. A smaller population size will run more quickly. A larger size may give better results.
274
www.redcedartech.com
Mutations
One of the ways that the genetic algorithm determines what design values it should use is through mutation. Values for a given evaluation are changed based on what was most successful in previous evaluations. Two attributes control the number and type of mutations performedthe mutation type and the mutation rate. The mutation type is the mutation search method used. The mutation rate is the percentage of the population to which the mutation is applied.
3. To change the mutation rate, click twice on the Mutation Rate field to highlight the current value. Then do one of the following to change the value: Enter the percentage of the population size you want to mutate as a decimal number (e.g., 20% would be specified as 0.2). It will replace the current value. Delete the value, and press Tab or Enter or click on another field to restore the default value.
Crossover
The crossover method is another method of changing variable values. With crossover, selected values from two parent designs are recombined (i.e., crossed over) to produce a new design.
www.redcedartech.com 275
Two attributes control the crossoverthe crossover type and the crossover rate. The crossover type is the crossover search method used, and the crossover rate is the percentage of the population size to which the crossover is applied.
Description Variables from two parent designs are swapped around one point in the design, resulting in two offspring. Variables from two parent designs are swapped around two different points in the design, resulting in two offspring. One offspring is created by randomly picking values for each variable from either parent. A second offspring is created from the variables that were not picked for the first.
3. To change the crossover rate, click twice on the Crossover Rate field to highlight the current value. Then, do one of the following to change the value: Enter the percentage of the population size you want to cross over as a decimal number (see above). It will replace the current value. Delete the value and press Tab or Enter or click on another field to restore the default value.
Selection type
The selection type attributes determine how the parents will be selected for crossover or mutation by the genetic algorithm.
276
www.redcedartech.com
Description The number of designs specified by the tournament size is picked at random and the best design among them is selected as the parent. Each design is selected with probability proportional to its relative fitness but in a variance reduction scheme that guarantees at least one sample for each design of above average fitness. Designs are selected with probability scaled according to their ranks in the population. Linear scaling may be adjusted to give all designs equal probability or to scale probabilities linearly from best (highest probability) to worst (lowest probability), with an arbitrary scale factor (probability of best/probability of median). Stochastic Universal Sampling is used on the scaled probabilities.
If you selected Tournament and you want to change the tournament size, click twice on the Selection Parameter field to highlight the current value. Then do one of the following to change the value: a. Enter the new value as an integer. It will replace the current value. b. Delete the value and press Tab or Enter or click on another field to restore the default value.
During a single NLSQP iteration, the total gradient of the design metrics with respect to the continuous variables is calculated. Each gradient is approximated with a forward differencing scheme. Based on the total gradient, line searches are performed. A line search is essentially a sampling along a line through a given point. An iteration includes gradient evaluations from a new point and the line searches from that point.
Search control
You can place a limit on the number of line searches that will be made to try to find a better design and also on the number of iterations:
Attribute Iterations Line Searches Description The maximum number of iterations that the NLSQP search will perform. The maximum number of line searches that will be made during an iteration.
278
www.redcedartech.com
www.redcedartech.com
279
Temperature control
The temperature values define the standard deviation that will be searched based on a given variable:
Description The maximum percentage standard deviation that can be used to perturb the variables. This value must be greater than 0.0 and less than or equal to 1.0. The minimum percentage standard deviation that can be used to perturb the variables. This value must be greater than or equal to 0.0 and less than 1.0. The number of steps between the starting and ending temperatures.
Ending Temperature
Temperatures
4. Replace the current value with the deviation percentage of your choice as a decimal number. The value must be greater than or equal to 0.0 and less than 1.0.
Search control
You can control the length and duration of the search by limiting the number of iterations per temperature and the number of evaluations:
Attribute Iterations Number of Evaluations Description The maximum number of iterations allowed per temperature. The maximum number of evaluations that can be made during a simulated annealing search.
www.redcedartech.com
281
282
www.redcedartech.com
www.redcedartech.com
283
2. Press Tab or Enter or click on another field, and the default value will reappear.
284
www.redcedartech.com
www.redcedartech.com
285
2. Change the default value in the Max Evaluations field to the maximum number of evaluations you want to perform.
286
www.redcedartech.com
www.redcedartech.com
287
Description This value is the size of the population. It is the number of designs evaluated and explored in every single cycle (generation). This value is the number of cycles that the search will be performed for. Within each cycle, every design in the swarm/population is modified based on PSO techniques and reevaluated.
Note: The maximum number of design evaluations for a given optimization setup will be the Number of Generations x Number of Designs in Swarm.
288
www.redcedartech.com
Description The best design over all the iterations that have been performed so far. The typical value is 2. Each design in the population or the swarm has its own personal best, so this is the best that that particular design ever was in any of the generations that have been completed so far. The typical value for Personal Best is 2. Local Best tracks the best iteration within a neighborhood around a given design. If you are looking at Design A, the Local Best will be the best iteration in the neighborhood of Design A, a few iterations behind and in front of that design. Local Best is not used by default, but if you want to use it, we recommend using a relative factor between 0 and 2, although higher values can be used.
Local Best
Neighborhood Size
This value determines the size of the neighborhood for the Local Best. The neighborhood size is an integer value which specifies the number of designs that are looked at on both sides of the design. The typical value for Neighborhood Size is around 10-20 % of swarm size. A very big value will make it approach global best and a very small value becomes almost the same as personal best.
Note: The values of the acceleration constants are typically defined between zero and 2. A value of zero would mean that that particular design does not have any influence in generating new designs.
www.redcedartech.com
289
290
www.redcedartech.com
Search control
You can control the search by setting the maximum number of evaluations that can be made during the optimization search and by specifying a starting simplex size:
www.redcedartech.com 291
Description The maximum number of evaluations that can be made during a Nelder Mead Simplex optimization search. This is not the total number performed; it is the maximum that can be performed. This is a number between 0 and 1. It specifies the fraction of the overall variable range that is used to offset the starting design to create the starting set of designs. Nelder Mead needs N+1 designs to start the optimization search where N is the number of design variables. One design is your starting design and the other N designs are generated by changing the value of one variable at a time based on the value specified in the Starting Simplex Size. Each new design of those N designs is generated by only modifying one variable, and the amount by which the variable is modified is determined by the Starting Simplex Size.
292
www.redcedartech.com
www.redcedartech.com
293
Screening DOE
In the past, DOE studies were often used prior to running a parameter optimization to find out which variables have the greatest effect on the baseline design. This was referred to as screening the design space, since the results of the DOE study would be used to select a limited number of design variablesthose that impact the baseline design the greatestfor the subsequent parameter optimization study. If the ranges of the design variables in the optimization are very small, so that the study qualifies as a local search intended to provide only incremental improvement, using screening prior to optimization is a valid approach. However, it may not necessarily be more efficient than doing a parameter optimization from the beginning based on all existing variables. On the other hand, when a global optimization search is performed over a broader range of the variables, the results of a screening DOE around one particular design in the design space may provide misleading information. A baseline design candidate in one region of the design space may be very insensitive to variables that strongly affect designs in the neighborhood of the optimal design. A screening DOE performed on that baseline design could lead to inaccurate conclusions about the design sensitivities of the optimal design. This could result in a design optimization study that does not include the most important variables. Thus, it might not be able to identify the optimal design.
www.redcedartech.com
295
In the latter case, it would be more beneficial to perform a parameter optimization study instead. If you are in doubt about whether a design variable should be included in a parameter optimization study, it is often more efficient to include the variable in the search than it would be to perform a separate DOE study to justify its inclusion or omission, especially in the case of global searches.
296
www.redcedartech.com
performed for a Taguchi RPD study is M x N, where M is the number of runs required for the control orthogonal array and N is the number of runs required for the noise orthogonal array. As an example, if there are 3 control factors, all at two levels, and 2 noise factors, each at 2 levels, and both the control and noise factors are using full-factorial sampling, the total 3 2 number of runs for the Taguchi RPD problem would be 2 x 2 = 32 (as shown in the following figure):
Signal-to-Noise Ratio
Taguchi proposed the use of Signal-to-Noise Ratio (SNR) as the primary measure of the robustness of a design. The signal-to-noise ratio is a quantity that measures the robustness of the response by using both the mean and the variation of the response. SNR is essentially a ratio of the response value to the variation in the response. A larger SNR value corresponds to higher design robustness. The formula used to calculate the SNR depends on how you want a particular response to behave (i.e., your goal for that response). Some of the most common goals for responses are: Smaller is better, Target is best, Nominal is best and Larger is better.
www.redcedartech.com
297
eliminated, which can save a tremendous amount of time. Two of the most commonly used DOE types for response surface DOE are Central Composite and Latin Hypercube.
Agent variables
The variables used for the DOE factors may be either continuous or discrete. You do not have to use all the project variables you define in a DOE study. You ultimately pick the ones you want to use for factors when you assemble your project. Values are pre-assigned to the factors and used in different combinations for each evaluation as specified by the DOE matrix. The number of values assigned to each factor is determined by the number of levels in the DOE method selected.
Continuous variables
By default, a DOE uses the minimum value you specify as its low value and the maximum value as the high value. The default selection of values in a DOE is based on these two values. With the exception of the Latin Hypercube method, which treats the factors as continuous variables, the DOE matrix may include two, three, or five levels of values, calculated from your minimum and maximum. For a three-level method, the default mid value is the midpoint of your defined range. The central composite sampling method (fivelevel DOE) calculates the star high and low points from the high and low values. You can override the default assignments when you assemble your project.
Discrete variables
When discrete variables are used as factors for a DOE agent, the values are arbitrarily assigned default levels based on their position in your discrete set. For a two-level DOE, the first value in your discrete set becomes the default low value and the second, the default
298
www.redcedartech.com
high value. For a three-level DOE, the first value becomes the low value, the second the mid, and the third the high. For the central composite sampling method (five-level DOE), the first becomes the low star-point, the second the low value, the third the mid value, the fourth the high value, and the fifth the high star point. As with continuous variables, you can override the default settings during project assembly.
Note: Because of the way a directed DOE treats continuous variables, you should, in most cases,
define variables that are limited to specific values as discrete, even if they are evenly distributed, to avoid the selection of invalid values for the mid and star points. If you use a custom DOE setup, you can override the defaults. More information is given in Assembling a Screening or Response Surface.
Other variables
If you have tagged any parameter variables in your input files, they will not be varied when the design is evaluated. This is also true of any continuous or discrete variables that you do not use as factors. During the analysis, untagged continuous, discrete, and parameter variables will be assigned the baseline value that you entered when you defined the variable on the Variables tab. Dependent variables will, as always, be calculated.
Agent responses
A DOE analysis result shows the influence of the factors (variables) or factor combination on each of your responses. Unlike a parameter optimization study, a DOE study does not use objectives or constraints. All it cares about is how changes in the variables selected as factors affect a given response value. The more variation there is in a response for a given factor, the more influential that factor is on your design. When Taguchi Robust Parameter Design is used, you will need to specify the goals for each response in order for HEEDS MDO Solver to properly calculate the signal-to-noise ratio.
www.redcedartech.com
299
You want to find which of the above factors have the greatest effect on the following: Mass Cost Maximum strain under a given load Displacement under a given load You would define a response for each of the above and a discrete variable for each factor. Then, when you set up your DOE, you would designate each variable as a factor. The results will allow you to determine whether it is best to use a cheaper material or to relax the tolerances on tube thickness and/or fiber orientation.
300
www.redcedartech.com
Mass of the total structure Maximum displacement under a given load Maximum stress under a given load Your DOE study will have 15 variables (one for each thickness) and a response for each of the above elements. The results will show the effect that varying each thickness will have on each of the responses so you can determine which members can be decreased in thickness without significantly affecting the structural response and which members require tighter tolerances.
www.redcedartech.com
301
3. The agent will be removed and the agent group button will look like this:
302
www.redcedartech.com
4. Click on the Agent Group button to add the new agent. 5. Note that the new agent also appears in the Agents tree.
www.redcedartech.com
303
The responses are read-only. No input is needed for the DOE. To display the agent variables, click on the Variables button:
The information in this window is also read-only. It will be filled in when you define your factors. All variables that are tagged in the process you have associated with the agent will be displayed here. However, only continuous and discrete variables will appear as choices when you select your factors.
304
www.redcedartech.com
4.
Click Next, and the screen for setting your project attributes will appear.
www.redcedartech.com
305
To select all the variables in the list, check the box in front of the Variable column. 2. HEEDS MDO Modeler will assign factor names (A, B, C, etc.) to the variables you select, in the order they appear in the list. You can change the name by changing the order: a. Right-click on the variable you want to move to display the pop-up menu. b. Select Raise or Lower from the menu to change the position of the variable. 3. Enter the maximum number of designs you want evaluated in the Maximum number of designs to be evaluated field. 4. Select the intent of this DOE studyScreening or Response Surface. Your completed screen will look something like this:
5. Click Next and the screen for selecting the DOE method type will appear.
306
www.redcedartech.com
2. The Recommended method is typically the best choice. However, to change it, click on the one you want. 3. Click Next and the DOE matrix for your project will be displayed:
Low value 0 0 0
Mid value 1 Numbers in between represent the different values the factors can have between the high and low values.
www.redcedartech.com
307
Mid value 2
The values used for the high, mid and low points are based on the values entered in your project variable definitions. For more information, refer to About DOE Projects. To see the values that are being used, click the Variables button, and they will be displayed in the Agent Variables window:
308
www.redcedartech.com
3. Click Next, and the screen for selecting your factors and your method will appear:
www.redcedartech.com
309
To select all the variables in the list, check the box in front of the Variable column. 2. HEEDS MDO Modeler will assign factor names (A, B, C, etc.) to the variables you select in the order they appear in the list. To change the order, change their position in the list: Right-click on the variable that you want to move to display the pop-up menu. Select Raise or Lower from the menu to change the position of the variable. 3. Select the method type you want to use from the ones displayed:
4. The number of designs to be evaluated for your selected method will appear in the Number of Designs Evaluated field: If you select a method with two or more choices, a drop-down list will appear in the field, so you can select the number of designs. If you select one of the methods with any underneath, you may enter the number of designs you want to evaluate. 5. Click Next and the screen for defining your factor levels will appear.
310
www.redcedartech.com
The initial values you entered for Min, Max, and Baseline on the Variables tab will be displayed, along with the default high and low values. The default high and low values for continuous variables are the high and low values you entered when you defined the variables. The default high and low values for discrete variables are the first two variables in the discrete set. You may accept the defaults, or enter high and low values of your own.
www.redcedartech.com
311
If you want to enter values for a continuous variable as a percentage of the baseline, enter the percentage in the Low (%) and High (%) cells. 3. To change the high and low values for a discrete variable, click on the Low (Value) and High (Value) cells to display the values in the discrete set and select the value you want. 4. Click Next to view the DOE matrix.
The initial values you entered for Min, Max, and Baseline on the Variables tab will be displayed along with the default low, mid, and high values. The default high and low values for continuous variables are the high and low values you entered when you defined the variables. The mid value will be the midpoint of your range. The default low, mid, and high values for discrete variables are the first three variables in the discrete set. You may accept the defaults, or enter high, mid, and low values of your own.
312
www.redcedartech.com
www.redcedartech.com
313
314
www.redcedartech.com
3. To change the values for a discrete variable, click on the Low Star (Value), Low Corner (Value), Center (Value), High Corner (Value), and High Star (Value) cells to display the values in the discrete set and select the value you want. 4. Click Next to view the DOE matrix.
Importing designs
To use the Use Existing Designs method, you need to import a file containing data for the designs you want HEEDS MDO to evaluate. About the import file If you are importing designs from another HEEDS MDO study, you can import the HEEDS MDO *.res file from that study. It will already be correctly formatted. If the file is not a HEEDS MDO *.res file, it must follow these formatting rules: The first row of the file (the header row) must contain the names of the variables and responses that correspond to the data in the columns. Beginning with the second row, the file must be organized such that each row represents one design and each column contains a variable or response value for all designs. All fields in the file must be separated by a comma. The file may contain extra columns; HEEDS MDO will ignore these.
To import designs
1. Click the Import designs button. An Open dialog will be displayed. 2. Select the desired file, and click Open.
www.redcedartech.com 315
3. The design data will be displayed in the DOE Methods Manager. This is a read-only display of the data, which means that it cannot be directly edited. If you wish to edit the data, see Editing design data on page 346.
Important: Using the Import option will replace any existing data in the DOE Methods Manager with the newly imported data. If you want to keep the existing designs and add more designs, use the Add more designs feature.
How errors are displayed Invalid designs will be displayed in red and will not be used by HEEDS MDO. A variable values that is outside of its range (based on the Min/Max definitions on the Variables tab) will be underlined and the entire row will be displayed in red. If a value for a particular variable or response is not found in the import file, it will be displayed in the Modeler as No data.
3. Using a text editor or Excel, edit the design data. 4. Save the file. 5. Click the Import designs button to bring the design data back into HEEDS MDO.
www.redcedartech.com
317
The responses are read-only. The goals for each response will be defined later in the Methods Manager, and then displayed here. To display the agent variables, click on the Variables button. The information in this window is also read-only:
318
www.redcedartech.com
It will be filled in when you define your factors. All variables that are tagged in the process you have associated with the agent will be displayed here. However, only continuous and discrete variables will appear as choices when you select your factors.
3. Click Next. The screen where you will set project attributes will appear.
www.redcedartech.com
319
1. For each of the variables listed, you need to tell HEEDS MDO Solver whether it is a control factor, noise factor, or should be excluded from the experiment. To choose the factor type, click on the Factor Type dropdown next to the variable, and select Control, Noise, or Excluded.
Note: When a variable is excluded from the experiment, its baseline value, as defined in the Variables tab, will be used for every design evaluation.
2. As you assign factor types, HEEDS MDO Modeler will sort the variables into the Control Factors and Noise Factors fields on the right:
320
www.redcedartech.com
3. Click Next, and the screen for selecting the DOE sampling methods will appear.
Note: The options available to you on this screen will vary depending on the number of control and
noise factors involved in the DOE. For example, you must have at least three control factors if you want to use the Taguchi mixed-level method as your control DOE method.
4. On the left side of the screen, select the desired sampling method for control factors. The number of designs to be evaluated for your selected method will appear in the Number of Control Designs Evaluated field. If you select a method with two or more choices, a dropdown list will appear in the field, so you can select the desired number of designs.
www.redcedartech.com
321
5. Similarly, on the right side of the screen, select the desired sampling method for noise factors. The number of designs to be evaluated will appear in the Number of Noise Designs Evaluated field. If you select a method with two or more choices, a dropdown list will appear in the field, so you can select the desired number of designs. 6. Click Next. On the screen that appears, you can change the factor names (e.g., A, B, C) given to variables. Depending on which DOE methods were chose in the previous screen, you may be able to change the number of levels for individual factors.
7. If you chose the Taguchi Mixed-Level method for either factor type (on the previous screen), you can change which factors have two levels and which have three levels. To do this: Click in the Levels column next to a variable, and select 2 or 3 from the dropdown.
322
www.redcedartech.com
Note: The number of two-level and three-level factors in the Taguchi mixed-level arrays is restricted
by the number of evaluations that you chose on the previous screen. For the mixed-level array with 18 design evaluations (either control or noise), the following rules apply: 0-1 two-level factors, 2-7 three-level factors, 3-8 factors total. For the mixed-level array with 36 design evaluations (either control or noise), the following rules apply: 0-3 two-level factors, 4-13 three-level factors, 5-16 factors total.
8. Also on this screen, HEEDS MDO Modeler has assigned factor names (A, B, C, etc.) to the variables you select in the order they appear in the list. To change the order, simply change their position in the list: Select the variable that you want to move by clicking the arrow next to it. Right-click on the variable, then select Raise or Lower from the menu to change the position of the variable:
9. Click Next to move on to the screen where you will define your factor level values.
www.redcedartech.com
323
The initial values you entered for Min, Max, and Baseline on the Variables tab will be displayed, along with the default High and Low values. For continuous variables, the default High and Low values are the high and low values you entered when you defined the variables. For discrete variables, the default High and Low values are the first two values in the discrete set. For any variable, you may either accept the defaults or enter high and low values of your own.
324
www.redcedartech.com
The initial values you entered for Min, Max, and Baseline on the Variables tab will be displayed along with the default low, mid, and high values. For continuous variables, the default high and low values are the high and low values you entered when you defined the variables. The mid value will be the midpoint of your range. For discrete variables, the default low, mid, and high values for are the first three values in the discrete set. You may accept the defaults, or enter high, mid, and low values of your own.
www.redcedartech.com
325
If you want to define specific low, mid, and high values for a continuous variable, enter them in the Low (Value), Mid (Value), and High (Value) cells. If you want to enter values for a continuous variable as a percentage of the baseline, enter the percentage in the Low (%), Mid (%), and High (%) cells. To change the low, mid, and high values for a discrete variable, click on the Low (Value), Mid (Value), and High (Value) cells to display the values in the discrete set and select the value you want. 3. Click Next to define your response goals.
326
www.redcedartech.com
2. Detailed information about each Goal option is given in the following table:
Goal Smaller is better Description Select this as the goal for a response if a smaller value is better for the design performance. The value is always continuous and positive. The best response value for this application is 0. The SNR is based on variance only. Since there is no specific target, finding the best designs involves determining factor settings that maximize SNR. Target is best Select this goal when the response has a target and can take both positive and negative values. The goal is to minimize variation on both sides of the target value. The best response is typically 0. If the target is non-zero, finding the best design involves two steps: control factors are adjusted to achieve the desired response value, and then factors are adjusted that maximize SNR without changing the mean. This goal type assumes that it is possible to identify factors that change the standard deviation without affecting the mean. SNR = -10 * log10(s ) where s =
2 2
SNR Formula
Example Applications Noise in the passenger compartment, corrosion of material, plastic strain in a part.
SNR=
www.redcedartech.com
327
Description Select this goal if the response has a target and can only be positive. This case assumes that the mean and standard deviation are related and not independent. The SNR for this type of problem uses both mean and variance for the calculation. Identifying the best solution for this type of problem is again a two-step process: factor settings are chosen that maximize SNR, and then factors that do not affect SNR significantly are changed to bring the mean value to target.
SNR Formula
Example Applications Achieving a specified uniform thickness during chemical deposition process.
SNR =
Larger is better
Select this as the goal if the response value is always positive and the largest possible response value results in a better design. Since there is no specific target, finding the best designs involves determining factor settings that maximize SNR.
SNR =
No goal
None
Not applicable.
328
www.redcedartech.com
330
www.redcedartech.com
indicate that the design is adversely affected by variations within the known tolerance and is therefore not robust. When performing a reliability study, constraints are set and the study calculates the probability of failure (likelihood that the constraint is violated) with respect to the variation in the parameters.
Sample Scenarios
Robustness and reliability agents examine the effects that known deviations in a component will have on selected responses. For robustness studies, the agent determines the mean value of the response, the amount of variance, and the standard deviation. Based on the result, you can determine if the predicted variation is small enough. For reliability studies, the agent determines the probability of failure. Based on the result, you can determine if the design is likely to fail to meet design specifications in the field.
www.redcedartech.com
331
the bumper deflection exceeds our target for, say, 1 out of every 100 bumpers that are manufactured, then we might want to go back and fine tune the design so that we can get a lower failure rate.
332
www.redcedartech.com
3. The agent will be removed and the agent group button will look like this:
www.redcedartech.com
333
3. Move your mouse to the Agent Graph. The pointer will change to a 4. Place the pointer anywhere on the on the Agent Group button:
5. Click on the Agent Group button to add the new agent. 6. Note that the new agent also appears in the Agents tree.
334
www.redcedartech.com
To see the listed responses, click on the Responses button. For a Robustness study, the responses are read-only. No input is needed.
For a Reliability Analysis study, you will need to define at least one constraint.
The only variables that are actually active in your robustness and reliability project are parameter variables that have stochasticity. At least one variable must have a stochastic distribution for the project to run. Only the baseline value is displayed since no other attributes are used by robustness and reliability agents. If there are other types of variables defined in your project, they will also appear in this list, but they will have no effect on the results of the run. For continuous and discrete variables, the baseline value you specified in the variable definition will be used as the value for the run. Dependent variables will be calculated.
www.redcedartech.com
335
2. The Robustness and Reliability Methods Manager will appear. 3. From the Study Type options, select Reliability Analysis:
4. Click Next. 5. Select the desired technique from the three available Latin Hypercube Sampling, Monte Carlo Sampling, or FORM (First Order Reliability Method):
a. Latin Hypercube Sampling and Monte Carlo Sampling are samplingbased methods, so for these you simply specify the number of evaluations you want to conduct:
336
www.redcedartech.com
b. The third option, FORM , is a Most Probable Point (MPP) type method. For this, you specify the number of evaluations you want to conduct for each constraint you defined in the setup:
6. Finally, you must define at least one constraint in the setup. For instructions regarding defining constraints, see Adding constraint responses on page 252.
www.redcedartech.com
337
2. The Robustness and Reliability Methods Manager will appear. 3. From the Study Type options, select Robustness Study:
4. Click Next. 5. Select the desired technique from the three available Latin Hypercube Sampling or Monte Carlo Sampling:
6. Latin Hypercube Sampling and Monte Carlo Sampling are sampling-based methods, so for these you simply specify the Number of Evaluations you want to conduct:
338
www.redcedartech.com
www.redcedartech.com
339
www.redcedartech.com
341
weighted objective optimization studies. Without objective and constraint definitions, all designs are treated as equal.
3. The agent will be removed and the agent group button will look like this:
342
www.redcedartech.com
2. Move your mouse to the Agent Graph. The pointer will change to a pointer on the agent group button: 3. Place the pointer anywhere on the button:
. Place the
5. Note that the new agent also appears in the Agents tree:
www.redcedartech.com
343
344
www.redcedartech.com
Evaluation Method
To display the Evaluation Methods Manager, click on the Methods button in the Agent Graph.
Importing designs
To use the Evaluation method, you need to import a file containing data for the designs you want HEEDS MDO to evaluate.
www.redcedartech.com
345
To import designs
1. Click the Import designs button. An Open dialog will be displayed. 2. Select the desired file, and click Open. 3. The design data will be displayed in the Evaluation Methods Manager. This is a read-only display of the data, which means that it cannot be directly edited. If you wish to edit the data, see Editing design data on page 346.
Important: Using the Import option will replace any existing data in the Evaluation Methods Manager with the newly imported data. If you want to keep the existing designs and add more designs, use the Add more designs feature.
346
www.redcedartech.com
www.redcedartech.com
347
www.redcedartech.com
349
The following entry would create a subdirectory for your evaluations called Coarse_Agent in the project directory: c:\HEEDS MDO\CBeam\Coarse_Agent The following entry would store the evaluations in the HEEDS MDO_0 folder in the Temp directory on a Windows system: c:\Temp\HEEDS_0 The following path would store the evaluations in the Coarse_Agent folder in the Run 1 subdirectory of the Beam Problem directory on a Windows system: c:\Beam Problem\Run 1\Coarse_Agent
3. Type the new directory name and path in the field. It will replace the current value.
Important: If you are running in Windows and your path has spaces in it, do not enclose the path in
quotes. HEEDS MDO Solver takes care of this internally.
350
www.redcedartech.com
Parameter optimization agents For parameter optimization agents, you have the following choices for saving files:
Option Latest Best Description Saves all of the input and output files from the last best design that HEEDS MDO Solver finds during the run. At any time during the run, the files for the best design so far will be available. Saves all of the best designs. Each time that HEEDS MDO Solver finds a design that is better than any it has found before, it saves the input and output files. Saves the input and output files for all designs that are evaluated in the run.
The Latest Best is the default and is a good choice if you have limited disk space. If you have enough disk space, you may want to save All Best or All instead. Then you will be able to examine files for more than one design and compare them with each other and/or look at them in the post-processing tools provided by your analysis package.
Note: If you are using MO-SHERPA, you should be aware that the designs saved are based on
performance and not the Pareto front, so the designs in the final Pareto front are not necessarily included in the best designs.
www.redcedartech.com
351
3. Select your choice from the drop-down list. DOE and robustness and reliability agents For DOE agents and robustness and reliability agents, you have the following choices for saving files:
Option None All Description Does not save any design input and output files. Saves input and output files for all designs.
If you have use for the actual output files generated as a result, you may want to save them. If you only care about the post-processing results from the HEEDS MDO run, there is no reason to save the designs.
To select the saved designs option for DOE and robustness and reliability agents
1. Select the agent in the Agent Graph. 2. Click on the in the Saved Designs field to display the list of choices:
352
www.redcedartech.com
www.redcedartech.com
353
3. Type the new prefix in the field. It will replace the current value.
354
www.redcedartech.com
Description The restart data will be saved after every design evaluation. The restart data will be saved only at the end of each cycle, which is a set of designs.
www.redcedartech.com
355
Note: A small number of unsuccessful evaluations do not affect the search algorithm adversely in any
way. However, a larger number of unsuccessful evaluations will affect the search because fewer designs will be evaluated.
Note: The other options in the Agent Group Manager have special uses for different types of runs
and will be discussed later.
Representationn.in
Performancen.in
Assembly.in
Mapreps.in
Processn.in
Agent_Group_n.in
www.redcedartech.com
357
These files are placed in your project directory, which is the directory where you saved your HEEDS MDO project. While HEEDS MDO Solver runs, it creates a number of working files, most of which you do not need to interact with. However, the ones of interest are as follows:
File HEEDSn.plot Description Contains the results for the best designs found by agent n. HEEDS MDO Solver starts by writing the first design to the file. Then each time it finds a design that is better than the last, it adds that design to the file. At any time during the run, the last entry will be the best design found so far. In addition to the best designs, HEEDS MDO Solver also writes out any unsuccessful designs (designs for which the Solver was unable to extract the results) to this file. Contains the performance rating, the values of the project variables, and the values of the responses for all best designs. Contains the results for every evaluation that is performed during the run. It includes the performance rating, the values of the project variables, and the values of the responses.
HEEDSn.gph HEEDSn.res
If more than one agent is used during the run, there will be a set of files for each agent. You can examine these files during a run, for more detailed information about how the run is progressing, as well as after the project ends.
Important: While the run is in progress, these files should only be opened in a text editor that does not lock the file from being written to (e.g., Notepad, Wordpad, Vi, Gvim, and Textpad). Do NOT use Excel or other tools with similar behavior, as this will stop the run.
358
www.redcedartech.com
To run your project for the first time from the Modeler
1. On the Assembly tab, in the Agent Group Manager, leave the Backup existing results check box unchecked, as there are no results to back up. 2. If you have more than one agent group, this option must be set separately for each group. 3. Save your project so the latest run files will be generated.
www.redcedartech.com
359
4. Display the Run tab, and click the Run button to start the project. A command prompt window will appear for each agent group. Single-processor projects usually have only one. 5. After you start the project, you can close the Modeler if you want or work on another project. You can reopen the running project at any time to view the progress.
Warning! Do not close the command prompt window or the run will stop. If you need to get the
command prompt window out of the way, click minimize it. in the upper right corner of the window to
360
www.redcedartech.com
Note: The random seed only affects certain parameter optimization methods and robustness and
reliability projects. For other types of projects, it is ignored.
When you run a project again, the previous results are ignored. However, you can save your previous results to reexamine them if necessary. The Backup existing results option takes the results from your previous run and moves them to a backup folder in the project directory.
Note: Backed up results files are never overwritten. Each time you choose to back up results, they
are written to a different directory. The folder name contains the date and time the files were backed up.
www.redcedartech.com
361
Button No
Description To abort the run. The run will be aborted so you can choose Backup existing results before continuing.
6. After you start the project, you can close the Modeler if you want or work on another project. You can reopen the running project at any time to view the progress.
Warning! Do not close the command prompt window or the run will stop. If you need to get the
command prompt window out of the way, click minimize it. in the upper right corner of the window to
Note: If you have not made changes to the project and do not change the random seed, your results
will not be noticeably different from the previous run.
Restarting a run
There may be occasions when you want or need to restart a run. By using one of the Restart options instead of simply rerunning the project, you can make use of the results from the previous run instead of restarting from scratch. When you restart a run, the current results will be backed up automatically. The results for that run will be used but only the results for the new run will appear in the results files in the project directory. To restart a project run, you have two optionsContinue or Extend: If your run is terminated before completion, you can continue the run from the evaluation where it left off using the Continue option. Continuing a run is only available for parameter optimization, DOE, and robustness and reliability projects. In some cases, you may run a parameter optimization project to completion but think it could still find better designs if it ran a little longer. In this case, you can use the Extend option to extend the current run instead of starting a new run from scratch. This option is only available for parameter optimization projects using SHERPA, Genetic Algorithm, or MO-SHERPA. You cannot extend DOE or robustness and reliability projects.
Continuing a run
The Continue option allows you to restart a run from where it left off after an interruption (for example, if you accidentally closed the command prompt window). When you continue a run, the Solver skips to the evaluations that have not been performed yet, but uses the results from the evaluations that have already run.
362
www.redcedartech.com
In most instances, you will use the Continue option to simply finish a run that has been interrupted. If this is the case, do not change your project setup (unless you want to increase the number of evaluations).
Note: If you change the number of evaluations, HEEDS MDO Solver will complete that many evaluations for the project. For example, say that you set up a project to run 100 evaluations. If the run terminates with only 21 evaluations done, and you leave the number of evaluations set to 100, 79 evaluations will be performed when you continue the run. If you change the number of evaluations to 150 before continuing the run, 129 evaluations will be performed (the 79 remaining from the original run plus the 50 more you added).
The Continue option may also be used to rerun a project using the previous results. In such cases, you may want to make changes to the search method, the number of evaluations, or the random seed:
You may change the Number of evaluations or any parameters having to do with the number of evaluations. Search method. Random seed (not recommended for continued runs). Do not change Variable or response definitions. The state file prefix. Process definitions or tagging.
Important: Do NOT change the random seed if you are continuing a run that was interrupted, as it
will not be the same HEEDS MDO Solver run, even if you dont change anything else. The random seed should be changed only in cases where you choose to rerun a project to get different results, but still want to use the results from a previous run.
To continue a run
1. Make any changes you want to make to the project. Only the following can be changed: Number of evaluations or values that determine the number of evaluations (e.g., number of cycles for the Genetic Algorithm method). Search methods (parameter optimization only). Random seed (not recommended for continued runs).
www.redcedartech.com
363
Note: This first step is optional. If you simply want to finish the run that terminated, skip to step 2.
2. In the Agent Group Manager, check the Restart box. The Backup existing results option will be checked automatically, and the Continue and Extend radio buttons will become available for selection:
3. Select Continue. 4. Save and run the project. A warning message may appear (depending on how the first run was stopped):
To run the project, click Yes. If you decide not to continue the run, click No. 5. If you click Yes, a command prompt will appear. The project will continue from the evaluation where it left off.
364
www.redcedartech.com
Extending a run
You may want to extend a run that has been completed to find better results. If your project is a parameter optimization project using SHERPA, Genetic Algorithm, or MO-SHERPA, you can use the Extend option. While Extend is specifically designed to extend a run that has already been completed, it may also be practical to use it to continue a run in cases where a large number of evaluations have been completed. In such cases, it is often faster to extend a run than continue it because all of the HEEDS MDO Solver calculations will have already been made and the unsuccessful evaluations will be skipped. Before a run can be extended, one cycle needs to be completed from the previous run. To determine if one cycle has been completed, open the project directory and see if the .ckp file exists. If it does, you can extend the run.
Important! When you extend a run, you cannot make any changes to your project except for the
number of evaluations.
To extend a run
1. In the Agent Group Manager, check the Restart check box. The Backup existing results check box will automatically be checked and the Continue and Extend radio buttons will become active:
www.redcedartech.com
365
3. In the Methods Manager (on the Assembly tab), enter the number of additional evaluations you want to do in the extended run for each agent in the group. 4. Save and run your project.
Hint: If your parameter optimization run uses something other than the SHERPA, Genetic Algorithm, or MO-SHERPA methods, or if you want to extend a DOE run, you cannot use Extend. However, you can simulate an extension with Continue.
To extend a run with Continue, do the following:
1.
2. 3.
Increase the number of evaluations by the number you want to extend by (e.g., if you want to run 50 more evaluations and your original number was 100, enter 50 and HEEDS MDO Solver will do 50 more evaluations for a total of 150). Select the Restart and Continue options. Save and run your project.
Monitoring a Run
The command prompt window can be used to monitor the status of your run. While a project is running, each evaluation event is logged on the screen. From this screen, you can determine if your project is running and approximately where it is in your run.
Note: You can also monitor the in-process results of your run through the Run tab displays (see
page 368). For some projects, looking at the post-processing results may also be helpful.
Stopping a run
If you want to abort a running project, you must do so from the command prompt window. You can stop a run at any time. You may wish to do this if you are satisfied with the results, if the results so far indicate that the design should be reconfigured, or if you do not have time to let the run flow to completion. You can also pause a run and then choose whether to continue it or not. Usually, it is best to pause the run first, even if you intend to abort it.
366
www.redcedartech.com
Note: For projects with more than one agent group, each agent group needs to be stopped
individually to stop a HEEDS MDO Solver run.
To pause a run
1. Make the command prompt window active by clicking on the title bar. 2. Press Esc. The run will pause after the current evaluation is done. 3. Two options will be displayed on the screen:
4. You may keep the run paused for as long as you need to. While it is paused, you can look at the results so far on the Run or Post tab or look at the results files. When you are ready to continue, type the option you want E1 stops the run. E2 continues the run. 5. Press Enter.
www.redcedartech.com
367
To stop a run that was initiated from within the Modeler without pausing it
1. Display the command prompt window if you have minimized it. 2. Click the in the upper right corner to close the window. When the window is closed, the run will stop.
Note: If a run is terminated without using the Esc key, any evaluations that are in progress will
continue to run. You will need to abort the evaluations manually if you do not want to wait for them to terminate.
368
www.redcedartech.com
3. If you have more than one agent, each agent will have its own thumbnail:
www.redcedartech.com
369
4. To view the full-scale performance plot for a given agent, click on the thumbnail. The plot will appear below:
The line shows how well the objective(s) are doing and how close the constraints are to being satisfied. If you are trying to minimize an objective, the value should get progressively lower. If you are trying to maximize it, it should get higher.
Note: To view updated results you must click the Update button.
370
www.redcedartech.com
3. To view the full-scale plot for the variable, click on the thumbnail. The plot will appear below:
www.redcedartech.com
371
The dots in the plot represent the values of the selected variable for each design. For DOE and robustness and reliability projects, only the variable selection is shown. For parameter optimization projects, the value of the selected variable for the best design so far will be plotted. For continuous variables, you will also see lines representing the maximum and minimum values and the baseline. If your project has more than one agent, a thumbnail plot will appear for each agent that contains the variable. When you click Update, all the thumbnails will update. To view the fullscale plot for the variable for a particular agent, click on the thumbnail for that agent. If the variable is not used for a given agent, the button will be blank.
372
www.redcedartech.com
3. To view the full-scale plot for the response, click on the thumbnail. The plot will appear below:
The dots in the plot represent the response values for each design. No other information appears for DOE and robustness and reliability projects. For parameter optimization projects, the value of the response from the best design found is plotted. Plots for constraint responses also display a line showing the constraint. If your project has more than one agent, a thumbnail plot for the response you select will appear for each agent in which it is used. When you click Update, all the thumbnails will update. To view the full-scale plot for the response for a particular agent, click on the thumbnail plot for that agent.
www.redcedartech.com
373
374
www.redcedartech.com
23. Troubleshooting
Certain types of problems prevent HEEDS MDO Solver from running at all. Usually, these are setup related. If results cannot be extracted from the first evaluation, HEEDS MDO Solver will stop, unless you have enabled the Skip first evaluation results check option in the Agent Group Manager, because it assumes that the problem was caused by a user error. However, as long as it is able to extract data from the first evaluation, HEEDS MDO Solver will continue to run, regardless of whether any subsequent evaluations were successful. Any unsuccessful evaluations are logged in the agent group message file (the .MES file displayed on the Run tab). You should check the message file periodically to make sure that your evaluations are running correctly.
Note: If you are running a project with more than one agent group, the groups will work
independently, so if one agent group does not run, the others are not affected. Troubleshoot each agent by following the procedures below.
www.redcedartech.com
375
4. The output file in the message indicates where the error occurred. Continue troubleshooting with step 5. 5. Check the Command To Execute for the analysis that produces the output file to make sure it is correct. a. Be sure to check for misspellings and errors in the path to the executable. b. If the command line is incorrect, correct the error(s) and run the project again. c. Otherwise, continue with step 6.
6. If the command line has no errors, check to make sure you have included all input files needed for the evaluation. a. All input files used for your baseline design are required, even if they do not contain any project variables. The M_ (marking), P_ (portal) versions of your tagged input file(s) and all untagged files must be in the project directory. If any are missing, add them to the appropriate analysis and rerun the project. b. Otherwise, continue with step 7. 7. If the problem is not in the evaluation definition, go to the evaluation directory and open the design folder mentioned in the error message. (If you are only saving the latest best design, the folder may be named Design1-ERROR). a. Open the different analysis folders and check the output files (if any) for clues as to what might be causing the problem with the input files. b. For further information, check the Tooln_out.msg file for possible clues. This file contains the messages that would be written out to a command prompt window if you were running the project manually.
376
www.redcedartech.com
8. If you find a problem in any of the input files, you will need to update the files. After you make your changes to the original input file, go to the Tagging tab and update the file (see page 135 if you do not know how). Then, save the project and run the project again. 9. If you find no problems, it could be that the first evaluation was unsuccessful for other reasons than an erroneous setup. Examine the input file for the design to determine if the problem was caused by an illogical combination of variable values: If it was not, the error is probably in the input file. Fix the error as directed in step 5 and run the project again. If it was, enable the Skip first evaluation results check in the Agent Group Manager and run the project again. Monitor evaluations and stop the run if there are no successful evaluations after a small number have run.
www.redcedartech.com
377
Part 6 Post-Processing
www.redcedartech.com
379
Viewing results
You can view the contents of the run results files themselves and the contents of any input files and output files that were saved for your designs. You can also view the postprocessing results for all project types except DOE projects at any time during the run. You do not have to wait until the run is completed. DOE projects do not display any results until the project is completed. Post-processing plots can be viewed from within the Modeler for any project. Simply reopen the project in the Modeler and click on the Post tab.
380
www.redcedartech.com
You can also open the plot in a separate window. This is useful if you want to keep it open while you look at another plot for the project or even another project.
www.redcedartech.com
381
2. Find the variable you want to look at. If they do not all fit on one page, use the Next and Back buttons in the bottom right corner to page through them. 3. Right-click on the thumbnail for the variable you want to view to display the pop-up menu. 4. Select Open from the menu and the full-size plot will appear in a window:
382
www.redcedartech.com
www.redcedartech.com
383
2. Find the response you want to look at. If they do not all fit on one page, use the Next and Back buttons in the bottom right corner to page through them. 3. Right-click on the thumbnail for the response you want to view to display the pop-up menu. 4. Select Open from the menu and the full-size plot will appear in a window. 5. To close the window, click in the upper right corner.
384
www.redcedartech.com
The designs
The Designs tab contains information about the best designs found during the run. Information is displayed for up to 100 designs:
The designs are ranked in order from 1 to 100 based on performance. For each design, it displays the following information: Evaluation number Design flag Design source Performance rating Values returned by the responses Values assigned to the variables The evaluation number corresponds to the number of the design folder in the evaluation directory that contains the input files used and output files generated (see page 432).
www.redcedartech.com
385
Each line in the plot represents one design. When you first display the plot, you will see all designs. You can show how a design compares to the others by selecting the evaluation number from the Evaluation list:
386
www.redcedartech.com
The design and its associated variables and responses will be highlighted in the plot:
www.redcedartech.com
387
You can control the evaluations that are included and the variables and responses that appear in the plot with two filtersthe Evaluation Filter and the Response/Variable Filter: The Evaluation Filter for all weighted-sum parameter optimization methods allows you to filter the evaluations into one of three subsets (classes)feasible, infeasible, and error. For projects using the Genetic Algorithm method, you can also filter designs by cycle number. The Response/Variable Filter allows you to select specific variables and/or responses to view in the plot. You can also change their order and range. These two filters work together to narrow down the display to the results you want to view in the plot.
Note: MO-SHERPA optimization projects have additional filtering options, which are explained on
page 409.
Select All to view all design evaluations. Select Feasible to view all designs that meet the constraints.
388
www.redcedartech.com
Select Infeasible to view all designs that did not meet one or more of the constraints. Select Error to view designs for which results could not be extracted. 2. For parameter optimization projects using the GA method, select the cycle number from the Cycle Number list:
3. To view all cycles, select All. 4. After you select your filters, click either of the Replot buttons. The designs you filtered will be displayed in the plot:
www.redcedartech.com
389
The evaluation list under Selection will display only the evaluations allowed by the filter. 5. Select the evaluations you want to view from the Evaluation list.
390
www.redcedartech.com
2. Select the variables and responses you want to include by doing any or all of the following: Check the check boxes next to the variables and responses you want to view:
Remove the check from any you do not want to include. Click the box in front of Name to recheck all the variables and responses in the list. 3. Click one of the Replot buttons. Only the selected variables and/or responses for the evaluations allowed by the Evaluation Filter will be displayed in the plot. 4. Select the evaluations you want to see from the Evaluation list.
www.redcedartech.com
391
2. Click on the name of the variable or response you want to move. You will see a next to the selected variable or response: 3. Right-click anywhere in the table to display the context menu:
4. Select one of the following options: Raise to move the selected variable or response up in the list. Lower to move the selected variable or response down in the list. 5. After you have finished rearranging your variables and responses, click one of the Replot buttons. The new order will be displayed in the plot:
392
www.redcedartech.com
Your rearranged order will remain displayed in the plot until you leave the Post tab: If you select the All radio button, the variables in the list will be displayed in their original order but the plot display will not change. When you select Checked, the display order will return. If you display another plot on the Post tab and return to the parallel plot, the variable/response order will be redisplayed exactly as you left it. When you leave the Post tab, the original order will be restored.
To return the plot display to its original order without leaving the Post tab
1. Select the All radio button.
www.redcedartech.com
393
2. Uncheck all variables by removing the check in front of None. 3. Recheck None. This will recheck all variables and place them in the correct order.
2. Replace the Lower value with the value you want to set as the low end of the range. 3. Click in the variable or responses Upper value field to highlight the default value. 4. Replace the Upper value with the value you want to set as the high end of the range.
394
www.redcedartech.com
5. Click one of the Replot buttons. The new range for that variable or response will be displayed in the plot and only designs with values that fit within that range will appear. 6. To reset the default range values, do one of the following: To reset the ranges of all variables and responses, click All. To reset a specific variable or response, select the variable or response, and click Selected:
The currently displayed agent will be highlighted. Each agent has its own set of plots.
396
www.redcedartech.com
www.redcedartech.com
397
2. Select All from the Rank list to view all designs for that cycle. During the early stages of a run, the front will have a more random pattern. There will usually be dots from rank 2 or below, as well as the dots from rank 1. If there are not enough nondominated designs from rank 1, rank 2 designs will be added. If the number of nondominated designs in rank 2 does not fill the archive size, then rank 3 will be used, etc. Each rank has a corresponding color, which is shown in the Plot Visualization box:
398
www.redcedartech.com
As the run progresses, the front will converge into a typical Pareto front curve and there will be fewer designs from ranks 2, 3, etc. In the last few cycles, most or all of the designs will be from rank 1. The final cycle contains the final Pareto front:
www.redcedartech.com
399
Filtering by rank
The Evaluation Filter also allows you to filter your designs by rank. Once you select the cycle number and rank, the filtered designs will be displayed in the chart.
400
www.redcedartech.com
3. The designs for that cycle and rank will be displayed in the plot:
www.redcedartech.com
401
One of the objectives will be represented on the horizontal axis and the other on the vertical axis. Usually, the designs with the best tradeoffs are found around the knee of the curve. The designs at the ends of the curve are more optimal for one objective but are only adequate for the other.
402 www.redcedartech.com
Note: For projects with more than two objectives, you will need to look at the .PTO file to get this
information (see page 431).
You can sort the evaluations in the list by selecting one of the Sort by radio buttons under Selection:
x-axis sorts the evaluations according to their position on the x-axis. For example, if you sort by x-axis and use the arrow keys to move down the evaluation list, you will see the black asterisk progress from left to right across the plot, moving from one evaluation to the next:
www.redcedartech.com
403
Eval sorts the evaluations numerically. This is useful when you are looking for a specific design. Since the evaluations are in numerical order instead of the order in which they appear on the curve, the black asterisk will move around the plot as you select evaluations:
404
www.redcedartech.com
www.redcedartech.com
405
3. Filter and select the evaluations you want to compare and look at them in the plot.
Note: Only the designs that can be plotted on the frozen scales will be plotted. If no designs can be
plotted for a given cycle, no plot will appear.
406
www.redcedartech.com
The plot looks just like the weighted-sum (non-MO-SHERPA) parameter optimization plots. Each line in the plot represents one design. When you first display the plot, you will see all designs. As with the non-MO-SHERPA parallel plots, you can show how an evaluation compares to the others by selecting an evaluation number from the Evaluation list:
www.redcedartech.com
407
The design and its associated variables and responses will be highlighted in the plot:
408
www.redcedartech.com
Like the parallel plots for weighted-sum optimization projects, you can control the evaluations that are included and the variables and responses that appear in the plot with the same two filtersEvaluation and Response/Variable. However, there are more options available for the Evaluation Filter.
2. Select the cycle type: To view designs in the Pareto set for a given cycle, select Pareto. To view all designs that were evaluated in a given cycle, select Evaluation. 3. Select the class of designs you want to view from the Class list:
www.redcedartech.com
409
To view all design evaluations, select All. To view all designs that meet the constraints, select Feasible. To view all designs that did not meet one or more of the constraints, select Infeasible To view designs for which results could not be extracted, select Error. 4. Select the cycle number from the Cycle Number list or All to view all cycles:
5. Selecting All for both the class and cycle number will show all designs, regardless of cycle type. 6. If you selected Pareto as the cycle type and selected a cycle number, select the rank from the Rank list or All to view all designs in the Pareto front for the cycle:
410
www.redcedartech.com
Rank is not active for the Evaluation cycle type. 7. After you select your filter options, click either of the Replot buttons. The designs you filtered will be displayed in the plot:
www.redcedartech.com
411
The evaluation list under Selection will display only the evaluations allowed by the filter. 8. Select the evaluations you want to view from the Evaluation list.
412
www.redcedartech.com
2. Select the response that you want to view from the Agent Responses list. The Pareto chart for that response will appear:
www.redcedartech.com
413
3. Find the factor you want to view. If all the factors do not fit on the page, use the Next and Back buttons in the lower right corner to page through them. 4. Right-click on the thumbnail for the factor you want to view to display the menu. 5. Select Open from the menu and the plot will appear in the window:
414
www.redcedartech.com
www.redcedartech.com
415
3. Find the factor combination you want to view. If all the thumbnails do not fit on the page, use the Next and Back buttons in the lower right corner to page through them. 4. Right-click on the thumbnail for the factor you want to view to display the pop-up menu. 5. Select Open from the pop-up menu and the plot will appear in the window:
416
www.redcedartech.com
6. The response is always represented on the y-axis of the plot and one of the factors is represented on the x-axis. The two lines represent the high and low values of the second factor: The blue line represents the high value. The red line represents the low value. They show the effect on the response when the two factors interact. 7. To close the window, click in the upper right corner.
www.redcedartech.com
417
There is a plot for each response. The response is the y-axis. The Agent Variables (factors) are listed at the left. Select the factor for the x-axis by clicking the corresponding radio button. The variable name will appear on the plots. To see the effects of changes to the other variables on the responses, move the slider to adjust the value. To view a larger version of a given plot, right-click on the plot you want to view and select Open from the pop-up menu. The plot in the window is dynamic and will reflect any changes you make to the variables on the response surface tab.
418
www.redcedartech.com
3. The 45-degree line shows the ideal condition, which would occur if the response surface prediction exactly matched the results from an actual evaluation. The dots show the actual versus the predicted values: If the actual values line up close to the line, the response surface is a reliable fit. If most of the actual values do not line up alongside the line, the response surface is not a good representation of the design space. 4. To view a larger version of the plot, right-click on the plot, and select Open from the pop-up menu.
www.redcedartech.com
419
Note: If your Post tab contains tabs for all available plots, you will not see the Parallel Plot tab until
you click the arrows at the end of the row.
Each line in the plot represents one design. When you first display the plot, you will see all designs. You can show how an evaluation compares to the others by selecting the evaluation number from the Evaluation list:
420
www.redcedartech.com
The design and its associated variables and responses will be highlighted in the plot:
You can control the evaluations that are included and the variables and responses that appear in the plot with the Evaluation and Response/Variable filters. These filters are identical to the ones found in parameter optimization projects, except that the filtering classes are different.
www.redcedartech.com
421
Select All to show all designs. Select Successful to show all the good designs. Select Error to view designs for which results could not be extracted. 2. After you select your class, click either of the Replot buttons. The designs you filtered will be displayed in the plot:
422
www.redcedartech.com
The evaluation list under Selection will display only the evaluations allowed by the filter. 3. Select the evaluations you want to view from the Evaluation list.
www.redcedartech.com
423
Note: If you do not see any designs for a two-level DOE after you set and replot your range, you
may have accidentally filtered out your high and low values for one of the variables.
424
www.redcedartech.com
www.redcedartech.com
425
Hint: A good way to monitor the histogram for a response during the run is to open the plot in a window the first time you view it on the Post tab. The plot in the window does not update, so you can
compare it to the current view. You can also open other periodic samples during the run if you wish.
426
www.redcedartech.com
Each line in the plot represents one design. When you first display the plot, you will see all designs. You can show how an evaluation compares to the others by selecting an evaluation number from the Evaluation list:
The design and its associated variables and responses will be highlighted in the plot:
www.redcedartech.com
427
You can control the evaluations that are included and the variables and responses that appear in the plot with the Evaluation and Response/Variable filters. The available options are identical to the ones for DOE studies.
Select All to show all designs. Select Successful to show all the good designs. Select Error to view designs for which results could not be extracted. 2. After you select your class, click either of the Replot buttons. The designs you filtered will be displayed in the plot. The evaluation list under Selection will display only the evaluations allowed by the filter. 3. Select the evaluations you want to view from the Evaluation list.
428
www.redcedartech.com
available for the parameter optimization and DOE parallel plots. For more information on using the Response/Variable Filter, see pages 390394.
Results Files
While HEEDS MDO Solver runs, it creates a number of working files. The ones of interest will be the .PLOT and .RES files. These files are found in the project project directory. They are kept for all projects, whether they are single-processor or multi-processor projects.
www.redcedartech.com
429
Note: You can also examine all saved designs in the evaluation folders (see page 432).
HEEDS MDOn.res
If you have changed the State File Prefix for an agent group, these files will have the prefix you assigned instead of HEEDS MDO. For example, if you changed your prefix to CBEAM, the names would be: CBEAMn.plot CBEAMn.res If you have only one agent, you will have one .PLOT and one .RES file, and n will always be 0: HEEDS0.plot CBEAM0.res If you have more than one agent, there will be a .PLOT and a .RES file for each agent and n will correspond to the agent ID. To find out which agent is associated with a given .PLOT or .RES file, open Assembly.in in any word processor or text editor:
430
www.redcedartech.com
The information for each agent is preceded by the header *AGENT. The agent name will appear directly underneath. Check the agent number (see above). That number is the agent ID and will correspond to the .PLOT and .RES file ID.
After the run is over, you can the look at the .plot files for a summary of the best designs found during the run and the .res file for information on all designs that were evaluated. The .res file is already in a comma-delimited format, so if you wish to open it in Excel, simply change the file extension (RES) to CSV (comma-separated values).
The .PLOT and .RES files (and the other results files) are also available for Pareto optimizations. The .RES file, which contains information for all designs in the run, may be of some use. The .PLOT file contains the ten best designs based on performance, which is calculated with the objectives weighted. This is the same information that appears on the Designs tab on the Post page.
This number corresponds to agent ID. You will need to open Assembly.in (see page 430) to determine the IDs for the agents in your project. The evaluation folder contents depend on what results you chose to save for that agent (see Running Your Project). You may examine the input and output files while the project is running, as well as at the end of the run.
432
www.redcedartech.com
434
www.redcedartech.com
www.redcedartech.com
435
2. Release the mouse button and the agent will move to its new location. The agent group button will expand to accommodate the moved agent.
Note: If you have difficulty aligning your agents precisely using the mouse, you can use the arrow
keys on your keyboard to nudge the agent into the desired position.
Agent Coloring
If you have more than one agent, Agent Coloring can help you find out which process, files, variables, and responses are associated with a given agent. If you have more than one agent group, you can use Agent Coloring to help you locate the processes, files, variables, and responses associated with a given agent group.
2. To find out which attributes are associated with a given agent, select the agent from the Agents tree or Agents Graph.
436
www.redcedartech.com
3. To find out which variables are tagged within a given agent, select Variables. The variables and the input files that are associated with the agent will be highlighted.
4. To find out which responses are tagged within a given agent, select Responses:
www.redcedartech.com
437
The responses and the output files that are associated with the agent will be highlighted.
Note: The agent coloring for your selection appears on all tabs, not just the Assembly tab. If you select Variables, for example, the variables will be highlighted on the Variables tab and the Tagging tab.
438
www.redcedartech.com
Note: if you have more than one machine available to run your project, multiple agent groups can be beneficial. This configuration allows agents to run in parallel, potentially speeding up the run. For more information, see the HEEDS PARALLEL and Q Users Guide.
www.redcedartech.com
439
2. Click anywhere in the Agent Graph. The new agent group will be added in approximately the same place as you clicked:
3. No agents are added to the new group by default. You will need to add them yourself. For instructions on adding a new agent, see Adding Agents on page 229.
2. Type the new name for the group. It will replace the highlighted value. 3. Click on another field (or press Tab or Enter or click in the Agent Graph). The new agent group name will appear on the agent group button in the Agent Graph and also in the Agents tree.
440
www.redcedartech.com
2. On the Assembly tab, select an agent group from either the Agent Graph or the Agents tree. The variables, responses, processes, and files associated with the selected agent group will be highlighted.
www.redcedartech.com
441
To copy an agent
1. Right-click on the agent you want to copy and select Copy from the pop-up menu:
2. Right-click anywhere in the agent group button where you want to place the copy and select Paste Clone from the pop-up menu. The copied agent will be placed in the selected agent group. The name will be changed so it does not duplicate the name of an existing agent:
442
www.redcedartech.com
3. The copied agent will be positioned on top of the existing agents. You may want to move it so it does not cover the others. To do this, use the arrow keys on your keyboard.
2. Right-click anywhere in the Agent Graph to display the pop-up menu, and select Paste Clone. The copied agent group will appear in approximately the place you clicked. The names of the copied agent group and its agents will be changed so they do not duplicate the originals:
www.redcedartech.com
443
444
www.redcedartech.com
www.redcedartech.com
445
Appendices
*VARIABLES
Purpose: Define variables Continuous Variables
Variable Type Name String Type String Min Real Baseline Real Max Real Distribution Name String Print Format String Comment String
Discrete Variables
Variable Type Name String Type String Baseline Real Discrete Set Name String Print Format String Comment String
www.redcedartech.com
447
Dependent Variables
Variable Type Name String Type String Formula Real Distribution Name String Print Format String Comment String
Description
The variable type. This field must be one of the following options: CONTINUOUS DISCRETE DEPENDENT NUMERIC_PARAMETER TEXT_PARAMETER
Type
The minimum real value that can be used for this variable (continuous variables only). The baseline value that can be used for this variable (continuous, discrete, numeric parameter and text parameter variables only). The maximum real value that can be used for this variable (continuous variables only). The name of a distribution that is defined within the same file or exists in the Modeler already (continuous, dependent, and numeric parameter variables only). The name of a discrete set that is defined within the same file or exists in the Modeler already (discrete variables only).
Distribution Name
448
www.redcedartech.com
Description The formula that defines this variable (dependent variables only). The name of a print format that exists in the Modeler already (all variables). A description of the variable.
*DISCRETE_SETS
Purpose: Define discrete sets, which can be used to define the possible choices of discrete variables.
Variable Type Name String Ordered Set String # of items Integer List of items String
Variable Name Ordered Set # of items List of items The name of the discrete set
Description
Flag depicting whether the discrete set is in order or not. This field must be one of two options: Yes or No The number of choices that exist within the discrete set. All of the choices, with each field separated by a comma. Note: Any spaces after the delimiting comma will be treated as part of the discrete set choice that follows.
*DISTRIBUTIONS
Purpose: Define distributions, which can be used to define the stochasticity of variables.
Variable Type Name String Type String Stochasticity % Real
www.redcedartech.com
449
Description
The type of distribution. This field must be one of two options: UNIFORM or GAUSSIAN For types UNIFORM and GAUSSIAN, this field is defined as a percentage of the baseline of the variable to which the distribution is assigned. If the type is UNIFORM, this field refers to the extent of the distribution on either side of the mean (baseline). If the type is GAUSSIAN, this field refers to one sigma on either side of the mean (baseline).
Variation
*ANALYSES
Purpose: Define analyses, including any associated input and output files. CARD 1 (Define one card for each analysis)
Option Variable Type 1 Name String 2 # input Files Integer 3-n Input Files String n+1 # Output Files Integer n+2-m Output Files String
Variable Name # input Files Input Files # Output Files Output Files The name of the analysis. The number of analysis input files.
Description
The input filenames, with each one separated by a comma. If the filename does not include a directory, it is assumed to exist in the project directory. The number of analysis output files. The output filenames, with each one separated by a comma. If the filename does not include a directory, it is assumed to exist in the project directory.
450
www.redcedartech.com
*TAGS
Purpose: Define marked tags for variables and responses. CARD 1 (Define one card for each analysis)
Variable Type Filename String Analysis Name String # of tags Integer Delimiters String
CARD 2 (Define one card for each tagged file within an analysis)
Variable Type Tag Type String Var. Name String Line # Integer Position # Integer
Description The name of the file where the tags are to be placed. The name of the analysis that contains the tagged file. The number of tags that are to be placed in the file. The delimiters in the file that are used to display the tagged file in cells. The delimiters should be enclosed between /* and */. Note that spaces are automatically assumed to be delimiters. The type of tag used to define the variable. Currently, this field may only contain the following: MARKING The name of the variable which is to be tagged in the file. The row number of the file where the variable is to be tagged. The column number of the file where the variable is to be tagged.
Delimiters
Example File
*VARIABLES Var1, CONTINUOUS, 1.0, 1.5, 3.6, , , ,
www.redcedartech.com
451
Var2, DISCRETE, , , , Var3, DISCRETE, , MatChoices, Default, 10 Var4, DEPENDENT, 2*Var1, Dist_1, , , Var5, NUMERIC_PARAMETER, 10.4, , PrintForma_2, , Var6, TEXT_PARAMETER, Set2, , PrintFormat_1 $ *ANALYSES Analysis1, 1, Input_file.in, 0, Analysis2, 2, C:\Proj\sample.inp, C:\Proj\example1.txt, 1, sample.dat $ *TAGS sample.inp, Analysis2, 2, /*,*/ MARKING, Var1, 1, 3 MARKING, Var1, 2, 3 Input_File.in, Analysis1, 1, /*,;TAB*/ MARKING, Var2, 2, 1 $ *DISCRETE_SETS MatChoices, No, 4,Steel,Aluminum,Glass-Epoxy,Cast-Iron $ *DISTRIBUTIONS Dist_1, UNIFORM, 5.0 $
452
www.redcedartech.com
To run the project from the command line without backing up the results
1. Save your project in the Modeler so the latest run files will be generated.
2. Open a command prompt window. 3. Change to your project directory. 4. Enter the command to execute HEEDS MDO Solver at the command prompt (see above). For the current version of HEEDS MDO installed in the default directory, you would enter: heeds_v6.1 i=Agent_Group_1.in overwrite 5. If you have given your agent group a different name, the Agent_Group_1.in file will have the name you gave the group instead: heeds_v6.1 i=AG_CoarseAgent.in overwrite 6. Press Enter and the run will start.
Warning! Do not close the command prompt window during the run or the run will stop. Note: If you have more than one agent group in your project, you will need to start each group
separately. Most single-processor projects do not have multiple agent groups, so this is not usually a matter of concern.
To run the project from the command line and back up results files
1. Save your project in the Modeler so the latest run files will be generated. 2. Open a command prompt window. 3. Change to your project directory.
454
www.redcedartech.com
4. Enter the command to execute HEEDS MDO Solver at the command prompt. For the current version of HEEDS MDO installed in the default directory, you would enter the following: heeds_v6.1 i=Agent_Group_1.in 5. If you have given your agent group a different name, the Agent_Group_1.in file will have the name you gave the group instead: heeds_v6.1 i=AG_CoarseAgent.in 6. Press Enter. Your previous results will be copied to a backup folder in your project directory and the run will start.
Warning! Do not close the command prompt window during the run or the run will stop.
www.redcedartech.com
455
Note: If you want to change the random seed, the method, or the number of evaluations, you must
do it from within the Modeler. You cannot do it from the command line.
Important: You cannot use useHistory to continue a run if you have the Extend option set in the Modeler. If your project does not run, check your Agent Group settings in the Modeler and make sure you have not set the Extend option.
456
www.redcedartech.com
2. The run will stop immediately and a message will appear indicating the program was aborted due to a control-C event:
www.redcedartech.com
457
Command reEvalErrDesigns
Modeler Option
Description Only valid when useHistory is invoked. Any designs stored in the HEEDS MDO0.hst file that failed and were marked as ERRORs will be reevaluated. This is useful if you changed your analysis parameters slightly to encourage convergence, or if a license server went down during the run, which would cause all your evals to fail. This option causes the Solver to do just one evaluation, the baseline, and then stop. You may want to do this just to make sure that the setup is correct.
checksetup
skipEvalCheck
This option skips the first evaluation check. This option overrides the setting that was entered in the Modeler. Note that it does not change the setting in the Modeler files. For DOE and robustness and reliability projects only. If this option is used, HEEDS MDO Solver will create the entire evaluation directory with all of the design directories inside but will not run the project. You can then run the design evaluations manually. You may want to do this if you want to perform the evaluations on different machines and are not licensed for HEEDS Q. For DOE and robustness and reliability projects only. This is usually used after designFilesOnly. Once you have manually run all of the designs for a DOE or robustness and reliability run and the results are back in the original directories that HEEDS MDO Solver created, this option will extract all of the responses, do the post processing, and write out the HEEDS MDO output files.
designFilesOnly
postNoEval
The syntax is the same as running with the other options: heeds_v6.1 i=Agent_Group_n.in Option where Option is the command line option you want to run: heeds_v6.1 i=Agent_Group_1.in Checksetup
458
www.redcedartech.com
Index
A
Abaqus Input Portal, 167 Abaqus Output Portal, 195 Defining field output, 197 Aborting a run single-processor projects, 36769 Acceptable range, 249, 253 Adams Output Portal, 204 Add Analysis, 55 Add Constraint, 254 Add Curve from File, 109 Add Curve Manually, 109 Add more designs, 347 Add Objective, 250 Add Process, 58 Agent Coloring, 437 Agent groups, 439 adding, 440 copying, 443 moving in agent graph, 445 naming, 441 removing, 442 runtime attributes, 350, 354 viewing the message file, 374 Agent Installation, 230 Agent links when moving, 445 Agent responses DOE projects, 3045 parameter optimization projects, 245 robustness and reliability projects, 33536 Taguchi RPD, 319 Agent variables, 236 continuous variables, 236 DOE projects, 305, 3089 parameter optimization projects, 241 robustness and reliability projects, 336 Taguchi RPD, 319 Agent_Group_n.in, 358 Agent_Num, 94 Agents, 229 about, 4 adding, 230
assigning processes to, 233 copying, 443 defining agent responses, 236 defining agent variables, 236 DOE, 299 finding agent ID, 431 moving in agent graph, 436 moving to different groups, 445 naming, 232 parameter optimization, 241 removing, 232 runtime attributes, 350 search methods, 234 using multiple agents in DOE projects, 299 in robustness and reliability projects, 331, 436 All Best, 352 Analyses, 32 adding, 55 analysis tools, 34, 35 copying, 59 defining, 33 input files, 47, 51, 53 output files, 50, 53 removing, 57 sharing data between, 56 sharing files between, 57 using multiple analyses, 55 Analysis Manager Command Line Options, 38 Define Success Requirement, 40 Execution File, 38 Analysis tools, 34, 35 ANSYS Workbench Input Portal, 169 ANSYS Workbench Output Portal, 206 Assembly tab, 229 Assembly.in, 358 Automatically save project before run, 27, 361
B
Backing up existing results from the command line
460
www.redcedartech.com
Index
single-processor projects, 45556 from the Modeler single-processor projects, 362 Backup existing results, 360 Baseline design, 9 Batch Add Responses, 121 Batch Add Variables, 96 Batch Delete Responses, 122 Batch Delete Variables, 96 Batch Edit Responses, 121 Batch Edit Variables, 96 binout file, 213
C
CAD Export Format NX, 37 Checksetup option, 459 Collaborative optimization. cancelling submission, 265 creating a design set, 258 exporting a design set, 266 importing designs into a set, 259 manually adding designs to a set, 262 removing a design set, 266 submitting designs, 264 viewing the Log, 265 Coloring process coloring, 138 Command Line Options, 38 Compression Line Type, 118 Constraint responses, 245 acceptable range, 253 adding, 254 deleting, 257 editing, 256 normalizing factor, 253 performance calculation, 255 Constraints, 7 Contents of Selected Cell, 176, 211 Continuing a run single-processor projects from the command line, 456 from the Modeler, 363 Continuous variables, 65, 236 applying stochastic distributions to, 76
Baseline, 75 defining, 74 defining the resolution, 242 discrete, 65 in DOE projects, 299 in robustness and reliability projects, 331 Min and Max, 74 stochastic, 66 Copy Mark Tags, 146 Crossed orthogonal arrays, 297 Crossover Rate, 277 Crossover Type, 277 Curve Fit Definition, 108, 110, 111 Cutoff Frequency, 113
D
Define Success Requirement, 40 Definitions.in, 358 Dependent variables, 85 creating, 86 dependent, 67 entering formulas, 87 in DOE projects, 300 in robustness and reliability projects, 331 Design feasibility, 6 Design of experiments. See DOE projects Design performance rating, 4 Design_Num, 94 Design_Path, 94 designFilesOnly option, 459 Deterministic value, 66 Digital data filters, 111 Discrete sets assigning to a variable, 83 creating, 80 deleting, 85 ordered non-numeric, 82 ordered numeric, 82 removing values from, 85 Discrete Sets tab, 80 Discrete variables, 67, 79 defining, 83 discrete sets creating, 80 removing, 85
www.redcedartech.com
461
in DOE projects, 299300 in robustness and reliability projects, 331 Distributions Gaussian, 78 Uniform, 78 Distributions tab, 77 DOE projects, 8, 296302 agent responses, 3045 agent variables, 305 agents, 299 custom setup, 309 factor levels 2-level, 31213 3-level, 313 central composite method, 314 selecting factors, 31011 selecting method type, 311 directed setup, 305 selecting method type, 3078 DOE matrix, 308 examples, 300302 factors, 3089, 31011 fitting response surface to design data, 316 methods custom setup, 311 directed setup, 3078 post processing, 413 interaction effects plots, 41618 main effects plots, 41416 parallel plot, 42125 Pareto charts, 41314 response surface fit plot, 420 response surface plots, 41819 response surface DOE, 298 responses, 300 saving designs for, 35354 screening DOE, 296 Taguchi RPD, 297, 319 factor levels 2-level, 324 3-level, 326 variables in, 299300
Evaluation control, 275 Evaluation directories changing, 350 single-processor projects, 433 Evaluation Directory Path, 351 Evaluation Filter, 389 Evaluation projects, 9 adding more designs, 347 agent variables and responses, 342 assembling, 342 editing design data, 347 importing designs, 347 method, 346 Evaluations evaluation directories, 350 saving design evaluation files, 352 saving restart data for, 35556 skipping first evaluation results check, 356 Excel Input Portal, 173 Contents of Selected Cell, 176 security settings for macros, 173 Excel Output Portal, 208 Contents of Selected Cell, 211 security settings for macros, 209 Execution File, 38 Export designs, 348 Expressions window, 188, 190, 225 Extending a run single-processor projects from the command line, 457 from the Modeler, 363, 366 Extract Value, 133 Extraction commands, 154
F
Factors defining levels 2-level, 31213, 324 3-level, 313, 326 central composite, 314 selecting, 31011 Fast Save, 28 Feasible designs, 6 Field delimiters in files parsed for marking, 142
E
Enable Fast Save, 28
462
www.redcedartech.com
Index
in files used for scripting, 154 Field output Abaqus Output Portal, 197 Filter Definition, 112 FLC Type, 116 FLD, 114 FLD Definition, 115 Forming Limit Diagram, 114 Formula Definition editor, 87 Freeze Plot Scales, 406
G
Gaussian distribution Standard Deviation, 79 Genetic algorithm method, 27478 crossover method, 276 evaluation control, 275 Mutation Rate, 276 Mutation Type, 276 Selection Type, 277 Goal, 327
Import Model Data, 448 Importing model data, 62 Include Tab, 143 Input files, 32, 47, 51 adding, 47 marking, 143 removing, 53 replacing, 51 tagging, 132 Input Files Manager, 47 Location To Copy From, 49 Interaction effects plots, 41618
J
Job_Name, 94
L
Latest Best, 352 Location To Copy From, 49, 57 LS-DYNA Input Portal, 176 LS-DYNA Output Portal, 212 ASCII Data Files, 214 binout file, 213
H
HEEDS MDO Modeler, 15 saving projects, 27 screen, 1718 starting, 15 tables, 21 HEEDS Modeler opening projects when another file is loaded, 29 pop-up menus, 19 starting projects when another file is loaded, 29 HEEDS Scripting Language (HSL), 149 HEEDSn.gph, 359 HEEDSn.plot, 359 HEEDSn.res, 359 History output Abaqus Output Portal, 201
M
M_inputfilename, 358 Macro Excel, 36 Main effects plots, 41416 Map variable values based on resolution, 261, 264 Mapreps.in, 358 Mark tagging mode, 132 Marking, 132, 142 Marking input files, 143 Marking output files, 144 MARLAB Input Portal, 216 MATLAB Additional Variables, 181 MATLAB Engine Memory storing variables and responses, 181 MATLAB Input Portal, 178 Maximum Variation, 79 MES file
I
Import designs, 347
www.redcedartech.com
463
displaying, 374 use in troubleshooting, 376, 378 Message file, 374 Methods, 234 DOE, 235 DOE projects, 305 custom setup, 309 directed setup, 305 evaluation, 235 parameter optimization, 235 parameter optimization projects, 240, 26794 genetic algorithm, 27478 MO-SHERPA, 27074 multi-start local search, 28687 Nelder Mead Simplex, 291 particle swarm, 287 quadratic programming, 27880 response surface, 28385 simulated annealing, 280 Robustness and reliabiliity, 235 robustness and reliability projects, 33640 selecting, 267 Methods Manager DOE custom setup, 309 directed setup, 305 parameter optimization, 26869 robustness and reliability, 33640 Monitoring a run single-processor projects, 367 MO-SHERPA method, 27074, 352 post processing results, 397 parallel plot, 40713 Pareto front plot, 397406 results files, 432 Multi-start local search method, 28687
(NLSQP), 278 Normalizing factor, 248, 253 Number of Points to Average, 113 NX Input Portal, 184
O
Objective responses, 245 acceptable range, 249 adding, 250 defining, 248 deleting, 257 editing, 256 minimizing or maximizing, 248 normalizing factor, 248 performance calculation, 252 Objectives, 7 Opening projects when another file is loaded, 29 Output files, 33, 50 adding, 50 marking, 144 removing, 53 replacing, 51 tagging marking, 132 portals, 165 scripting, 147 Output Files Manager, 50 Overwrite option single-processor projects, 45456
P
Parallel plots DOE projects, 42125 evaluation filter DOE projects, 42324 MO-SHERPA projects, 41013 parameter optimization projects, 38991 robustness and reliability projects, 429 MO-SHERPA projects, 40713 parameter optimization projects, 38796 response/variable filter, 389 changing display order, 39295 changing variable and response ranges,
N
Naming conventions, 20 Nastran Input Portal, 182 Nastran Output Portal, 220 Nelder Mead Simplex optimization method, 291 search control, 292 starting design selection, 293 Non-linear sequential quadratic programming
464
www.redcedartech.com
Index
39596 list display, 392 selecting variables and responses, 39192 robustness and reliability projects, 42730 Parameter optimization projects, 8, 239 agent responses, 245 agent variables, 241 agents, 241 extending a run, 363 methods genetic algorithm, 27478 MO-SHERPA, 27074 multi-start local search, 28687 quadratic programming, 27880 response surface, 28385 simulated annealing, 280 Methods Manager, 26869 multiple objective, 240 post processing, 381 best designs, 386 MO-SHERPA projects, 397 parallel plot, 40713 Pareto front plot, 397406 parallel plot, 38796 performance plot, 38182 plots for multiple agents, 396413 response plot, 38496 variable plot, 38284 responses constraint responses defining, 245 objective responses defining, 245, 248 prerequisite responses defining, 246 saving designs for, 35253 MO-SHERPA projects, 352 selecting a search method, 240, 26768 Parameter variables, 68, 90 absolute numeric, 90 in DOE projects, 300 in robustness and reliability projects, 331 numeric parameter, 69 stochastic numeric, 91 text parameter, 69, 92 Pareto charts, 41314
Pareto front plot, 397406 Pareto optimization. See MO-SHERPA method Parsing Delimiters, 142 Particle swarm optimization method, 287 specifying how search is performed, 289 specifying swarm (population) size, 289 Paste Mark Tags, 146 Performance Calculation, 252, 255 Performance plots post processing parameter optimization projects, 38182 runtime, 369 Performance value, 4 Performancen.in, 358 PLOT files, 43033 Plot types, 13 Point Average, 113 Pop-up menus, 19 Portal tagging mode, 165 Abaqus Input Portal, 167 Abaqus Output Portal, 195 Adams Output Portal, 204 ANSYS Workbench Input Portal, 169 ANSYS Workbench Output Portal, 206 enabling portals, 35 Excel Input Portal, 173 Excel Output Portal, 208 LS_DYNA Input Portal, 176 LS-DYNA Output Portal, 212 MATLAB Input Portal, 178, 216 Nastran Input Portal, 182 Nastran Output Portal, 220 NX Input Portal, 184 SolidWorks Input Portal, 189 SolidWorks Output Portal, 224 SolidWorks Simulation Input Portal, 190 SolidWorks Simulation Output Portal, 225 supported portals, 165 untagging, 166 Post processing copying plots to clipboard, 430 DOE projects, 413 interaction effects plots, 41618 main effects plots, 41416 parallel plot, 42125 Pareto charts, 41314
www.redcedartech.com
465
response surface fit plot, 420 response surface plots, 41819 parameter optimization projects, 381 best designs, 386 MO-SHERPA projects, 397 parallel plot, 40713 Pareto front plot, 397406 parallel plot, 38796 performance plot, 38182 response plot, 38496 variable plot, 38284 robustness and reliability projects, 42527 parallel plot, 42730 probability distribution plots, 42527 postNoEval option, 459 Prerequisite responses defining, 246 Print Formats, 70 Probability distribution plots, 42527 Process Coloring, 138 Process Graph, 34 Process Installation Add Analysis, 55 Add Process, 58 Processes, 32 adding, 58 adding analyses to, 55 assigning to agents, 233 changing position in process graph, 62 copying, 61 order of analyses in, 56 removing, 61 removing analyses from, 57 using multiple, 57 Processes tree, 130, 137 Project responses about, 103 adding, 104 creating, 104 removing, 121 tagging in output files marking, 132 portals, 165 scripting, 147 Project Responses window, 105, 130 Project variables, 65, 69
adding, 69 deleting, 95 tagging in input files, 132 Project Variables window, 130 Projects assembling, 12 exiting, 30 opening projects, 16 when another file is loaded, 29 running, 12 single-processor projects, 350 saving, 27 setting up, 11 starting projects, 16 when another file is loaded, 29 switching, 28 types of projects, 8
Q
Quadratic programming method, 27880
R
Random seed changing for a project, 36163 effect on a continued run, 364 Remove Output File, 54 Replace File, 51 Representationn.in, 358 Re-read File, 136 RES files, 43033 Resolution, 242 Response goals, 327 Response plots post processing, 38496 runtime, 373 Response surface fit plot, 420 Response surface method, 28385 Response surface plots (DOE projects), 41819 response.hs, 358 Response/Variable Filter, 424 Responses adding to project, 104 agent responses DOE, 3045
466
www.redcedartech.com
Index
parameter optimization, 245 robustness and reliability, 33536 Taguchi RPD, 319 batch adding, 121 batch deleting, 121 batch editing, 121 checking your tagging, 133 constraint, 245 determined by a curve fit, 107 determined by a filter, 112, 115 determined by a formula, 106 determined by a HEEDS response surface model, 119 determined by an FLD, 114 determined by forming limit criteria, 114 extracted from a file, 105 extracting values, 133 in DOE projects, 300 in parameter optimization projects, 245 in robustness and reliability projects, 33132 objective, 245, 248 prerequisite, 246 process coloring with, 138 removing from project, 121 tagging in output files marking, 132 portals, 165 scripting, 147 Restart data, 35556 Restart option continuing a run, 363 extending a run, 363, 366 Results viewing, 12 Results files, 43033 finding agent ID, 431 MO-SHERPA projects, 432 PLOT files, 43033 RES files, 43033 saved designs, 352 Retagging, 136 RMS, 108 Robustness and reliability projects, 9 agent responses, 33536 agent variables, 336 examples, 332
methods, 33640 post processing, 42527 parallel plot, 42730 probability distribution plots, 42527 responses, 33132 saving designs for, 35354 variables in, 331 Root mean square (RMS), 108 RS Model, 119 Running a project, 12 backing up existing results from the command line single-processor projects, 45556 from the Modeler single-processor projects, 362 changing random seed, 36163 effect on a continued run, 364 command line options Checksetup option, 459 overwrite option, 45455 SkipEvalCheck option, 459 useHistory option, 456 continuing a run from the command line single-processor projects, 456 from the Modeler single-processor projects, 363 displaying the MES file, 374 extending a run from the command line single-processor projects, 457 from the Modeler single-processor projects, 363, 366 monitoring a run single-processor projects, 367 running from the command line options, 458 single-processor projects, 45459 with overwrite option, 45455 without overwrite option, 45556 syntax single-processor projects, 454, 455 running from the Modeler, 36163 runtime attributes, 350 runtime plots, 369 stopping a run
www.redcedartech.com
467
single-processor projects, 36769 troubleshooting single-processor projects, 376 Runtime attributes, 350 agent attributes, 350 agent group attributes, 354 evaluation directories, 350 saving design results, 352 saving restart data, 35556 skipping first evaluation results check, 356 state file prefix, 354 Runtime plots, 369 performance plots, 369 response plots, 373 variable plots, 371
S
SAE 6487, 113 Save, 27 Save As, 28 Save restart data after each evaluation, 355 Saving projects, 27 Script Editor, 148 Script tagging mode, 147 copying scripts, 161 entering scripts, 150, 156 extracting vectors, 158 extraction commands, 154 sample scripts, 162 script commands, 150 tagging a column of values, 163 tagging a value in a fixed-format file, 162 tagging a value in a free-format file, 162 tagging a vector of values from more than one location, 163 testing scripts, 159 troubleshooting scripts, 160 using loops, 157 Scripting. See Script tagging mode Search methods, 240, 26768 selecting a search method, 267 Search String, 137, 141 Select solver to enable portal(s), 35 Selecting a search method, 267 Selection Type, 277
Sharing data among analyses, 56, 68 SHERPA method, 240, 267, 268, 269 Show Internal Variables, 93 Signal-to-Noise Ratio (SNR), 298 Simulated annealing method, 280 Single-processor project runtime attributes, 350 Single-processor projects running from the command line, 45459 running from the Modeler, 36163 stopping a run, 36769 Skip first evaluation results check, 356 SkipEvalCheck option, 459 SNR, 298 SolidWorks Input Portal, 189 SolidWorks Output Portal, 224 SolidWorks Simulation Input Portal, 190 SolidWorks Simulation Output Portal, 225 Specify response values, 261, 263 Standard Deviation, 79 Starting projects when another file is loaded, 29 State file prefix, 354 Stochastic distributions assigning to variables, 79 creating, 77 enabling at the agent level, 243 with continuous variables, 76 with parameter variables, 91
T
Tables, 21 adding items, 21 changing column width, 26 changing window height, 26 copying and pasting values, 24 editing values, 24 entering values, 22 list box cells, 25 text box cells, 22 removing items, 22 replacing values, 23 selecting values with keyboard, 25 viewing data, 26
468
www.redcedartech.com
Index
Tagging retagging, 136 Tagging files, 12, 130 copying and pasting mark tags, 146 input files, 132 marking, 132 output files, 132, 150, 156 re-reading tagged files, 136 through portals, 165 untagging files. See Untagging files, See Untagging files using the search function, 137, 141 with scripts, 147 copying scripts, 161 entering scripts, 150, 156 sample scripts, 162 script commands, 150 testing scripts, 159 troubleshooting scripts, 160 using loops, 157 Tagging tab Parsing Delimiters, 142 Processes tree, 130, 137 Taguchi RPD, 297, 319, See DOE projects, Taguchi RPD Crossed orthogonal arrays, 297 reponse goals, 327 Signal-to-Noise (SNR), 298 Target Curve, 110 Time Interval Between Data Points, 113 Tools.in, 358 Topology optimization projects saving design results, 352 Troubleshooting single-processor projects, 376
untagging individual values, 134 untagging values, 145 Update File, 136 Use Existing Designs, 316 Use global min/max definitions, 312 UseHistory option single-processor projects, 456
V
Variable and Response Attributes Discrete Sets tab, 80 Distributions tab, 77 Print Formats tab, 70 Target Curves, 109 Variable plots post processing, 38284 runtime, 371 Variables adding to project, 69 agent, 236 agent variables DOE, 305, 3089 parameter optimization, 241 robustness and reliability, 336 Taguchi RPD, 319 batch adding, 96 batch deleting, 96 batch editing, 96 continuous variables, 65, 74 creating, 69 deleting, 95 dependent, 67 dependent variables, 85 discrete variables, 67, 79 in DOE projects, 299300 factors, 3089, 31011 2-level, 31213, 324 3-level, 313, 326 central composite, 314 in robustness and reliability projects, 331 internal variables, 93 parameter, 68 parameter variables, 90 print format, 70 process coloring with, 138
U
Uniform distribution Maximum Variation, 79 Untagging files, 145 all files, 135 files tagged through portals, 166 files tagged with scripts, 164 individual files, 135 untagging entire files, 135
www.redcedartech.com
469
project variables, 65
470
www.redcedartech.com