Docsity

Exhaustive Search Optimization: Beam Example using MathCAD - Prof. David Alciatore, Study notes of Mechanical Engineering

Partial preview of the text

Download Exhaustive Search Optimization: Beam Example using MathCAD - Prof. David Alciatore and more Study notes Mechanical Engineering in PDF only on Docsity!

Exhaustive Search Optimization Example

Beam example:

F := 500 L := 10 P := 2

σ ( )h 6 F⋅^ ⋅L P 2

 −h

⋅h 2

h :=0.5 0.505, ..0.

2 10 0.5 0.6 0.7 0. ×^5

2.1 10 ×^5

2.2 10 ×^5

2.3 10 ×^5

2.4 10 ×^5

σ ( )h

h

Using range variables:

Nh := 1000 i := 0 ..Nh

h (^) max P 2 := −0.001 h (^) min :=0.

∆h

( h^ max −h^ min)

Nh

h (^) i := h (^) min +i ⋅∆h h

σh i :=σ (h i)

σh (^) opt :=min ( σh)

σh (^) opt =2.025 × 105 h (^) opt :=lookup (^) ( σh (^) opt , σh,h) h (^) opt =( 0.667)

σh

2.027·10^5

2.027·10^5

2.026·10^5

2.026·10^5

2.026·10^5

2.026·10^5

2.025·10^5

2.025·10^5

2.025·10^5

2.025·10^5

Using MathCAD program:

( h^ opt σopt) h^ opt ←^0 σopt ← 10 100 pause "about to start loop"( )

σh ←σ( ) h trace "h={0} sopt={1} sh={2}"( , h, σopt,σh)

h (^) opt ←h σopt ←σh trace " new optimum found: h={0}"( ,h)

if σh <σopt

for h ∈h (^) min , (^) ( h (^) min +∆h)..h (^) max

( h^ opt σopt)

large positive number necessary to initialize the minimization process (A large negative number would be used for a maximum problem)

h (^) opt = 0.667 σopt =2.025 × 10 5

wopt^1 2

:= (^) (P −2 h⋅ (^) opt)

h (^) opt wopt