Lec 9 OT Problem Formulation
Lec 9 OT Problem Formulation
Lec 9 OT Problem Formulation
Problem Formulation
Dr. Nasir M Mirza
Email: nasirmm@yahoo.com
1
nasir m mirza
Design variables
The formulation of an optimization problem begins with
nasir m mirza
Constraints
Having chosen the design variables, the next task is to identify
nasir m mirza
Constraints
For example, a mechanical engineering component design problem may
involve a constraint to restrain the maximum stress developed anywhere in
the component to the strength of the material.
For example, the stress (a( x)) developed anywhere in a component must be
smaller than or equal to the allowable strength (Sallowable) of the material.
Mathematically,
a(x) <= Sallowable
nasir m mirza
Constraints
Equality constraints state that the functional relationships
should exactly match a resource value.
Constraints
Fortunately, in many engineering design optimization
problems, it may be possible to relax an equality
constraint by including two inequality constraints.
The (x) = 5 deflection equality constraint can be
replaced by two constraints:
(x) > 4,
(x) < 6,
Objective function
The third task in the formulation procedure is to find the
nasir m mirza
Objective Function
The objective function can be of two types.
Either the objective function is to be maximized or it has to be
minimized.
Unfortunately, the optimization algorithms are usually written
either for minimization problems or for maximization
problems and not for both.
Although in some algorithms, some minor structural changes
would enable to perform either minimization or maximization,
this requires extensive knowledge of the algorithm.
Moreover, if an optimization software is used for the
simulation, the modified software needs to be compiled before
it can be used for the simulation.
Fortunately, the duality principle helps by allowing the same
algorithm to be used for minimization or maximization with a
minor change in the objective function instead of a change in
the entire algorithm.
nasir m mirza
10
Objective Function
If the algorithm is
nasir m mirza
11
Objective Function
For example, consider the
maximization of the singlevariable function f( x) = x2 (1 x) shown by a solid line in
Figure 1.2.
12
Objective Function
The figure shows that the
minimum point of the function
f(x) is also at x* = 0.667. Thus,
the optimum solution remains
the same.
13
Objective Function
After the above four tasks are completed, the optimization problem
can be mathematically written in a special format, known as
nonlinear programming (NLP) format. Denoting the design variables
as a column vector: x = (x1, x2, ... , xN )T, the objective function as
a scalar quantity f( x), K inequality constraints as gj(x) > 0, and K
equality constraints as hk(x) = 0, we write the NLP problem:
nasir m mirza
14
nasir m mirza
15
The owner has specified that the annual energy costs should not
exceed $225,000.
16
nasir m mirza
17
nasir m mirza
18
19
20
21
22
Radial tires
Bias-ply tires
June 30
5000
3000
July 31
6000
3000
August 31
4000
5000
Total:
15000
11000
nasir m mirza
23
Gold machine
Black machine
June
700
1500
July
300
400
August
1000
300
nasir m mirza
24
Type
Gold machine
Black machine
Radial
0.15
0.16
.12
0.14
Bias-ply
nasir m mirza
25
The material costs for radial tires are $5.25 per tire and those for biasply tires are $4.15 per tire.
Wholesale prices have been set at $20 per tire for radials and $15 per
tire for bias-ply.
nasir m mirza
26
27
Material costs:
M = $5.25(x1+x2 +x3 +x7 +x8 +x9) + $4.15(x4 +x5 +x6 +x10
+x11+x12)
Labor costs:
L = $10{ 0.15(x1 +x2 +x3) +0.16(x7 +x8 +x9) +0.12(x4 +x5 +x6)
+ 0.14(x10 +x11 +x12)}
nasir m mirza
28
nasir m mirza
29
Inventory cost:
IC = $0.15((x1+x7 - 5,000) + (x4 +x10 - 3,000) + (x1 +x2 +x7 +x8
-11,000) + (x4 +x5 +x10 +x11 - 6,000))
By adding all costs and subtracting from the revenue/ the objective
function to be maximized can be written as follows:
nasir m mirza
30
31
32
nasir m mirza
33
As an example, consider
fitting a surface to the
data given in the
following table:
nasir m mirza
Point
zobserved
1.26
0.25
2.19
0.5
0.76
0.75
1.26
1.00
1.86
1.25
1.43
1.50
1.29
1.75
0.65
2.00
1.60
34
nasir m mirza
35
or
f = 18.7 - 32.8462c1 + 34.2656c12 - 65.58c2 + 96.75c1c2 + 84c22 43.425c3 +79.875c1c3 + 123.c2 c3 +48.375c32
nasir m mirza
36
nasir m mirza
37
38
nasir m mirza
39
nasir m mirza
40
Unconstrained Problems
These problems have an objective function but no constraints.
The data-fitting problem, presented in the first section, is an
nasir m mirza
41
nasir m mirza
42
nasir m mirza
43
nasir m mirza
44
nasir m mirza
45
gradient-based methods.
46
nasir m mirza
47
nasir m mirza
48
nasir m mirza
49
nasir m mirza
50