Mathematical Programming CO4
Mathematical Programming CO4
CO4
INFINITE DIMENSIONAL OPTIMIZATION
DR.VUDA SREENIVASA RAO
ASSOCIATE PROFESSOR
CO4-INFINITE DIMENSIONAL OPTIMIZATION
2
MATHEMATICAL OPTIMIZATION
• Mathematical optimization is the process of finding the best set of inputs that
maximizes (or minimizes) the output of a function.
• In the field of optimization, the function being optimized is called the
objective function.
3
APPLICATIONS
5
SOLUTION STRATEGIES FOR OPTIMIZATION PROBLEMS
Methods to solve Optimization Problems Nature of Solution
6
HEURISTIC METHOD VS METAHEURISTIC METHOD
7
METAHEURISTIC
• The word ‘meta’ means higher level, where as the word ‘heuristics’ means
to find.
• In computer science, metaheuristic designates a computational method that
optimizes problem by iteratively trying to improve a candidate solution with
regard to given measure of quality.
• Metaheuristic optimization is the best approach to optimizing such non-
convex functions.
• Metaheuristics do not guarantee an optimal solution.
• Metaheuristics implement some form of stochastic optimization.
11
METAHEURISTICS HAVE FUNDAMENTAL CHARACTERISTICS :
13
CLASSIFICATION OF METAHEURISTICS
f(x) = x^2
26
INTRODUCTION TO THE PSO: ORIGINS
• Inspired from the nature social behavior and dynamic movements with
communications of insects, birds and fish.
CONT..
28
CONT....
29
INTRODUCTION TO THE PSO: CONCEPT
31
CONTD...
• Each particle adjusts its travelling speed dynamically corresponding to the flying
experiences of itself and its colleagues.
32
PARTICLE SWARM optimization (PSO) ALGORITHM
33
UPDATE VELOCITY AND POSITION OF EACH PARTICLE.
• Velocity of particle
34
PSO ALGORITHM - PARAMETERS
35
PROBLEM ANALYSIS
1. Size of a swarm.
2. How to generate initial particles with position and velocity.
3. Finding fitness function.
4. Finding Pbest and Gbest.
5. Updating Velocity. (values of C1,C2,W, etc.)
6. limits for velocity (Vmax,Vmin)
7. Updating position.
8. Terminating condition.
36
37
DEFINE THE PROBLEM
38
PROBLEM ANALYSIS
• 1 Size of a swarm.
• 2 How to generate initial particles with position and velocity.
• 3 Finding fitness function.
• 4 Finding Pbest and Gbest.
• 5 Updating Velocity. (values of C1,C2,W, etc.)
• 6 limits for velocity (Vmax,Vmin)
• 7 Updating position.
• 8 Terminating condition.
• 9 ....
39
INITIALIZATION
• Use 9 particles with the initial positions x1= -9.6, x2= -6, x3= -2.6, x4= -1.1, x5 = 0.6, x6 =
2.3, x7 =2.8, x8 = 8.3 and x9 =10.
Particle Particles Initial Evaluate the objective function
Number Position f (x) = −x2 + 5x + 20
1 -9.6 -120.16
2 -6 -46
3 -2.6 0.24
4 -1.1 13.29
5 0.6 22.64
6 2.3 26.21
7 2.8 26.16
8 8.3 -7.39
9 10 -30
40
PARTICLE VELOCITY INITIALIZATION
• Let C1 = C2 = 1 and set initial velocities of the particles to zero.
Particles v10 v20 v30 v40 v50 v60 v70 v80 v90
Velocities 0 0 0 0 0 0 0 0 0
41
• Step 4: Gbest = max(Pbest) so Gbest = 2.3.
• Step 5: Updating the velocities of the particle by considering the value of random numbers
r1 =0.213, r2 = 0.876, C1 = C2 = 1, w = 1.
42
Step 6: Update the values of position as well.
If the terminal rule is satisfied, go to step 2. Otherwise stop the iteration and note the result.
43
SWARM INTELLIGENCE
(ANT-COLONY OPTIMIZATION)
44
WHAT IS A SWARM?
optimisation algorithm.
• The study of artificial systems modeled after the behavior of real ant colonies and are
useful in solving discrete optimization problems.
• Shortest path is discovered via pheromone trails. Each ant moves at random
• Individuals communicate with each other in the above way, affecting what each other
does on the task.
• Individuals leave markers or messages – these don’t solve the problem in themselves,
but they affect other individuals in a way that helps them solve the problem …
NATURALLY OBSERVED ANT BEHAVIOR
Food source
Nest
Pheromone Trails continued
Initial state:
no ants
E t=0 E t=1 E
30 ants 30 ants
D 15 ants
D 10 ants
D
15 ants 20 ants
d=1 d = 0.5
τ = 15 τ = 30
H C H C H C
τ = 15 τ = 30
d=1 d = 0.5
15 ants 15 ants 10 ants 20 ants
B B B
30 ants 30 ants
A A A
• Used to implement larger actions that require more than one ant
• Examples:
• Perform a local search
• Collection of global information
A GENERAL ALGORITHM
• Data mining
A B
Pheromone
D
C
Ant
AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
A B
Pheromone
D
C
Ant
AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
Pheromone
D
C
Ant AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
Pheromone
D
C
Ant AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
Pheromone
D
Ant C
AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
So, he has nearly finished his tour, having gone over the links:
BC, CD, and DA.
A B
Pheromone
D
C
Ant AB: 10, AC: 10, AD, 30, BC, 40, CD 20
E.G. A 4-CITY TSP
So, he has nearly finished his tour, having gone over the links:
BC, CD, and DA. AB is added to complete the round trip.
A B
D
Pheromone C
A B
Next, pheromone everywhere
is decreased a little, to model
decay of trail strength over
time
D
Pheromone C
A B
Where will he go?
Pheromone D
C
AB: 10, AC: 10, AD, 30, BC, 40, CD 20
Ant
THE ACO ALGORITHM FOR THE TSP
T(r,s) is the amount of pheromone currently on the path that goes directly from city r to city s.
H(r,s) is the heuristic value of this link – in the classic TSP application, this is chosen to be
1/distance(r,s) -- i.e. the shorter the distance, the higher the heuristic value.
p k (r , s ) is the probability that ant k will choose the link that goes from r to s
Where our ant is at city r, and s is a city as yet unvisited on its tour, and the summation is over all
of k’s unvisited cities
80
GLOBAL PHEROMONE UPDATE
Where Ak (r , s ) = 1 / Lk
T (r , s) + A (r , s)
k =1
k
81
Ant Colony Optimization
Characteristics
• An ant is a solution.
• An ant completes its tour after selection a choice for each stand.
• Pheromone levels are updated after all of the ants have completed all of
their tours.
Ant Colony Optimization
Advantages:
• It is intuitive to biologically-minded people, mimicking nature.
• For routing problems it may make more sense, but for harvest
scheduling problems, it requires a conceptual leap of faith.
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116