2 - Sine Cosine Algorithm
2 - Sine Cosine Algorithm
(SCA)
METAHEURISTICS
Achmad P. Rifai
Evolutionary algorithms Physics-based Swarm Based Other algorithms
algorithms algorithms
Genetic Algorithms (GA) Simulated Annealing Particle Swarm Variable Neighborhood
(Holland 1992) (SA) (Kirkpatrick et al. Optimization (PSO) Search (VNS)
1983; Cerný 1985) (Kennedy and Eberhart (Mladenovic and Hansen,
1995) 1997)
Evolution Strategy (ES) Gravitational Search Ant Colony Optimization Large Neighborhood
(Rechenberg, 1978) Algorithm (GSA) (ACO) (Dorigo and Search (LNS) (Pisinger
(Rashedi et al. 2009) Stützle, 2004) and Ropke, 2010)
Genetic Programming Charged System Search Grey Wolf Optimizer Stochastic Fractal Search
(GP) (Koza 1992) (CSS) (Kaveh and (GWO) (Mirjalili et al. (SFS) (Salimi 2015)
Talatahari 2010) 2014)
Trajectory Population
Type of metaheuristics
Sine-Cosine Algorithm (SCA)
• The SCA is a population-based metaheuristic framework proposed by
Mirjalili (2016).
• Mainly used to solve continuous problem.
• It employs two trigonometric functions to update the candidate
solutions: the sine and cosine functions.
𝑡 +1 𝑡
𝑋 𝑗 =𝑋 𝑗 +¿
𝑡 +1 𝑡
𝑋 𝑗 =𝑋 𝑗 +¿
• defines how far the movement should be towards or outwards the destination.
s.t.
s.t.
Example 1
• First equation (unimodal function)
𝑛
2
Min 𝑓 1 ( 𝑥 ) =∑ 𝑥 𝑖
𝑖=1
s.t.
= Number of
Pseudocode of SCA
1 Input: and iterations
2 Generate a set of initial population = current
3 While iteration
4 Calculate the fitness values of each search agent = Population
5 Update the best solution of this iteration size
6 Update = SCA constant
7 Update the position of search agents using sine-cosine = initial
equation with respect to population
8 End while
9 Output: , , and
𝑛
2
Min 𝑓 1 ( 𝑥 ) =∑ 𝑥 𝑖
𝑖=1
s.t.
Task 2
Solve these problems using SCA
1.
s.t.
Task 2
2.
s.t.