03 Operations Research
03 Operations Research
Performance Criterion
J=J(x,u)
yes
Stop
What is search
To search means to explore possible values
for the control variable u, to obtain the value of the state x caused by u, and to evaluate the performance J
The policy
P {Mt () ; t = 0, 1, . . .
chosen in front of the value of x at each time step t and in each spatial location z
The methodology
Scenario Analysis Optimisation
Scenario analysis
Scenario denition requires knowledge on
the modelled system, which might not be available, due to complexity (Jakeman and Letcher, 2003) limited
In some (most) cases Scenarios are too Too much weight on past experience
Optimisation
Given the goal, the computer automatically
generates scenarios, by combination of parameters, controls, exogenous inputs
charge of evaluating the performance and directing exploration in the most promising direction
Simulation explained
all model variables may vary in space boundary and initial conditions are given
The problem
Model:
Exact methods
Exact algorithms
by denition always nd a solution, which is an optimal one. take too long to nd an optimal solution, even on the fastest computers available.
Exact methods
The algorithm depends on the problem
formulation
Linear programming, simplex Integer programming, branch & bound Dynamic programming
Approximation algorithms
Find a sub-optimal solution It is possible to say how far from the
optimum (e.g. 95%)
Heuristics
Apply rules-of-thumb to the solution of the
problem
No guarantee to nd an optimum No guarantee on the quality of the solution Yet, they are fast and generic
Metaheuristics
set of concepts that can be used to dene
heuristic methods that can be applied to a wide set of different problems. be applied to different optimization problems with relatively few modications to make them adapted to a specic problem
Metaheuristics are...
Simulated annealing Evolutionary computation Tabu search Ant Colony Systems
Ants
Leaf cutters, fungi growers Breeding other Insects Weaver ants
50% of all social insects are ants Average body weight of an ant: 1 - 5 mg Total mass of ants ~ total mass of humans Ants have colonized earth for 100 million yrs; Homo sapiens sapiens for 50000 years
Queen: reproduction Soldiers: defense Specialised workers: food gathering, offspring tending, nest grooming, nest building and maintenance
Articial Stigmergy
Indirect communication by changes on the Features of articial stigmergy : Indirect communication Local accessibility
environment accessible only locally to communicating agents (Dorigo and Di Caro, 1999)
Pheromone trail
memory
j
p (t ) = f ( ij ( t ), ij (t ))
k ij
i tir ;hir r r
(t ) = quality
k ij
where qualityk is inversely proportional to the length of the solution found by ant k
The algorithm
Ants depart from the depot choosing the next visit in the list of customers Ants follow a probabilistic route as a function of: (i) some articial pheromone values and (ii) local euristic values, Ants memorise the current tour and the current travel time, taking into account the problem constraints (e.g. capacity, time windows) Once they have completed a tour, they update the global pheromone trail, in order to distribute the information gathered on the new solution AntSystem is distributed and not synchronised
i tijd j
d
destination
gest pheromone more frequently since it (usually) has a smaller number of decision points
ACO: Applications
Sequential ordering in a production line Vehicle Routing of trucks goods
distributions
Genetic Algorithms
Evolutionary computing
EC (Evolutionary computing) = GA (Genetic Algorithms - Holland, 1975) ES (Evolution Strategies - Rechenberg
1973)
Biological basis
Evolution operates on chromosomes, which
encode the structure of a living being the most efcient chromosomes
Use
GA are very well suited when the structure
of the search space is not well known
How it works
A genetic algorithm maintains a population
of candidate solutions for the problem at hand, and makes it evolve by iteratively applying a set of stochastic operators
evaluate P(t) P(t) select best individuals from P(t) P(t) apply reproduction on P(t) P(t+1) replace individuals (P(t),P(t)
end while
Components of a GA
Encoding principles (gene, chromosome) Initialization procedure (creation) Selection of parents (reproduction) Genetic operators (mutation,
recombination)
Representation (encoding)
Bit strings Real numbers Permutations of element Lists of rules Program elements ... any data structure ...
(0101 ... 1100) (43.2 -33.1 ... 0.0 89.2) (E11 E3 E7 ... E1 E15) (R1 R2 R3 ... R22 R23) (genetic programming)
Initialization
Start with a random population a previously saved population a set of solutions provided by a human
expert
Selection
Purpose: to focus the search in promising
regions of the space
where b can be interpreted as the expected sampling rate of the best individual
Recombination (Crossover)
Enables the evolutionary process to move
toward promising regions of the search space
Mutation
Purpose: to simulate the effect of errors that
happen with low probability during duplication
Termination condition
Examples: A pre-determined number of generations or
time has elapsed
Acknowledgements
Part of the material extracted from
Simulated Annealing
The origin
It is the oldest metaheuristic Originated in statistical mechanics
The idea
It searches in directions which result in
solutions that are of worse quality than the current solution
The algorithm
s s
Update(T)
end while
Boltzmann probability
if s is worse than s, then s might still be
chosen as the new solution on temperature T
the probability depends on d=f(s)-f(s) and the higher d the lower the probability the higher T the higher the probability
Boltzmann probability
It determines the equilibrium distribution of
a system in various energy states at a given temperature
P(s s ) e
f (s ) f (s) T
End of Part II