Introduction
Introduction
in
er
ne
.A
gi
M
En
ón
Selected Topics of Optimization
Le
ila
s
em
gu
vo
ue
st
A
Dr. M. Angélica Salazar-Aguilar
r-
Sy
N
za
de
n
la
i
Graduate Program in Systems Engineering (PISIS)
Sa
a
am
Facultad de Ingenierı́a Mecánica y Eléctrica
om
Universidad Autónoma de Nuevo León
r
ón
og
ut
Pr
A
te
ad
ua
id
rs
d
ra
ve
G
ni
U
Content
Methodology of OR
1 Problem definition
2 Data collection
3 Model formulation
4 Model solution
5 Validation of preliminary results
6 Results analysis
7 Implementation and monitoring
Applications of OR
Applications of OR
Health care
Assessment of forecasting models for patients arrival at Emergency
Department
Scheduling elective surgeries in hospitals
Kidney exchange and stable matching
Definitions
For any linear function f (x1 , x2 , ..., xn ) and any number b, the
inequalities f (x1 , x2 , ..., xn ) ≤ b and f (x1 , x2 , ..., xn ) ≥ b are linear
inequalities.
Definitions
Suppose that a carpenter makes tables and chairs and sells all the tables
and chairs he makes in a market.
He does not have a steady income and he wishes to optimize this situation.
So, the carpenter needs to determine how many tables and chairs he should
make in order to maximize his net income. He knows that the income he
receives per table sold is $500 and per chair sold is $300.
The carpenter works 8 hours a day from Monday to Friday and takes 2 hours
to make a table and 1 hour to make a chair. Also, each week he receives
50 units of raw material, of which he requires 1 unit for each table and 2
units for each chair he makes.
Decision variables
Let t be the number of tables to be produced.
Let c be the number of chairs to be produced.
40 (1) 2t + c ≤ 40
(2) t + 2c ≤ 50
t ≥ 0, c ≥ 0
25
10
1 t
0 1 6 20 (1) 50 (2)
Optimal solution
40
In order to optimize his profit, the car-
penter should make 10 tables and 20
chairs for a total profit of $11000
25 B
(z = 500 × 10 + 300 × 20 = 11000)
20 C
1 A D
t
0 1 10 20 (1) 50 (2)
Given:
n employees i = 1, ..., n
n tasks j = 1, ..., n
cost cij for the assignment of employee i to task j
Goal:
Find an assignment of employees to tasks at minimal cost!
Objective function
n X
X n
Minz = cij xij (assignment cost)
i=1 j=1
Constraints
n
X
xij = 1 i = 1, ..., n (each employee must perform a task)
j=1
Xn
xij = 1 j = 1, ..., n (each task must be performed)
i=1
xij ∈ {0, 1}
Dr. Angélica Salazar (PISIS-FIME-UANL) Course Content 14 / 1
Introduction to operations research and combinatorial
Introduction to combinatorial optimization optimization
Time (hrs)
Task 1 Task 2 Task 3 Task 4
Machine 1 13 4 7 6
Machine 2 1 11 5 4
Machine 3 6 7 2 8
Machine 4 1 3 5 9
The company wants to minimize the total setup time needed for the pro-
cessing of all four tasks.
Mathematical model
Min z = 13x11 + 4x12 + 7x13 + 6x14 + 1x21 + 11x22 + 5x23 + 4x24 + 6x31 +
7x32 + 2x33 + 8x34 + 1x41 + 3x42 + 5x43 + 9x44
s.t:
(Assignment of machines to tasks)
x11 + x12 + x13 + x14 = 1
x21 + x22 + x23 + x24 = 1
x31 + x32 + x33 + x34 = 1
x41 + x42 + x43 + x44 = 1
(Assignment of tasks to machines)
x11 + x21 + x31 + x41 = 1
x12 + x22 + x32 + x42 = 1
x13 + x23 + x33 + x43 = 1
x14 + x24 + x34 + x44 = 1
xij ∈ {0, 1}
How can we solve it?
Dr. Angélica Salazar (PISIS-FIME-UANL) Course Content 16 / 1
Introduction to operations research and combinatorial
Introduction to combinatorial optimization optimization
What would be the model if each machine can perform any number of tasks?
What would be the model if machine 3 cannot process task 2 and machine
1 cannot process task 4?
What would be the model if task 3 must be performed by 3 machines
simultaneously?
Example of a CO problem
Notes:
a round trip corresponds to a sequence of points (= assignment of
points to sequence positions)
solution component: trip segment consisting of two points that are
visited one directly after the other
candidate solution: round trip
solution: round trip with minimal length
CO problems
systematic enumeration
problem specific, dedicated algorithms
generic methods for exact optimization
heuristic methods
Fundamental question:
How hard is a given computational problem to solve?
Important concepts
Time complexity of a problem Π: Computation time required for
solving a given instance π of Π using the most efficient algorithm for
Π.
Worst-case time complexity: Time complexity in the worst case over
all problem instances of a given size, typically measured as a function
of instance size
Time complexity gives the amount of time taken by an algorithm as a
function of the input size.