Professional Documents
Culture Documents
BSCM-00 Optimization Primer
BSCM-00 Optimization Primer
Optimization
where: x*
Ω
and problem solving Ω – the decision (search) space
ℝ – the objective space
primer f – the objective (goal) function
where:
non-dominated solutions
Ω – the decision (search) space dominated solutions
f2 = travel cost
m
ℝ – the objective space
fi – the objective (goal) functions
1
Multiobjective optimization (5/5) Search space
Multiobjective optimization aims at finding solutions A set of all solutions to an optimization problem
Non-dominated Some examples
Close to the true PF of the optimization problem Real numbers ℝ
Well distributed (covering a wide range of the true PF) Real vectors ℝd
Binary vectors { 0, 1 }d
Two contradicting requirements
Permutations
Convergence (to the true PF) Expressions (in Genetic Programming)
Diversity (along the PF) Rules
Graphs
Many solutions are required to approximate the PF
7 8
In other words, for sufficiently large n the function f(n ) grows We usually only mention the „lowest” class to which
not faster than g(n ) a given algorithm belongs
9
Average vs. worst-case 10
11 12
2
Computational complexity Travelling Salesman Problem (TSP)
Examples Given n cities (or other locations) find the shortest
tour visiting each city exactly once
Applications:
Transport optimization
Electronics manufacure
(e.g. PLA design)
source:
http://gtresearchnews.gatech.edu/reshor/rh-f04/tsp.html
13 14
15 16
Given that 9.33 10157 ≈ (1079)2, we would have to take all Given that 9.33 10157 ≈ (1079)2, we would have to take all
the atoms in the whole observable universe and replace atoms in the whole observable universe and replace every
every single one with the entire universe. single one with the entire universe
https://commons.wikimedia.org/wiki/File:8_Observable_Universe_(ELitU).png
3
Travelling Salesman Problem (TSP) Knapsack Problem (KP)
Cost matrix [ c i,j ]i ,j = 1, …, n Given n items, each with a weight wi and a value vi
choose the items to pack to a knapsack with the
Symmetrical for the TSP
weight limit W so tha the total value is maximized.
Non-symmetrical for the ATSP
source: https://www.maps-of-the-usa.com/maps/usa/
table-of-distances-between-the-cities-of-the-usa.jpg Simpler version
Pack the knapsack with as much
weight as possible
Evaluation of a solution n
n 1 Formally: wi = vi
f ( ) c [ n ], [1] c [ i ], [ i 1]
19 20
[ 0, 1, 0, 1, 1, 1, 0 ]
max
xi {0 ,1}
v x
i 1
i i
The task is to find a solution with the minimal or
n maximal value of the goal function
subject to : wi xi W
i 1
The corresponding decision problems are:
KP: Can a value of at least V be achieved without
Number of solutions: 2n Constrained optimization exceeding the weight W ?
problem
n =5 2n = 32 TSP: Given the cost matrix and a number L, decide
n = 10 2n = 1024 whether there is a round-trip route cheaper than L
n = 100 2n ≈ 1.27 1030
21 22
4
P vs. NP Graph Protection Problems
Many people intuitively feel that P NP, because A threat is spreading on a graph G = V, E
finding a solution is thought to be harder than merely We can protect vertices or edges
veifying one
Goal: minimize the losses
Hovewer, there is no consensus among the
29 30
5
The Firefighter Problem – An Example The Firefighter Problem – An Example
1 7 9 1 7 9
5 5
Ns = 1 Ns = 1
3 6 3 6
Nf = 2 Nf = 2
8 8
4 4
2 2
10 10
P = 3, 4, 2, 1, 6, 7, 8, 9, 10, 5 P = 3, 4, 2, 1, 6, 7, 8, 9, 10, 5
t=1 t=1
- Nf firefighters are assigned - the fire spreads to adjacent nodes
31 32
1 7 9 1 7 9
5 5
Ns = 1 Ns = 1
3 6 3 6
Nf = 2 Nf = 2
8 8
4 4
2 2
10 10
P = 3, 4, 2, 1, 6, 7, 8, 9, 10, 5 P = 3, 4, 2, 1, 6, 7, 8, 9, 10, 5
t=2 t=2
- Nf firefighters are assigned - the fire spreads to adjacent nodes
Note, that at this point the fire cannot spread any further and
33
the simulation can be stopped 34
Single-objecitve: save the highest possible number of The m objectives fi , i = 1, ..., m attained by a given
nodes in the graph solution are calculated as follows:
where:
vi (v ) - the value of node v according to the i - th criterion
where:
c (v ) – the cost assigned to node v
*) Introduced in: K. Michalak, "Auto-adaptation of Genetic Operators for Multi-objective Optimization in the Firefighter
Problem", Intelligent Data Engineering and Automated Learning IDEAL 2014, Lecture Notes in Computer Science, vol. 8669,
pp. 484-491, Springer, 2014.
35 36
6
Animal Diseases Control Financial Contagion
Epidemic modelled on a graph[1] Bankruptcies modelled on a graph G = V, E
|V| = 9886 (9313 farms, 573 pastures,
560812 animals)
|E| = 40328 (animal movements involving
Threshold spreading model
168435 animals) Banktrupt companies do not pay their dues
53 time steps (weeks)
Lost revenue incurrs a load on other companies
The Susceptible, Vaccinated Infected, If the loss exceeds a threshold the company fails
Recovered (SVIR) model But, companies can keep reserves
[1] K. Michalak, M. Giacobini, "The Influence of Uncertainties on Optimization of Vaccinations on a Network of Animal
Movements", Soft Computing (IF2021 = 3.732), vol. 25, pp. 4907-4923, ISSN: 1432-7643, Springer, 2021. 37 38
[1] D. Ladley, "Contagion and risk-sharing on the inter-bank market", Journal of Economic Dynamics and Control 37, vol. 7,
39 pp. 1384–1400, 2013. 40