Docsity

Optimizing Engineering Design: Software Tools for Minimizing Merit Functions - Prof. John , Study notes of Mechanical Engineering

Partial preview of the text

Download Optimizing Engineering Design: Software Tools for Minimizing Merit Functions - Prof. John and more Study notes Mechanical Engineering in PDF only on Docsity!

Engineering Optimization

Most engineering design involves usingoptimization software

Minimizes or maximizes a merit function

Applies functional constraints

Applies regional constraints

You Must…

Select or define

the Merit Function (MF)

the Analysis Variables (AV)

and their sub-set of Design Variables (DV)

the Analysis Functions (AF)

Define the constraints

Functional

Regional

Problem Scopes

Large FE system with a limited numberof pre-defined MF, AV, DV, AF.

MF is a user defined equation. Verygeneral ability defined by applicationdependent subroutines in f90 or C.

OptdesX

The X-Windows interface to the Optdes (Optimum design) system.

Requires 3 user-written, compiled, andlinked subroutines (for AV, AF, MF).

Optionally, user can supply operatingsystem commands to use a big “blackbox” code to form the MF.

You supply consistent units.

OptdesX Algorithms

Includes multiple algorithms for

Continuous optimization (smoothlychanging variables)

Discontinuous optimization (tabular non-smooth items like pipe sizes or standardstructural shapes)

3 OptdesX Subroutines

ANAPRE (ANAlysis PRE-processor) iscalled only once. Open files, etc.

ANAFUN (ANAlysis FUNctions) is calledevery iteration to define MF, etc.

ANAPOS (ANAlysis POSt-processor) iscalled only if the user hits the post-process button.

Subroutine ANAFUN, 1

Provides double precision analysis functioncalculations of the trial vector

Three major segments:

a) gets the scalar Analysis Variable (AV) valuesfrom the X-Window subprogram AVDSCA

b) you must use those AV names to computeneeded constants and the Analysis Functions(AF) values

c) returns the scalar Analysis Function (AF)values to the X-Window subprogram AFDSCA

Subroutine ANAFUN, 2

Step b) above could call any otheranalysis program, such as an FE code.

Optdes provides a operating system levelinterface to aid with the calls

Optdes can run in background

These options are difficult to implement

Subroutine ANAPOS

Provides optional calculations, if any,after optimization

Can be invoked by pushing the "Postprocess" button in the Design VariableWindow

Usually, if this function actually does anycalculations they are written to a I/O unityou opened in ANAPRE

ANAPRE, ANAFUN, ANAPOS^ •

Fortran 90 source examples are onclass web page, with compile, link,and run info.

C and f77 source examples are inonline manual.

OptdesX Documentation

PDF Manual is on class web site

Continuous optimization tutorial on p. 30

Discrete optimization tutorial on p. 80

Algorithm theories on p. 175

Contents on p. 4, Index on p. 230

Example source files are on class web site