Introduction To Optimization and LP PDF
Introduction To Optimization and LP PDF
Chapter No. 2
1
3/6/2023
ELECTROTECH CASE
• The Electrotech Corporation manufactures two industrial-sized
electrical devices: Generators and Alternators.
• Both of these products require wiring and testing during the
assembly process.
• Each generator requires 2 hours of wiring and 1 hour of testing
and can be sold for a $250 profit. Each alternator requires 3
hours of wiring and 2 hours of testing and can be sold for a
$150 profit. There are 260 hours of wiring time and 140 hours
of testing time available in the next production period.
Electrotech wants to maximize profit.
Introduction
• We all face decision about how to use limited resources such
as:
– Oil in the earth
– Land for dumps
– Time
– Money
– Workers
2
3/6/2023
Introduction (Contd..)
• In today’s competitive business environment, it is increasingly
important to make sure that a company’s limited Resources
are Used in the Most Efficient Manner Possible.
• Typically, this involves determining how to allocate the
resources in such a way as to maximize profits or minimize
costs.
Mathematical Programming...
• Mathematical Programming is a field of management science
that finds the optimal, or most efficient, way of using limited
resources to achieve the objectives of an individual or a
business.
• a.k.a. Optimization.
3
3/6/2023
Applications of Optimization
1. Determining Product Mix
2. Manufacturing
4. Financial Planning
4
3/6/2023
5
3/6/2023
4. Financial Planning
The federal government requires individuals to begin
withdrawing money from individual retirement accounts (IRAs)
and other tax-sheltered retirement programs no later than age
70.5.
Various rules must be followed to avoid paying penalty taxes on
these withdrawals.
Most individuals want to withdraw their money in a manner
that minimizes the amount of taxes they must pay while still
obeying the tax laws.
Characteristics of Optimization
1. Decisions (Alternatives)
2. Restrictions/Limitations (Constraints)
3. Goals/Seek (Objectives)
6
3/6/2023
7
3/6/2023
f(X , X , . . . , Xn)
1 2 ≤ b
f(X , X , . . . , Xn)
1 2 ≥ b
f(X , X , . . . , Xn)
1 2 = b
8
3/6/2023
Linear Programming
• Linear programming (LP), which involves creating and
solving optimization problems with linear objective
functions and linear constraints.
• LP is a very powerful tool that can be applied in many
business situations. It also forms a basis for several other
techniques discussed later and is, therefore, a good
starting point for our investigation into the field of
optimization.
9
3/6/2023
Requirements of a
Linear Programming Problem
• Four properties in common
Formulating LP Models
• The process of taking a practical problem—such as determining how many
Aqua-Spas and Hydro-Luxes Howie should produce—and expressing it
algebraically in the form of an LP model is known as formulating the model.
10
3/6/2023
State the
State the
objective Identify any
constraints as
Identify the function as a upper or lower
Understand linear
decision linear bounds on the
the problem combinations
variables combination of decision
of the decision
the decision variables
variables
variables
11
3/6/2023
12
3/6/2023
Constraint 1 1 X1 + 1 X2 ≤ 200
This constraint indicates that each unit of (X1) produced (i.e., each Aqua-Spa built) will use one of the 200 pumps
available—as will each unit of (X2) produced (that is, each Hydro-Lux built). The total number of pumps used
(represented by (X1) + (X2) ) must be less than or equal to 200.
13
3/6/2023
Constraint 3 12 X1 + 16 X2 ≤ 2880
The total number of feet of tubing used (represented by 12 X1 + 16 X2) must be less than or equal to the total number
of feet of tubing available, which is 2,880.
14
3/6/2023
Constraint 3 X1 ≥ 0
X2 ≥ 0
Constraints like these are often referred to as non-negativity conditions and are quite common in LP problems.
15
3/6/2023
16
3/6/2023
17
3/6/2023
Formulating LP Problems
• Developing a mathematical model to represent the
managerial problem
• Steps in formulating a LP problem
1. Completely understand the managerial problem being faced
2. Identify the objective and the constraints
3. Define the decision variables
4. Use the decision variables to write mathematical expressions
for the objective function and the constraints
Formulating LP Problems
• Common LP application – product mix problem
• Two or more products are produced using limited
resources
• Maximize profit based on the profit contribution per unit of
each product
• Determine how many units of each product to produce
18
3/6/2023
HOURS REQUIRED TO
PRODUCE 1 UNIT
(T) (C) AVAILABLE HOURS
DEPARTMENT TABLES CHAIRS THIS WEEK
Carpentry 4 3 240
19
3/6/2023
20
3/6/2023
21
3/6/2023
22
3/6/2023
Using Solver
• Recall the model for Flair Furniture is
Maximize profit = $70T + $50C
Subject to 4T + 3C ≤ 240
2T + 1C ≤ 100
• To use Solver, it is necessary to enter data and
formulas
Using Solver
1. Enter problem data
– Variable names, coefficients for the objective
function and constraints, RHS values for each
constraint
2. Designate specific cells for the values of
the decision variables
3. Write a formula to calculate the value of
the objective function
4. Write a formula to compute the left-hand
sides of each of the constraints
23
3/6/2023
Using Solver
Using Solver
24
3/6/2023
Using Solver
Using Solver
25
3/6/2023
Using Solver
Using Solver
26
3/6/2023
Using Solver
Using Solver
27
3/6/2023
28