Chapter 1 Formulation
Chapter 1 Formulation
Chapter 1:Formulation
Fedia Daami Remadi Asma Ben Yaghlane Riahi Roua Ben Ammar
1
Content
1 •Operations research
2 •Fields of applications
4 •Linear Programming
5 •Formulation
Operations research:
Definitions
3
Operations research :
Fields of applications
yes
Problem Modeling Validation Solved
5
Resolution
Linear programming:
Definitions
• Linear programming (LP) is a branch of operations research.
6
Formulation
The Decision variables
• The unknowns that we want to determine to provide a solution to our
problem.
• There are 3 types of decision variable:
Continuous variable (≥0)
Integer variable (𝞊 ℕ)
Binary variable ({0,1})
The Objective function (or economic function):
11
Linear Programming
Example 1 – Apple Profits
12
LP Problem Formulation
1
• Identify the problem objective
(OF)
2
• Identify the decision variables
(DV)
13
Example 1 – Apple Profits
14
Example 1 – Apple Profits
16
Example 1 – Apple Profits
Consumers demand:
minimum of 500
iPhones and 3000
iPods per week
17
Example 1 – Apple Profits
4. Write the objective function and constraints in terms
of the decision variables, cont’d:
Technological Recall:
Coefficients • Total assembly time is limited to
3x1 + 2x2 <= 9,000 9,000 hours per week. Each iPhone
takes 3 hours to assemble and an
iPod 2 hours.
• PCB supply is limited to 5,000 PCBs
2x1 + x2 <= 5,000 per week. Each iPhone needs 2
PCBs, whereas an iPod needs only
1.
x1 >= 500 • Consumers demand a minimum of
x2 >= 3,000 500 iPhones and 3,000 iPods.
6
• Arrange the system of
equations in a consistent form
19
Example 1 – Apple Profits Checking LP
Assumptions
20
Example 2: A Transportation Problem
21
Warehouse 1 2 3 4
Plant
1 4 6 9 13
2 16 12 15 14
3 6 5 8 7
Given that the plants produce respectively 10, 8 and 9 tons per
month and that the warehouses capacities are of 6 tons each,
Formulate the problem as a LP.
22
Decision Variables
Xij : the quantity of the product to deliver from plant i to warehouse
j, i = 1, 2, 3 & j = 1, …, 4.
Objective Function
The objective has to do with minimizing the total transportation cost
from the different plants to the warehouses.
24
The quantity to deliver to warehouse j cannot exceed its
storing capacity, j=1,2,3,4.
25
Min Z = 4X11 + 6X12 + 9X13 + 13X14 + 16X21 + 12X22 +
27
Annual Costs
Project Revenues
Year 1 Year 2
1 60 90 350
2 80 100 370
3 100 70 380
4 70 80 330
28
An investment Problem, continued
that the available budget at the start of each year is of 300 000
TDN
29
Solution
Define
1 if project i is chosen
Xi =
0 otherwise
i {1,2,3,4}
30
Max Z = 350X1 + 370X2 + 380X3 + 330X4
X1 , X2 , X3 , X4 {0,1}
31
Write the following conditions as linear constraints:
X1 + X2 + X3 + X4 ≥ 2
Projects 1 & 4 are mutually exclusive
X1 + X 4 ≤ 1
32
Project 3 cannot be selected unless project 2 is
also selected
X3 X2
33