Chap 1.1
Chap 1.1
Chap 1.1
Discover theDiscover
world at the world
Leiden at Leiden University
University
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)
- Simulation
Decision variables:
• x = # of croissants
• y = # of muffins
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).
• 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
Max 2𝑥1 + 𝑥2
Constraint to
3𝑥1 − 𝑥2 ≥ 6
2𝑥1 + 3𝑥2 ≤ 12
𝑥1 , 𝑥2 ≥ 0
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.
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.
2𝑥1 + 𝑥2 = 0,
2𝑥1 + 𝑥2 = 4,
2𝑥1 + 𝑥2 = 12 𝑒𝑡𝑐.
2𝑥1 + 𝑥2 = 0,
2𝑥1 + 𝑥2 = 4,
2𝑥1 + 𝑥2 = 12 𝑒𝑡𝑐.
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
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;
• 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.
Problem in Execute
Formulate Problem in
standard simplex
problem tableau form
form 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
• LHS is a basic variable, where the coefficient of the variable is +1 while the others are 0.