Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Chap 1.1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

1.

Introduction to Operations Research

Dr. Foo Chuan Hui| M231 21th Oct 2023

Discover theDiscover
world at the world
Leiden at Leiden University
University
Introduction to O.R.

• O.R. is primarily emerged during World War II.

• O.R. was known as Operational Research during


WW2.

• The father of O.R. is often attributed to George Dantzig


who had developed linear programming, a fundamental
technique in operations research

Discover the world at Leiden University 1


Introduction to O.R.

• It is originated in Britain where a team of scientists made maximum use of limited military resources
via quantitative techniques.

• It leads to the optimal solution of the problem which is close to the real solution.

• It is the most effective means in resolving complex problems efficiently (LP, Simulation, Queuing
theory…)

• OR is an analytical method of decision making that is useful in the management of organization such
as businesses and networks of machines.
Examples of machine networks: computer networks, distributed systems, Internet of Things (IoT)

Discover the world at Leiden University 2


Introduction to O.R.
Scope of OR:
OR is known as a multidisciplinary field that applies mathematical and analytical methods to solve
complex problems.
• Business and management.
• Transportation and logistics.
• Healthcare.
• Finance.
• Manufacturing and production.
• Energy and resource management.
• Education etc.

Discover the world at Leiden University 3


Introduction to O.R.
O.R. methodology 1. Formulate
the problem

1. Define the problem clearly and precisely and 2. Construct


establish the objectives through the OR 6. Implement
mathematical
process. the solution
model

2. Express the problem into mathematical


model to show the relationship between the O.R.
parameters: process
- Objective function
- Constraints
- Decision variables 5. Establish
3. Solve the
controls over
model
the solution
3. Three fundamental methods to the solution:
- Analytical method
4. Validate
- Numerical method the model

- Simulation

Discover the world at Leiden University 4


Introduction to O.R.
O.R. methodology 1. Formulate
the problem

4. Comparing the present data with past data, if 6. Implement 2. Construct


the results show the similarity, the given mathematical
the solution
model
model can be accepted.
O.R.
5. Control needs to be setup for detecting the process
changes in the given parameters and
providing feedback whether the changed 5. Establish
3. Solve the
controls over
parameters are accepted or not. the solution
model

6. Monitor the implementation process and 4. Validate


the model
address any issues that arise

Discover the world at Leiden University 5


Mathematical Modeling
Pastry products:
A bakery produces two types of pastries: croissants and muffins. Each pastry is made with a
different recipe, requires different ingredients, and yields a different profit.
Each croissant yields a profit of $2, and each muffin yields a profit of $1. To make one croissant, the
bakery requires 2 cups of flour and 1/4 cup of butter. To make one muffin, the bakery requires 1 cup
of flour and 1/8 cup of butter. There are 20 cups of flour and 4 cups of butter available. The bakery
can make up to 30 pastries in total (croissants and muffins combined).
The bakery wants to determine the best combination of croissants and muffins to maximize profit
while considering constraints.

Discover the world at Leiden University 6


Mathematical Modeling
Pastry products:
A bakery produces two types of pastries: croissants and muffins. Each pastry is made with a
different recipe, requires different ingredients, and yields a different profit.
Each croissant yields a profit of $2, and each muffin yields a profit of $1. To make one croissant, the
bakery requires 2 cups of flour and 1/4 cup of butter. To make one muffin, the bakery requires 1 cup
of flour and 1/8 cup of butter. There are 20 cups of flour and 4 cups of butter available. The bakery
can make up to 30 pastries in total (croissants and muffins combined).
The bakery wants to determine the best combination of croissants and muffins to maximize profit
while considering constraints.

Decision variables:
• x = # of croissants
• y = # of muffins

Discover the world at Leiden University 7


Mathematical Modeling
Pastry products:
A bakery produces two types of pastries: croissants and muffins. Each pastry is made with a
different recipe, requires different ingredients, and yields a different profit.
Each croissant yields a profit of $2, and each muffin yields a profit of $1. To make one croissant, the
bakery requires 2 cups of flour and 1/4 cup of butter. To make one muffin, the bakery requires 1 cup
of flour and 1/8 cup of butter. There are 20 cups of flour and 4 cups of butter available. The bakery
can make up to 30 pastries in total (croissants and muffins combined).
The bakery wants to determine the best combination of croissants and muffins to maximize profit
while considering constraints.

Decision variables: Objective: maximize profit, z


• x = # of croissants z = 2x + y
• y = # of muffins

Discover the world at Leiden University 8


Mathematical Modeling
Pastry products:
A bakery produces two types of pastries: croissants and muffins. Each pastry is made with a
different recipe, requires different ingredients, and yields a different profit.
Each croissant yields a profit of $2, and each muffin yields a profit of $1. To make one croissant, the
bakery requires 2 cups of flour and 1/4 cup of butter. To make one muffin, the bakery requires 1 cup
of flour and 1/8 cup of butter. There are 20 cups of flour and 4 cups of butter available. The bakery
can make up to 30 pastries in total (croissants and muffins combined).
The bakery wants to determine the best combination of croissants and muffins to maximize profit
while considering constraints.

Constraints: Variable domains


• Flour Constraint: 2x + y ≤ 20 Total Pastries Constraint: x + y ≤ 30
• Butter Constraint: ¼ x + 1/8 y ≤ 4 Non-negativity Constraints: x ≥ 0, y ≥ 0

Discover the world at Leiden University 9


Mathematical Modeling
Pastry products:
A bakery produces two types of pastries: croissants and muffins. Each pastry is made with a
different recipe, requires different ingredients, and yields a different profit.
Each croissant yields a profit of $2, and each muffin yields a profit of $1. To make one croissant, the
bakery requires 2 cups of flour and 1/4 cup of butter. To make one muffin, the bakery requires 1 cup
of flour and 1/8 cup of butter. There are 20 cups of flour and 4 cups of butter available. The bakery
can make up to 30 pastries in total (croissants and muffins combined).
The bakery wants to determine the best combination of croissants and muffins to maximize profit
while considering constraints.

We call this a program. It is a linear program, because the objective is a linear function of the
decision variables, and the constraints are linear inequalities (in the decision variables).

Discover the world at Leiden University 10


Mathematical Modeling
Furniture:
A small furniture manufacturer produces two types of furniture: chairs and tables. The profit for
each product is calculated based on the original cost and labor fees. Each chair is sold for $150 and
costs $50 in raw materials, $40 in labor fees, and $10 in overhead expenses. Each table is sold for
$250 and costs $80 in raw materials, $60 in labor fees, and $20 in overhead expenses. The
company has a budget constraint, meaning it can't spend more than $5,000 on raw materials and
labor fees. There's also a space constraint, and the company can produce at most 50 pieces of
furniture.
The company wants to determine the best production plan to maximize profit while considering
resource constraints.

Discover the world at Leiden University 11


Linear Programming

An optimization problem has a standard form:

• We maximize / minimize a linear function of the decision variables. This function is known as
objective function.

• The values of the decision variables must satisfy a set of constraints, each consisting of a linear
equation or linear inequality

• a sign restriction, i.e., usually nonnegative ( xi ≥ 0 ) but perhaps nonpositive ( xi ≤ 0 ), may be


associated with each decision variable.

Discover the world at Leiden University 12


Linear Programming
Example 1:

Max 2𝑥1 + 𝑥2

Constraint to
3𝑥1 − 𝑥2 ≥ 6
2𝑥1 + 3𝑥2 ≤ 12
𝑥1 , 𝑥2 ≥ 0

Discover the world at Leiden University 13


Linear Programming
Solution 1:

Max 2𝑥1 + 𝑥2

Constraint to
3𝑥1 − 𝑥2 ≥ 6
2𝑥1 + 3𝑥2 ≤ 12
𝑥1 , 𝑥2 ≥ 0

Each point in the shaded feasible region satisfies all four inequality constraints is called
feasible solution.

Discover the world at Leiden University 14


Linear Programming
Solution 1:

Max 2𝑥1 + 𝑥2

Constraint to
3𝑥1 − 𝑥2 ≥ 6
2𝑥1 + 3𝑥2 ≤ 12
𝑥1 , 𝑥2 ≥ 0

The optimal solution is the feasible solution for which the objective function is largest.

Discover the world at Leiden University 15


Linear Programming
Solution 1:

By graphing the linear eq.:

2𝑥1 + 𝑥2 = 0,
2𝑥1 + 𝑥2 = 4,
2𝑥1 + 𝑥2 = 12 𝑒𝑡𝑐.

The optimal solution :

Discover the world at Leiden University 16


Linear Programming
Solution 1:

By graphing the linear eq.:

2𝑥1 + 𝑥2 = 0,
2𝑥1 + 𝑥2 = 4,
2𝑥1 + 𝑥2 = 12 𝑒𝑡𝑐.

The optimal solution : (6,0) with the highest


value of 12 within the feasible region.

Discover the world at Leiden University 17


Linear Programming
Example 2:

A factory produces two products A and B. Each product takes packaging time on each of the 4
sections, namely W, X, Y and Z. The profit per unit of products A and B are RM 45 and RM 60,
respectively. The highest demand for both products A and B are 100/day and 40/day. How much
of them should be produced on daily basis to maximize profits?
Unit Packaging Time (mins)
Section/ Products A B Available (mins)
W 20 10 1440
X 12 28 1440
Y 15 6 1440
Z 10 15 1440
Profit / Unit 45 60

Discover the world at Leiden University 18


Linear Programming
Solution 2:

Define the decision variables:


Objective:
Constraints:

Discover the world at Leiden University 19


Linear Programming
Solution 2:

Decision variables: A = # units/day of product A


B = # units/day of product B
Objective: Max 45 A + 60B
Constraints:
20𝐴 + 10𝐵 ≤ 1440
12𝐴 + 28𝐵 ≤ 1440
15𝐴 + 6𝐵 ≤ 1440
10𝐴 + 15𝐵 ≤ 1440
𝐴 ≤ 100
𝐵 ≤ 40
𝐴 ≥ 0 ,𝐵 ≥ 0

Discover the world at Leiden University 20


Linear Programming
Solution 2:

LINGO model:
Max=45*A+60*B;
20*A+10*B <=1440;
12∗A+28∗B <=1440;
15∗A+6∗B <=1440;
10∗A+15∗B<=1440;
A<=100;
B<=40;

Discover the world at Leiden University 21


Linear Programming
Solution 2:

• The max profit is obtained at (58.9, 26.2).

The factory will maximize profits by producing


58.9 units of A and 26.18 units of B with a profit
of RM 4221.818/day.

• The optimal solution is achieved with


Constraints 1 and 2 binding (tight) and
Constraints 3 and 4 having some unused time
on machine (slack) Y, Z will be 399.27
and 458.18.

Discover the world at Leiden University 22


Linear Programming

• For problems involving more than two decision variables, graphical methods are not practical or
feasible.

• Linear programming solvers and computer algorithms are used to find solutions.

• For solving LPs, it is more convenient to work with linear equations for computational ease.

• Denote “slack” variables 𝑆𝑊 , 𝑆𝑋 , 𝑆𝑌 , and 𝑆𝑍 as the unused packaging time on machines 𝑊, 𝑋, 𝑌


and 𝑍, respectively.

Discover the world at Leiden University 23


Linear Programming
Simplex Method:

• Key features in the Simplex method

Problem in Execute
Formulate Problem in
standard simplex
problem tableau form
form method

• An LP is in standard form when it involves:


i. all constraints are equations.
ii. adding slack variables to ‘<’ constraint.
iii. Subtracting surplus variables to ‘>’ constraint.

Discover the world at Leiden University 24


Linear Programming
Simplex Method:

Referring to example 2, the inequality of constraint for machine W is equivalent to the linear eq.
20A+10B ≤ 1440 ⇔ 20A+10B + SW = 1440
12A+28B ≤ 1440 ⇔ 12A+28B + SX = 1440
15A+6B ≤ 1440 ⇔ 15A+6B + SY = 1440
10A+15B ≤ 1440 ⇔ 10A+15B + SZ = 1440
0 ≤ A ≤ 100 , 0 ≤ B ≤ 40,
SW ≥ 0, SX ≥ 0, SY ≥ 0, SZ ≥ 0

Discover the world at Leiden University 25


Linear Programming
Tableau Form:

• Its RHS is nonnegative numbers.

• LHS is a basic variable, where the coefficient of the variable is +1 while the others are 0.

• Basic variables = an equation in terms of the parameters

Discover the world at Leiden University 26

You might also like