Professional Documents
Culture Documents
f (x ) f (x )
f ' ( x) = 0
f ' ( x) = 0
f ' ( x) 0
x x
x * x*
• Further, the sign of the second derivative f ′′ (x) conveys, as a sufficiency condition, the
nature of the optima at the location of zero slope. We would expect at a maximum that
the slope would start decreasing as x increases and vice versa at a minimum, that is, the
rate of change of slope d2f (x)/dx2 < 0 at a maximum and > 0 at a minimum. 3
Optimization
Classification
➢ Single variable optimization
- Direct method – do not use derivative of objective function – search
process
- Gradient based method
➢ Multivariable optimization
- unconstrained, multivariable (Taylor series expansion)
– different search methods
- Constrained ... both use single variable/ multivariable repeatedly
maintain search effort
• Linear programming (objective function is linear)
• Non-Linear programming
- Sequential Quadratic Programming (SQP)
➢ Non-traditional optimization
- Genetic algorithm (GA)
- Artificial neural networks (ANNs)
etc.
4
Optimization
• These methods are analytical and make use of the techniques of differential
calculus in locating the optimum points.
• Since some of the practical problems involve objective functions that are not
continuous and/or differentiable, the classical optimization techniques have
limited scope in practical applications.
5
Optimization Single variable optimization
6
Optimization Single variable optimization
7
Optimization Single variable optimization
Necessary condition
8
Optimization Single variable optimization
Necessary condition
f(x * + h) − f(x*)
lim = m + (positive) or m - (negative)
h→0 h
depending on whether h
approaches zero through positive
or negative values, respectively.
Unless the numbers m+ or m- are
equal, the derivative fʹ (x*) does
not exist. If fʹ (x*) does not exist,
the theorem is not applicable.
9
Optimization Single variable optimization
Sufficient condition
10
Optimization Single variable optimization
Example
Example
Solution cont’d:
At x=0, f″ (x)=0 and hence we must investigate the next derivative.
12
Optimization Linear Programming
Multivariable Optimization
Linear Programming (LP)
- Linear programming determines the way to achieve the best outcome (such as
maximum profit or lowest cost) in a given mathematical model and given some
list of requirements represented as linear equations.
13
Optimization Linear Programming
14
Optimization Linear Programming
• Graphical Solution
15
Optimization Linear Programming
Prototype example
• The Wyndor Glass Co. produces high-quality glass products, including windows and
glass doors. It has three plants.
• Each product will be produced in batches of 20. The production rate is defined as the
number of batches produced per week.
• The company wants to know what the production rate should be in order to maximize
their total profit, subject to the restriction imposed by the limited production capacities
available in the 3 plants.
16
Optimization Linear Programming
(a) Number of hours of production time available per week in each plant for
these two new products. (Most of the time in the 3 plants is already
committed to current products, so the available capacity for the 2 new
products is quite limited).
• Number of hours of production time available per week in Plant 1 for the
new products: 4
• Number of hours of production time available per week in Plant 2 for the
new products: 12
• Number of hours of production time available per week in Plant 3 for the
new products: 18
17
Optimization Linear Programming
(b) Number of hours of production time used in each plant for each batch produced
of each new product (Product 1 requires some of the production capacity in
Plants 1 and 3, but none in Plant 2. Product 2 needs only Plants 2 and 3).
Number of hours of production time used in Plant 1 for each batch produced of
Product 1: 1
Number of hours of production time used in Plant 2 for each batch produced of
Product 1: 0
Number of hours of production time used in Plant 3 for each batch produced of
Product 1: 3
Number of hours of production time used in Plant 1 for each batch produced of
Product 2: 0
Number of hours of production time used in Plant 2 for each batch produced of
Product 2: 2
Number of hours of production time used in Plant 3 for each batch produced of
Product 2: 2
18
Optimization Linear Programming
19
Optimization Linear Programming
Thus, x1 and x2 are the decision variables for the model. Using the data of Table ,
we obtain:
20
Optimization Linear Programming
➢ Graphical Solution
The Wyndor Glass Co. example is used to illustrate the graphical solution.
Shaded area shows values of (x1, x2) Shaded area shows values of (x1, x2) ,
allowed by x1 ≥ 0, x2 ≥ 0, x1 ≤ 4 called feasible region
21
Optimization Linear Programming
22
Optimization Linear Programming
Objective Function:
The function being maximized or minimized is called the objective
function.
Constraint:
The restrictions of LP Model are referred to as constraints.
The first m constraints in the previous model are sometimes
called functional constraints.
The restrictions xj >= 0 are called nonnegativity constraints.
23
Optimization Linear Programming
Infeasible Solution:
A feasible solution is
An infeasible solution is a located in the feasible
solution for which at least one region. An infeasible
solution is outside the
constraint is violated. feasible region.
Feasible Solution:
A feasible solution is a solution
for which all the constraints are
satisfied.
Feasible Region:
The feasible region is the
collection of all feasible
solutions.
24
Optimization Linear Programming
An Example:
25
Optimization Linear Programming
Multiple Optimal
Solutions:
It is possible to have more
than one optimal solution.
An Example
The Wyndor Glass Co. problem
would have multiple optimal
solutions if the objective function
were changed to Z = 3x1 + 2x2
26
Optimization Linear Programming
An Example
The Wyndor Glass Co. problem
would have no optimal solutions if
the only functional constrait were
x1 ≤ 4, because x2 then could be
increased indefinitely in the
feasible region without ever
reaching the maximum value of Z
= 3x1 + 2x2
27
Optimization Linear Programming
28
Optimization Linear Programming
(2,6)
(4,3)
The prototype model has exactly one The modified problem has multiple
optimal solution, (x1, x2) = (2,6), optimal solution, two of these optimal
which is a CPF solution. solutions, (2,6) and (4,3), are CPF
solutions.
29