0% found this document useful (0 votes)
11 views42 pages

02 - Reduced O. T. Introduction

The document provides an introduction to optimization, defining it as the process of finding the best result under given circumstances, and categorizing optimization problems based on various criteria such as constraints and the nature of variables. It discusses different types of optimization problems, including integer and stochastic programming, and introduces concepts like global vs local optima, convex functions, and multi-objective optimization. The document emphasizes the importance of understanding trade-offs in multi-objective optimization and the concept of Pareto-optimal solutions.

Uploaded by

Vishvam Dani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views42 pages

02 - Reduced O. T. Introduction

The document provides an introduction to optimization, defining it as the process of finding the best result under given circumstances, and categorizing optimization problems based on various criteria such as constraints and the nature of variables. It discusses different types of optimization problems, including integer and stochastic programming, and introduces concepts like global vs local optima, convex functions, and multi-objective optimization. The document emphasizes the importance of understanding trade-offs in multi-objective optimization and the concept of Pareto-optimal solutions.

Uploaded by

Vishvam Dani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 42

Operations Research and Optimization Techniques

Introduction to Optimization
Nagaraj Shanbhog, M.Tech. Ph.D.
Mechanical Engineering Department
Faculty of Technology and Engineering
The M. S. University of Baroda
2023

1
Optimization - Introduction
 Optimization is the act of obtaining the best result under given
circumstances.
 Optimization can be defined as the process of finding the conditions
that give the maximum or minimum of a function.
 The optimum seeking methods are also known as “mathematical
programming” techniques and are generally studied as a part of
operations research.
A typical single variable optimization or a mathematical programming problem.
f(x): Objective function
Minimize f(x)
subject to h(x)=c x: Decision/Design variables
g(x)≥ b h(x)=c: Equality constraint
g(x)≥ b: Inequality constraint
f*(x) : Solution; x*: Value of decision variable at optimal solution
Optimization - Introduction
Types of optimization problems - Classification can be based on different criteria
(1) Based on presence of constraints (5) Permissable values of the variables
 Unconstrained optimization problems  Continuous variable, Real valued
 Constrained optimization problems programming problems
(2) Based on number of variables  Integer programming problems
 Single variable optimization problems  Mixed-inter programming problems
(one dimensional)
 Multi variable optimization problems (6) Based on Nature of Objective function
and constraints (Nature of the equations)
(multi dimensional)  Linear programming problems
(3) Based on number of objectives  Non linear programming problems
 Single objective optimization problems
 Multi objective optimization problems  Non linear programming problems
 Linearly constrained N-L programming
(4) Based on Nature of variables (Certainty) problems
 Deterministic optimization problems  Quadratic programming problems
 Stochastic optimization problems  Geometric programming problems
Optimization - Introduction
Integer Programming Problem
• If some or all of the design variables x1,x2,..,xn of an optimization problem are
restricted to take on only integer (or discrete) values, the problem is called an
integer programming problem.
• If all the design variables are permitted to take any real value, the optimization
problem is called a real-valued programming problem.
Stochastic Programming Problem
• A stochastic programming problem is an optimization problem in which some or
all of the parameters (design variables and/or preassigned parameters) are
probabilistic (nondeterministic or stochastic).
• In other words, stochastic programming deals with the solution of the optimization
problems in which some of the variables are described by probability distributions.
Optimization - Introduction
What is a Function?

•Is a rule that assigns to every choice of x a unique value y =ƒ(x).


•Domain of a function is the set of all possible input values (usually x),
which allows the function formula to work.
•Range is the set of all possible output values (usually y), which result
from using the function formula.
Optimization - Introduction Function - Types
• Continuous, discontinuous and discrete If the supplier offers the
following quantity discount
effect on total cost curve and the
order quantity?
Order quantity Cost (per unit)
0-99
100- 199 less 5%
200 – 299 less 10%
300 and above less 12%
Optimization - Introduction
Function - Types
Monotonic and Unimodal functions
Monotonic:

A monotonic increasing function

Unimodal:
ƒ(x) is unimodal on the interval if and
only if it is monotonic on either side of the single
optimal point x* in the interval.
An unimodal function

-Multimodal:
A multimodal function
Optimization - Introduction
Single variable optimization
• Useful in finding the optimum solutions of continuous and differentiable
functions
• 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 .
Optimization - Introduction Optimization terminology
(a) The unbounded domain (b) The bounded domain

 Representation of optimum
points.
 (a) The unbounded domain and
 function (no global
(b) The bounded optimum).
domain and function
(global minimum and maximum
exist).
Optimization - Introduction Optimization terminology
Types of minima/maxima (Optima)

• A function f (x) is said to have a global or absolute minimum at x* if f (x*) ≤ f


(x) for all x, and not just for all x close to x*, in the domain over which f (x) is
defined.
• Similarly, a point x* will be a global maximum of f (x) if f (x*) ≥ f (x) for all x
in the domain.
Optimization - Introduction Optimization terminology
Stationary points
For a continuous and differentiable function f(x), a stationary
point x* is a point at which the slope of the function is zero,
i.e. f ʹ(x) = 0 at x = x*,
A function is said to have a relative or local minimum at x
= x* if f(x*) ≤ f(x*+h) for all sufficiently small positive and
negative values of h, i.e. in the near vicinity of the point x*.
• Similarly, a point x* is called a relative or local maximum
if f(x*) ≥ f(x*+h) for all values of h sufficiently close to zero.

Inflation points
• A point x* is said to be an inflection point if the function
value increases locally as x* increases and decreases
locally as x* reduces
Optimization - Introduction
Example: Solve the following:
Global vs. local optima
Minimize f(x)=x3-17x2+80x-100
Example: Solve the following:
Solution: f’(x)=3x2-34x+80=0
Minimize f(x)=x2.
Solving the above results in x=3.33 and x=8.
Solution: f’(x)=2x=0x*=0.
This solution is a local optimum. Issue#1: Which is the best solution?
It is also the global optimum Issue#2: Is the best solution the global solution?
Issue#1: Which is the best
solution?
x=8
Issue#2: Is the best
solution the global
solution?
No! It is unbounded.
Optimization - Introduction
Convex functions
Definition #1: A function f(x) is Definition #2: A function f(x) is convex if a
convex in an interval if its second line drawn between any two points on the
derivative is positive on that function remains on or above the function in
interval. the interval between the two points.
Example: f(x)=x2 is convex since Is a linear function convex?
f’(x)=2x, f’’(x)=2>0

Answer is “yes” since a line


drawn between any two
The second derivative test is points on the function
sufficient but not necessary. remains on the function.
Optimization - Introduction
Convex Sets
A set C is convex if a line segment
between any two points in C lies in C.

Ex: Which of the below are convex sets?

The set on the left is convex. The


set on the right is not.
Optimization - Introduction
Convex Polygon and Convex Polyhedron:
In geometry, a convex polygon is a polygon that is the boundary of a
convex set created by straight lines..
In geometry, a polyhedron is a three-dimensional shape with flat
polygonal faces, straight edges and sharp corners or vertices.
Optimization - Introduction
Multivariable optimization problems (Multi dimensions)
• How big N (Dimensions)can be?
– problem sizes can vary from a handful of parameters to many
– consider examples for N=2, so that the function surfaces can be
visualized.
Optimization - Introduction
Contour maps and 3-D illustrations
Example: Draw the 3-D surface for
f ( x1 , x2 )  x12  x22
Height
f(x)
Contour map Contours
Each contour of fixed value f is the projection
onto the x1-x2 plane of a horizontal slice made
of the 3-D figure at a value f above the x1-x2
plane.
Definition: A contour map is a 2-dimensional
plane, i.e., a coordinate system in 2 variables,
say, x1, x2, that illustrates curves (contours) of
constant functional value f(x1, x2).
Optimization - Introduction  Contour plot

2.5

1.5 0.1
0. 1
0.2 0.3 0. 2
1 0.4
0.5
0.5 0.
6
0.1

0. 4

0.7
0.3

0.4

0
7
0.1

0. 0.8 0. 5
0. 3
0.2

-0.5 5
0.

0.
2

0.6
-1 0.4
0.3
0. 1 0.2
-1.5 0.1

-2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Optimization - Introduction  Contour plot
 Global optimum Vs Local optimum (In two dimensions)
Multi-objective Optimization
• Optimization of multiple objective (more than one) objective functions at the
same time.
• Different in the optimal solutions corresponding to each objectives because
the objective functions are often conflicting (competing) to each other.
• No one solution can be considered to be better than any other with respect
to all objective functions. The non-dominant solution concept.
• Set of trade-off optimal solutions instead of one optimal
solution, generally known as “Pareto-Optimal” solutions
(named after Italian economist Vilfredo Pareto.
Pareto noticed that many economic solutions helped some people
while hurting others. He was interested in finding solutions that helped
some people without hurting anyone else. Solutions like this are now
called “Pareto improvements.”
 The evaluation of solutions in MOO is different: In seeking Vilfredo Pareto
an optimal or best overall solution, the goal is to quantify the (1848 -1923)
degree of conflict (trade-off)
Multi-objective Optimization MOO problem solution Approaches
• Traditional Approaches (Non-Pareto Techniques) - A priori
The preferences ( Relative importance) are known before solution
• Aggregating approaches :
Aggregating the objectives into a single and parameterized
objective function and performing several runs with different
parameter settings to achieve a set of solutions.
– Weighted sum method
• Convert multiple objectives into one single objective using weights and summation:
• Determine the importance of each objective function assigning it a weight (w)
• Add up all functions:
min Z = ( w1 z1 + w2 z2 +…+ wn zn )
– Goal programming
Where, w1+w2+… approach:
=1 Target level of each objective rather than
maximized or minimized function. Goals are soft constraints.
The Optimizing the Objective is to minimize the deviation fro the goals.
Multi-objective Optimization MOO problem solution Approaches
Posteriori aproach solutions
For conflicting objectives the optimality concept may be inappropriate
So, what does optimal mean in this case?
A new concept that can measure solutions against multiple, conflicting
objectives is : the non-inferiority concept
Terms used: Dominance (mathematical programmers), Efficiency
(statisticians and economists) Pareto optimality (welfare economists)
A solution is non-inferior or non dominated, if there exists no other feasible
solution with better performance with respect to any objective without having
worse performance for at least one other objective
Multi-objective Optimization Posteriori aproach solutions
Pareto - optimal solutions • Pareto front: The curve formed by joining all
• Multi-objective optimization Pareto - optimal solutions in function space
leads to a set of optimal Objective Space,
Variable Space
solutions (known as Pareto- Decision Space Function Space
optimal solutions) since no (Design Space) (Criterion Space)
solution can be considered
better than any other
regarding all the objectives
• Find all the pareto optimal
solutions (a set of Non-
dominated solutions)
• The decision Maker has
option to explores this set
to select a suitable
solution.
Decision Space Vs. Objective Space
Multi-objective Optimization Which Solutions are Optimal?
Posteriori approach Solutions
Concept of Domination
Dominated and Non-dominated solutions
• Non-dominated : given two objectives, a non-
dominated solution is when no other solutions are
better with respect to both the objectives.
• Dominated: when solution can be further improved at
least in one objective without compromising the other
objective.
A solution x(1) is said to dominate the other solution x(2),
if both conditions a and b are true:
(a) The solution x(1) is no worse that x(2) in all objectives.
(b) The solution x(1) is strictly better than x(2) in at least
one objective. Examples:
3 dominates 2,1 ; 5 dominates2,4;
3 does not dominate 5 Seek Non dominated Solutions
Multi-objective Optimization
Pareto optimum set consists of
the solutions which cannot be
improved with respect to all The
functions at the same time.
 Depends on the type of objectives
 Definition of domination takes care
of possibilities
 Always on the boundary of feasible
region

- Evolutionary Multi-
objective Optimization
(EMO) Algorithms
Pareto-Optimal Fronts
Multi-objective Linear programming problem Pareto - optimal solutions
Total cost Minimize Z1= f1(x) = 2000x1 + 500x2 Function space
f2
Total time Minimize Z2= f2(x) = x1 + 2x2 Objective space
Subject to 2x1 + 2x2 ≥ 16 (1) If there is only one point that Criterion Space
minimize both cost and time,
x1 + 5x2 ≥ 28 (2) obviously that would be the A (4000, 16)
solution; but often, there are C
D
Variable space different optimal points for
Decision space each objective. B (8500, 13)
x2
Design Space f1
Line segment AB
Z1 time16h Line segment AB in function
between the two optimal
(optimal cost) Z2 cost = Rs.8500 points represents Non space is ‘Pareto front’
Z1 =cost = Rs.4000 (optimal time) dominant solutions. Any point on this front is
Z2=Time=13h
x1 x2 f1 f2 considered “Pareto optimal”.
A (0, 8) C By moving along the curve,
D A 0 8 4000 16
B(3, 5) you could minimize cost at the
x1 C ? ? 5500 15 expense of time, or minimize
time at the expense of cost,
D ? ? 7000 14 but you can not improve both
(1) 3 5 8500 13 at once.
(2) B
Example: Single objective NL
constrained Optimization Subject to -x1 - x2 + 10 ≤ 0 (1)
GRAPHICAL SOLUTION
-2x1 + 3x2 -10 ≤ 0 (2)
Solution:
Figure is a graphical representation of
the problem. The feasible set S is
convex, as shown in the figure.

A few objective function contours are


also shown. It is seen that the problem
has a distinct minimum at the point A(4,
6) with the objective function value of
f1(4,6) = 5. At the minimum point, both
constraints are active.

Point A represents the unique global


Multi-objective Optimization problem
Graphical Solution
Subject to -x1 - x2 + 10 ≤ 0 (1)
-2x1 + 3x2 -10 ≤ 0 (2)
Figure is a modification of Figure 17.1, where the contours
of the second objective function are also shown.
The minimum value of f2 is 3.25 at B(5.5, 7). Point B is a
unique global minimum for f2.
The minimum points for the two objective functions are
different.
Therefore, if one wishes to minimize f1 and f2 simultaneously,
pinpointing a single optimum point is not possible.
In fact, there are infinitely many possible solution points,
called the Pareto optimal set, which is explained. The
challenge is to find a solution that suits requirements of the
designer.
Multi-objective Optimization problem Variable space
f2 =6.5
Decision space
Function space x1 x2 f1 f2 Design Space
f2 Objective space A 4 6 5 6.5
Criterion Space C ?
? ? ?
D ? ? ? ?
B 5.5 7 16.25 3.25 f2 =3.25
B(5.5, 7)
D
C
f1 =5 A
(4, 6)
A(5, 6.5)
C
D B (16.5, 3.25)

f1 =16.25

f1
Multi-objective Optimization
Multi-objective Optimization
OPTIMIZATION PROBLEMS - CLASSIFICATION
ample:
The Local bag manufacturing Company manufactures standard school and office bags.
Products require.(1) cutting of material (Outer and inner) and (2) stitching and finishing.
The following is the formulated product mix LP model
Maximize profit z =
GRAPHICAL
5 LP SOLUTION
0
X
X2
1 40 –
Optimal Solution at Point A
+
X1 = 0 School bags 30 –
X2 = 20 Office bags 1
Profits = Rs. 2,400 2
0 20 – Profit Line for 50X1 + 120X2
A(0, 20) (Passes through Point A)
X
2
B
10 –
Subject to
| | | | | |
0– 10 20 30 40 50 60 X1
C
Sensitivity Analysis
 Optimal solutions to LP problems have been found under what are called deterministic assumptions
 This means that we assume complete certainty in the data and relationships of a problem
 But in the real world, conditions are dynamic and changing
 We can analyze how sensitive a deterministic solution is to changes in the assumptions of the model
 This is called sensitivity analysis , postoptimality analysis or parametric programming

Sensitivity analysis often involves a series of what-if Questions concerning to changes in


constraints, variable coefficients, and the objective function coeff.
The answer is to use an analytic postoptimality analysis
Sensitivity analysis means determining effects of changes in parameters on the
solution. It is also called What if analysis, Parametric analysis, Post optimality analysis, etc,. It
is not restricted to LP problems.
After a problem has been solved, we determine a range of changes in problem
parameters that will not affect the optimal solution or change the variables in
the solution without re-solving the entire problem
Sensitivity analysis can be used to deal with errors in estimating input
parameters to the LP model and also with management’s experiments with
possible future changes in the firm that may affect profits
Sensitivity Analysis
Changes in the Objective Function Coefficient
 In real-life problems, contribution rates in the objective functions fluctuate
periodically
 Graphically, this means that although the feasible solution region remains
exactly the same, the slope of the isoprofit or isocost line will change
 We can often make modest increases or decreases in the objective function
coefficient of any variable without changing the current optimal corner point
 We need to know how much an objective function coefficient can change
before the optimal solution would be at a different corner point
Sensitivity Analysis
Changes in the Objective Function Coefficient
 Changes in the receiver contribution coefficients Objective function coeff.

X2 Ans: As long as the slope of the Maximize profit = 50X1 + 120X2


objective function isoprofit line Q: How much the unit profit of
40 –
stays within the binding constraints office bags can go up or down
from 120 without changing the
30 – Profit Line for 50X1 + 80X2 current optimal production
(Passes through Point B)
quantities?
20 – Profit Line for 50X1 + 120X2
A (Passes through Point A)
Profit Line for 50X1 + 150X2
10 – B (Passes through Point A)

| | C | | | |
0– 10 20 30 40 50 60 X1

Software in sensitivity analysis also provide Windows and Changes in Objective Function
Coefficients
Sensitivity Analysis
Changes in the Constraint Coefficients
 If the amount of resources needed to produce a product changes, coefficients
in the constraint equations change
 This does not change the objective function, but it can produce a significant
change in the shape of the feasible region
 This may cause a change in the optimal solution

X2 (a) Original Problem X2 (b) Change in Circled X2 (c) Change in Circled


Coefficient Coefficient
60 – 60 – 60 –
3X1 + 1X2 ≤ 60 2 X1 + 1X2 ≤ 60 3X1 + 1X2 ≤ 60

40 – 40 – 40 –
Optimal Optimal Optimal
Solution unchanged Solution
20 – 20 – 2X1 + 4X2 ≤ 80 20 –
16
2X1 + 4X2 ≤ 80 2X1 + 5 X2 ≤ 80
| | | | | | | | | | |
0– 20 30 40 X1 0– 20 40 X1 0– 20 30 40 X1
Sensitivity Analysis
Changes in Resources or Right-Hand-Side Values Constraint
Coefficients :
 The right-hand-side values of the constraints often represent resources available
 If additional resources were available, a higher total profit could be realized
 Sensitivity analysis about resources will help answer questions such as:
 How much should the company be willing to pay for additional hours?
 Is it profitable to have some cutting work overtime?
 Should we be willing to pay for more titching and finishing time?

 If the right-hand side of a constraint is changed, the feasible region will change
(unless the constraint is redundant) and often the optimal solution will change
 The amount of change (increase or decrease) in the objective function value that
results from a unit change in one of the resources available is called the dual price
or dual value
Sensitivity Analysis
Changes in Resources or Right-Hand-Side Values Constraint
Coefficients :
 However, the amount of possible increase in the right-hand side of a resource is
limited
 If the number of hours increases beyond the upper bound (or decreases below
the lower bound), then the objective function would no longer increase
(decrease) by the dual price.
 There may be excess (slack) hours of a resource or the objective function
may change by an amount different from the dual price.
 Thus, the dual price is relevant only within limits.
 If the dual value of a constraint is zero
 The slack is positive, indicating unused resource
 Additional amount of resource will simply increase the amount of slack.
 The upper limit of infinity indicates that adding more hours would simply
increase the amount of slack.
Sensitivity Analysis
Changes in Resources or Right-Hand-Side Values Constraint Coefficients :
Cutting is a binding constraint; increasing the resource will Shadow price represents change in
increase the solution space and move the optimal point. the objective function value per one-
Stitching is a nonbinding constraint; increasing the resource will unit increase in the RHS of the
increase the solution space and but will not move the optimal point. constraint. In a business application, a
The cutting hours are changed from 80 to 100, the X2
X2 new optimal solution is (0,25) with profit of 3,000.
shadow price is the maximum price
The extra 20 hours resulted in an increase in profit that we can pay for an extra unit of a
60 – of 600 or 30/hour 60 – given limited resource.Right Hand Side
Max. z =
5 (RHS).
0 – Max. z =
X 5
40 –
A(0,25) Constraint 60 Hours 40 – 0
1
Profit Line for 50X1 + 120X2 A = (0,20) X
a
25 – (Passes through Point A) + – 1

b Changed Constraint Profit Line for 50X1 + 120X2


20 – Representing cutting100 120 – (Passes through+ Point A)
Hours 2
010 – 1
c X | | | | | |
2
| | | |
0– 0
0– 20 40 60 70 10 20 30 40 50 60 X1
X1 2
X
s.t.
2 2
Sensitivity Analysis
Changes in Resources or Right-Hand-Side Values Constraint Coefficients :
Shadow price represents change in the objective
If the hours are decreased to 60, the new solution is function value per one-unit increase in the RHS of
(0,15) and the profit is 1,800. Reducing hours by 20 the constraint. In a business application, a shadow
results in a 600 decrease in profit or 30/hour price is the maximum price that we can pay for an
extra unit of a given limited resource.
X2

Max. z = Max. z =
60 – 5 60 – 5
0 0
X – X
Constraint 1 1

40 – Representing 60 40 –
Hours + A (0,20) +
Profit Line for 50X1 + 120X2 – Profit Line for 50X1 + 120X2
A(0,15)
(Passes through Point A) 1 (Passes through Point A) 1
Changed Constraint 2 20 – 2
20 ––
15 Representing 60 0
0
Hours X 10 – X
2
| | | 2 | | | | | |
s.t.40 0–
10 20
s.t.
30 40 50 60
0– 20 60 X1 X1
2 2
Sensitivity Analysis
Changes in Resources or Right-Hand-Side Values Constraint Coefficients :
 If total cutting time was increased to
Max. z = 240, the optimal solution would be
5 (0,60) with a profit of 7,200. This is
0 2,400 (the original solution) + 30 (dual
A(0,60) X price)*160 hours(240-80)
1  If the hours increases beyond 240,
Changed Constraint
60 – Representing 240 Hours
+ then the optimal solution would
still be (0,60) and profit would not
Profit Line for 50X1 + 120X2
1
(Passes through Point A)
increase. The extra time is slack
2 during which the cutting are not
40 – 0 working
X
Constraint
2
Representing
s.t. 60 Hours
20 – 2
X
1
| | | | | |
0
– 20 40 60 + 80 100 120

You might also like