Mettu University
Method of Delivery
Lectures supported by tutorials
Group project work
Individual assignment
Evaluation
30% two journal paper study reports (15% each) with output
presentation
Mid semester examination 30%
Final examination 40%
Attendance Requirement
Minimum of 75% attendance during lecture hours
100% attendance during practical work sessions, except for some
unprecedented mishaps
All exercises and project works must be submitted by the specified
dead line date
Objectives
To impart knowledge on various categories of existing engineering
problems and solutions to such problems through different optimization
techniques and approaches. The course is intended to introduce the
students the techniques of optimization in Engineering Design. The course
will introduce:
Principle of optimization, formulation of objective function design
constraints and classification of optimization problem.
Optimization techniques such as Single variable and multi-variable
optimization, multi-objective optimization.
Static and dynamic applications where the optimization techniques
will be used.
Outcome
It helps the engineers to get familiarized with the different approaches of
optimizing (maximizing or minimizing) an engineering problem or a
function which is essentially required in industries today.
G. S. Tibba (MeU) Engineering Optimization - DMS6036 11 / 113
Introduction to Optimization Introduction
Minimum of f(x)
x* x
Maximum of -f(x)
-f(x)
Traditional Modern
Calculus methods Genetic algorithms
Calculus of variations Simulated annealing
Nonlinear Programming Ant colony optimization
Geometric programming Particle swarm optimization
Quadratic programming Neural networks
Linear Programming Fuzzy optimization
Dynamic programming
Integer programming
Stochastic programming
Separable programming
Multiobjective programming
Network methods: CPM and PERT
Game theory
Conceptual
Design
Initial Design
Modeling
and
Simulation
Iterative
Redesign Evaluation
No
Acceptable?
Yes
Solution
Conceptual Design:
Conceptual first phase of design
Design
provides a description of the proposed
Initial Design system
what it should do, behave, and look
Modeling like
and drawings and solid models are used for
Simulation
the description
Iterative
Redesign Evaluation Conceptual Design can be:
Innovative conceptual design
No Selection from available concepts
Acceptable?
Modification in the design of existing
Yes systems
Solution
Conceptual
Design
Initial Design:
Initial Design Once the conceptual design is obtained
the initial design is specified in terms
Modeling of:
and
the configuration of the system,
Simulation
the given quantities from the problem
Iterative
Redesign statement, and
Evaluation
an appropriate selection of the design
variables.
No
Acceptable?
Yes
Solution
Conceptual
Design
with constraints,
gi (X) = 0 (1)
and
hj (X) Cj (2)
where
X is design vector, gi (X), (i = 1, 2, ..., m) are equality constraints and
hj (X), (j = 1, 2, ..., n) are inequality constraints.
Design Vectors
Design variables: are set of quantities that define Engineering systems or
components.
Design Constraints
In many practical problems, the design T1
N1
variables cannot be chosen arbitrarily.
They must satisfy certain restrictions
called design constraints. d
T2
1 Behavior or functional constraints:
represent limitations on the behavior
or performance of the system. N2
Example is strength requirement.
2 Geometric or side constraints: b
represent physical limitations on
design variables, such as availability, Figure 3 : Gear Pair
fabricability, and transportability.
Feasible Region
Free Point
Free
Unacceptable Side Constraint g5 = 0
Points
Objective Functions
The purpose of optimization is to choose the best among the many
acceptable designs.
The criterion with respect to which the design is optimized, when
expressed as a function of the design variables, is known as the
criterion or merit or objective function.
Examples of objective functions and optimization criteria:
In aircraft and aerospace structural design problems: Minimization of
weight.
In civil engineering structural designs Minimization of cost.
In mechanical engineering systems design Maximization of efficiency.
A design may have more than one objective functions.
There may be cases where the optimization with respect to a
particular criterion may lead to results that may not be satisfactory
with respect to another criterion.
Constraint Surfaces
Objective Function Surfaces
f = c5
Example 1
A column, carrying load P = 2500kgf , is made
up of a material that has a yield stress
kgf
y = 500 cm 2 , modulus of elasticity
kgf kgf
E = 0.85e6 cm 2 , and density = 0.0025 cm3 .
The length of the column is 250cm. The stress
induced in this column should be less than the
buckling stress as well as the yield stress. The
mean diameter of the column is restricted to lie
between 2cm and 14cm, and columns with
thicknesses outside the range 0.2cm to 0.8cm
are not available in the market. The cost of the
column includes material and construction costs
and can be taken as 5W + 2d, where W is the
weight in kilogram force and d is the mean
diameter of the column in centimeters.
The design variables are the mean diameter d and tube thickness t.
2 EI 1 2E 2
b = = (x + x22 )
l 2 dt 8l 2 1
2500 2 E
g2 (X) = 2 (x12 + x22 ) 0
x1 x2 8l
The side constraints are given by
g1 (X) = 2500
500 0 f (X ) = 10
x1 x2
f (X ) = 15
2500 2 E
g2 (X) = x1 x2 8l 2
(x12 + x22 ) 0
f (X ) = 20
f (X ) = 25
f (X ) = 30
f (X ) = 35
f (X ) = 40
f (X ) = 45
f (X ) = 50
g1 (X )
g2 (X )
Constraints
Constrained optimization problem
Unconstrained optimization problem
Geometric Programming
A geometric programming problem (GMP) is one in which the
objective function and constraints are expressed as posynomials in X.
Find X which minimizes
a
f (X ) = ci xj ij , ci > 0, xj > 0, i = 1, 2, ..., N0 , j = 1, 2, ..., n (4)
subject to
q
gk = aik xj ijk , aik > 0, xj > 0, k = 1, 2, ..., m
f (X ) = c + qi xi + Qij xi xj (5)
subject to
Example 2
Consider the slider-crank mechanism shown in Figure 6 with the crank
rotating at a constant angular velocity . Use a graphical procedure to
find the lengths of the crank and the connecting rod to maximize the
velocity of the slider at a crank angle of = 30 for = 100rad/s. The
mechanism has to satisfy Groshofs criterion l 2.5r to ensure 360
rotation of the crank. Additional constraints on the mechanism are given
by 0.5 r 10, 2.5 l 25 and 10 x 20.
Crank, length=r
Connecting rod, length=l
Slider
A1 , A2 , A3 = Relative Maxima, f = 0, f < 0
A2 = Global Maximum
f (x) A2
B1 , B2 = Relative Minima, f = 0, f > 0
A3
B1 = Global Minimum
A1
B2
B1
a b x
a)
f does not exist
f (x) f (x) but f (x ) is local minimum
Stationary
Point, f (x) = 0
No optima m m+
o x
x x
b) c)
Example 3
Determine the maximum and minimum values of the function
50
f (x)
40
Point 1:
f (x) = 0 30
Inflection Point
Point 2: 20
f (x) = 0
f (x)
Local Maximum 10 2
1
Point 3: 0
f (x) = 0
Local Minimum -10
3
-20
-30
-1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5
x
G. S. Tibba (MeU) Engineering Optimization - DMS6036 42 / 113
Classical Optimization Techniques Single Variable Optimization
rth Differential of f at x
r f (x )
d r f (x ) = hi hj ...hk (7)
xi xj ...xk
Example 4
Find the second order Taylors series approximation of the function
f (x1 , x2 , x3 ) = x22 x3 + x1 e x3
Necessary condition
If f (x) has an extreme point (maximum or minimum) at x = x and if the
first partial derivatives of f (x) exist at x , then
f (x ) f (x ) f (x )
= = ... = =0
x1 x2 xn
Sufficient condition
A sufficient condition for a stationary point x to be an extreme point is
that the matrix of second partial derivatives (Hessian matrix) of f (x )
evaluated at x is
1 Positive definite when x is a relative minimum point
2 Negative definite when x is a relative maximum point
Tests for positive definiteness of matrix A:
1 Eigenvalue test: 1 > 0, 2 > 0, ..., n > 0.
2 Scalar xT Ax > 0 for x > 0
G. S. Tibba (MeU) Engineering Optimization - DMS6036 45 / 113
Classical Optimization Techniques Multi Variable Optimization with no Constraints
Example 5
The following figure shows two frictionless rigid bodies (carts) A and B
connected by three linear elastic springs having spring constants k1 , k2 ,
and k3 . The springs are at their natural positions when the applied force P
is zero. Find the displacements x1 and x2 under the force P by using the
principle of minimum potential energy.
k1 B
A
k2 k3
P
x1 x2
Pk3 P(k2 + k3 )
x1 = , and x2 =
k1 k2 + k1 k3 + k2 k3 k1 k2 + k1 k3 + k2 k3
J1 = |k2 + k3 |= k2 + k3 > 0
k2 + k3 k3
J2 = = k1 k2 + k1 k3 + k2 k3 > 0
k3 k1 + k3
since the spring constants are always positive. Thus the matrix J is
positive definite and hence (x1 , x2 ) corresponds to the minimum of
potential energy.
Semi-definite case
The sufficient conditions for the case when the Hessian matrix of the
given function is semi-definite:
d r f |x=x = 0 where 1 r k 1
d k f |x=x 6= 0
so that d k f |x=x is the first nonvanishing higher-order differential of f at
x .
G. S. Tibba (MeU) Engineering Optimization - DMS6036 49 / 113
Classical Optimization Techniques Multi Variable Optimization with no Constraints
If k is even:
x is a relative minimum if d k f |x=x is positive definite
x is a relative maximum if d k f |x=x is negative definite
If d k f |x=x is semidefinite, no general conclusions can be drawn
If k is odd, x is not an extreme point of f (x ).
Saddle Point
In the case of a function of two variables f (x, y ), the Hessian matrix
may be neither positive nor negative definite at a point (x , y ) at
which
f f
= =0 (9)
x y
In such a case, the point (x*,y*) is called a saddle point.
The characteristic of a saddle point is that it corresponds to a relative
minimum or maximum of f (x, y ) wrt one variable, say, x (the other
variable being fixed at y = y ) and a relative maximum or minimum
of f (x, y ) wrt the second variable y (the other variable being fixed at
x ).
G. S. Tibba (MeU) Engineering Optimization - DMS6036 50 / 113
Classical Optimization Techniques Multi Variable Optimization with no Constraints
Example 6
Consider the function f (x, y ) = x 2 y 2 . For this function:
f f
= 2x, = 2y
x y
These first derivatives are zero at x = 0 and y = 0. The Hessian matrix
of f at (x , y ) is given by:
2 0
J=
0 2
Since this matrix is neither positive definite nor negative definite, the point
(x = 0, y = 0) is a saddle point.
It can be seen from the figure that f (x, y ) = f (x, 0) has a relative
minimum and f (x , y ) = f (0, y ) has a relative maximum at the saddle
point (x , y ).
f (x, y )
(x , y )
f(x,y)=x^2-y^2
2
2.0
1.5
1.0
0.5
0.0
2.0 0.5 y
1.5
1.0
0.5 1.0
0.0
0.5 1.5
1.0
x 1.5 2.0
2.0
Example 7
Find the extreme points of the function
f (x, y ) = x 3 + y 3 + 2x 2 + 4y 2 + 6
To find the nature of these extreme points, we have to use the sufficiency
conditions. The second order partial derivatives of f are given by:
2f 2f
= 6x + 4, =0
x 2 xy
2f 2f
= 0, = 6y + 8
y x y 2
The Hessian matrix of f is given by:
6x + 4 0
J=
0 6y + 8
20
18
16
f(x,y)
14
12
10
1.0
0.5
0.0
0.5
2.0
1.0
1.5
1.0 1.5 y
0.5 2.0
0.0 2.5
x
0.5
1.0 3.0
Example 8
Find the dimensions of a box of largest volume that can be inscribed in a
sphere of unit radius
Solution
Let the origin of the Cartesian coordinate system x1 , x2 , x3 be at the center
of the sphere and the sides of the box be 2x1 , 2x2 , and 2x3 . The volume of
the box is given by:
f (x1 , x2 , x3 ) = 8x1 x2 x3
Since the corners of the box lie on the surface of the sphere of unit radius,
x1 , x2 and x3 have to satisfy the constraint
This problem has three design variables and one equality constraint. Let us
arbitrarily eliminate x3 :
x12
f 2 2 1/2
= 8x2 (1 x1 x2 ) =0
x1 (1 x12 x22 )1/2
x22
f 2 2 1/2
= 8x1 (1 x1 x2 ) =0
x2 (1 x12 x22 )1/2
which can be simplified as: 1 2x12 x22= 0 and 1 x12 2x22= 0
From which it follows that x1 = x2 = 1/ 3 and hence x3 = 1/ 3
G. S. Tibba (MeU) Engineering Optimization - DMS6036 60 / 113
Classical Optimization Techniques Multi Variable Optimization with Equality Constraints
2f 8x1 x2
=
x12 (1 x12 x22 )1/2
x13
8x2 2 2 1/2
+ 2x1 (1 x1 x2 )
1 x12 x22 (1 x12 x22 )1/2
32
=
3
g g
dg = dx1 + dx2 = 0 (13)
x1 x2
G. S. Tibba (MeU) Engineering Optimization - DMS6036 63 / 113
Classical Optimization Techniques Multi Variable Optimization with Equality Constraints
Example 9
A beam of uniform rectangular cross section is to be cut from a log having
a circular cross section of diameter 2a. The beam has to be used as a
cantilever beam (the length is fixed) to carry a concentrated load at the
free end. Find the dimensions of the beam that correspond to the
maximum tensile (bending) stress carrying capacity.
a
2y
x, Neutral Axis
x 2 + y 2 = a2
2x
which gives us, x2 = 2x1
Back substitution in the constraint equation gives, x1 = a and
3
x2 = 2 a3