Optimization Methods: - Gradient Descent - Conjugate Gradient - Levenberg-Marquardt - Quasi-Newton - Evolutionary Methods
Optimization Methods: - Gradient Descent - Conjugate Gradient - Levenberg-Marquardt - Quasi-Newton - Evolutionary Methods
Optimization Methods: - Gradient Descent - Conjugate Gradient - Levenberg-Marquardt - Quasi-Newton - Evolutionary Methods
• Gradient Descent
• Conjugate Gradient
• Levenberg-Marquardt
• Quasi-Newton
• Evolutionary methods
Common characteristic of Derivative-
Free Optimization Methods
1. Derivative freeness
PSO- nature’s wisdom
2. Intuitive guidelines GA-
Evolution
SA-
Thermodynamics
3. Slowness
4. Flexibility- any type of objective function
5. Randomness- they all use rand
6. Analytic studies not possible- because of their
randomness and problem specific nature. Most of our
knowledge about them is based on empirical studies
7. Iterative nature- so we need some stopping criteria
Optimization Problem
In the training samples shown below, i stands for inputs and t targets. We
have 3 vectors. There are two output neurons.
e1 (t11 o11 ) 2 (t 21 o 21 ) 2
e2 (t12 o12 ) 2 (t 22 o22 ) 2
e3 (t13 o13 ) 2 (t 23 o23 ) 2
• The root mean square of the error is
e1 e2 e3
e
3
(a)
(b)
The algorithm
For each particle w = wMax-[(wMax-wMin) x iter]/maxIter
Initialize particle
END
Do
For each particle
Calculate fitness value
If the fitness value is better than the best fitness value (pBest) in history
set current value as the new pBest
End
Choose the particle with the best fitness value of all the particles as the gBest
For each particle
Calculate particle velocity according equation (a)
Update particle position according equation (b)
End
While maximum iterations or minimum error criteria is not attained
The number of particles: the typical range is 20 - 40. Actually for most of the
problems 10 particles is large enough to get good results. For some difficult
or special problems, one can try 100 or 200 particles as well.
Vmax: it determines the maximum change one particle can take during one
iteration. Usually we set the range of the particle as the Vmax for example,
the particle (x1, x2, x3)
X1 belongs [-10, 10], then Vmax = 20
n
f ( x) ( xi ) sin( xi )
i 1
where
500 xi 500
global minimum
f ( x) = n 418.9829;
xi = 420.9687, i = 1 : n
Evolution-Initialization
Evolution-5 iteration
Evolution-10 iteration
Evolution-15 iteration
Evolution-20 iteration
Evolution-100 iteration
Evolution-500 iteration
Evolution-500 iteration
Search result