SlideShare a Scribd company logo
‫موني‬‫ر‬‫ها‬ ‫ي‬‫جستجو‬
Harmony Search
By: Ali Hasheminejad
Harmony search presentation
Contents
• Introduction of Harmony Improvisation
• Analysis of Harmony Improvisation
• Analogy Music and Optimization
• Basic Elements of HSA
• Three main procedures (every iteration)
• HSA behavior (movie)
• Publication Trend ( No. and fields)
• Steps of Harmony Search Algorithm
• Modifications to the original HS algorithm
• MATLAB code sample (Sphere Function)
Introduction
• Harmony in nature is a special relationship between several
sound waves that have different frequencies.
• Even in ancient civilizations, the relation between music and
mathematics was considered to be essential, but only recently
scientists found an interesting connection between
optimization techniques and music.
• The music-inspired harmony based optimization algorithm; the
algorithm is based on the observation that the aim of music
creation is the quest of the perfect state of harmony
Introduction
• in the same way a music band improves rehearsal after
rehearsal, HSA improves iteration after iteration.
• The term Harmony in music refers to the sound result caused
from two or more instruments that play at the same time.
harmony evaluates the relation between two or more sound-
waves and their interaction. This interaction is crucial for the
final result and specifies if it is pleasant or not.
Analysis of Harmony Improvisation
Seeking Harmony in Music.
• The new algorithm was inspired by the improvisation process
that a skilled musician follows when he is playing in a music
band. the following choices:
• a. To play the famous Obviously, every member of the band
knows the theme and can play it by heart. In other words all
musicians have this melody in their minds
• b. play something similar to the theme. Very often, musicians
try to enrich a music piece slightly changing or adjusting
pitches of the memorized theme.
• c. This choice, which is so common in Jazz music, gives the
freedom to the musician to play random tunes. The performer
uses his talent
Harmony search presentation
www.hydroteq.com (Number of Visit)
Simple Analogy Music and Optimization(Regarding to Parameters )
Comparison Factor
Comparison Factor
Basic Elements of HSA
• Harmony: Harmony is similar to the gene in GA. It is the set
of the values of all the variables of the objective function.
• Harmony Memory (HM): The places where harmonies are
stored.
• Harmony Memory Size (HMS): The number of places that
HM has. The best harmony is stored in the 1st place and the
rest harmonies are classified according to their performance.
Definition of HMS is an important part of the calibration of the
model.
• Maximum number of Iterations (MaxIter): Defines the
termination criterion. It is similar to the maximum number of
generations in GA.
Basic Elements of HSA
• Harmony Memory Considering Rate(HMCR)
• pitch adjusting rate (PAR)
• fret width (FW)
• a fret is the metallic ridge on the neck of 5 a string
instrument (such as guitar), which divides the neck into
fixed segments
The Structure of Harmony Memory
Three main procedures (every iteration)
1. HS is choosing any value from HS Memory. This process is
defined as Memory Consideration and it is very important
because it ensures that good harmonies will be considered
through the solution.
– Harmony Memory Considering Rate (HMCR) :This index will
specify the probability that new harmony will include a value
from the historic values that are stored in the Harmony Memory.
(Typical values of HMCR are typically from 70% to 95% )
• HMCR Intensification
• HMCR Diversification
Three main procedures (every iteration)
2. Every component of the new harmony chosen from HM, is
likely to be pitch-adjusted. For example a Pitch Adjusting Rate
(PAR) of 10%, indicates that algorithm will choose neighboring
values for the 10% of the harmonies chosen from HM. The
new harmony will include the value xi new which will be:
• Pitch Adjustment is similar to Mutation procedure in GA and
typically is between 0.1 to 0.5, FW normally ranges from 1%
to 10% of total value range
Three main procedures (every iteration)
3. The third choice is to select a totally random value from the
possible value range. Randomization occurs with probability
(100-HMCR)% and increases the diversity of the solutions.
Although pitch adjustment has a similar role, it is limited in a
local area. Randomization can drive the algorithm to explore
the whole range and attain the global optimality.
Abstract of three Operators
Analogy between music and optimization
An example
Publication Trend
2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
1 3 0 11 14 28 43 91 120 211 318
0
50
100
150
200
250
300
350
Steps of Harmony Search Algorithm
Flow chart of the Harmony Search Algorithm
Pseudocode for Harmony Search
HS VS Other Meta-Heuristics
• It preserves the history of past vectors (Harmony Memory)
similar to TS
• able to vary the adaptation rate (Harmony Memory
Considering Rate) from the beginning to the end of
computation resembling SA
• manages several vectors simultaneously in a manner similar
to GA. However, the major difference between GA and HS is
that HS makes a new vector from all the existing vectors (all
harmonies in the Harmony Memory), while GA makes the new
vector only from two of the existing vectors (the parents)
Modifications to the original HS algorithm
• Alternative initialization procedures for HM, or an extended
HM structure
• Originally fixed parameter values were used. However,
some researchers have proposed changeable parameter
values. Mahdavi et al. [4] suggested that PAR in-crease
linearly and FW decrease exponentially with iterations:
Modifications to the original HS algorithm
• Options for handling constraints during generation of new
harmonies
• Modifications to the algorithm’s structure, that is, adding or
removing blocks and changing the processing sequence in
the flowchart
Hybrid HS Methods
SAMPLE (Travel Salesman Problem)
• each musical instrument in HM is substituted with a variable
assigned for each city. Linking each city to its next assigned
city creates one of the possible tours.
• The length of the tour is compared with those of existing tours
in HM. If the new length is shorter than any of existing tour
lengths, the new tour is included in HM, and the worst tour
(longest tour) is excluded from HM.
• 30 runs, HMCR = 0.85 - 0.99, HM = 10 – 100, 20,000
iterations, Seven out of 30 runs have reached global optimum.
MATLAB code sample (Sphere Function)
Harmony search presentation

More Related Content

PPTX
KCL and KVL
PDF
Parsing Natural Scenes and Natural Language with Recursive Neural Networks
PDF
ETAP - bsd - Battery Sizing & Duscharge
PPT
KVL & KCL
PDF
Unsymmetrical fault analysis
PDF
Three phase balanced load circuits and synchronous generators
PPTX
Basics of Relay for Engineering Students
PDF
Ch3 4 regular expression and grammar
KCL and KVL
Parsing Natural Scenes and Natural Language with Recursive Neural Networks
ETAP - bsd - Battery Sizing & Duscharge
KVL & KCL
Unsymmetrical fault analysis
Three phase balanced load circuits and synchronous generators
Basics of Relay for Engineering Students
Ch3 4 regular expression and grammar

What's hot (20)

PDF
GRAPH MATRIX APPLICATIONS.pdf
PDF
Effect of adding poles and zeros in system transfer function
PPTX
Symmetrical and un-symmetrical fault
PPTX
rank of matrix
PPT
Randomized Algorithms
PPTX
Application of linear algebra in cse
PPTX
Analysis of unsymmetrical faults using bus impedence matrix
PDF
Code generation in Compiler Design
PPTX
60232804 ppt-compensation-techniques-in-ac-transmission-system-using-c
PPTX
EDS Unit 3 (Part 1).pptx
PDF
relationship between line and phase values of voltage and current for the sta...
PPTX
Basic Electrical and Electronics Engineering.pptx
PPTX
Applications of Linear Algebra in Computer Sciences
PPTX
Load Frequency Control of Two Area System
PPTX
Load Frequency Control of two area Power system
PPTX
7. kirchhoff s_rules
PPT
The Electric Circuit And Kirchhoff’S Rules by Students
DOCX
Project on STATCOM
PPTX
Dynamic Programming
PPTX
Lecture 1 the lecture
GRAPH MATRIX APPLICATIONS.pdf
Effect of adding poles and zeros in system transfer function
Symmetrical and un-symmetrical fault
rank of matrix
Randomized Algorithms
Application of linear algebra in cse
Analysis of unsymmetrical faults using bus impedence matrix
Code generation in Compiler Design
60232804 ppt-compensation-techniques-in-ac-transmission-system-using-c
EDS Unit 3 (Part 1).pptx
relationship between line and phase values of voltage and current for the sta...
Basic Electrical and Electronics Engineering.pptx
Applications of Linear Algebra in Computer Sciences
Load Frequency Control of Two Area System
Load Frequency Control of two area Power system
7. kirchhoff s_rules
The Electric Circuit And Kirchhoff’S Rules by Students
Project on STATCOM
Dynamic Programming
Lecture 1 the lecture
Ad

Viewers also liked (20)

PDF
Harmony Search for Multi-objective Optimization - SBRN 2012
PDF
Harmony Search as a Metaheuristic Algorithm
PPT
2010 a novel global harmony search algorithm for reliability problems
PPTX
저널 임팩트 팩터(Journal Impact Factor)
PDF
Environment challenge in automotive Industry
PDF
روش‌شناسی تفکر نرم سیستمی-SSM
PDF
گونه شناسی تحلیل استراتژیک
PDF
Benchmark technique
PPTX
Multi-Objective WindFarm Optimization Simultaneously Optimizing COE and Land ...
PDF
برنامه ریزی تعاملی-Interactive planning
PPT
Intrusion Detection Techniques for Mobile Wireless Networks
PDF
اصول بازاریابی
PDF
مديريت فرآيندهاي كسب و كار با معرفي چارچوب طبقه بندي شده فرآيند خودروسازان (A...
PPTX
Harmony.ppt
PPTX
Time-Cost Trade off (Project Management)
PDF
کارت امتیاز متوازن
PPT
Cuckoo search final
PPTX
Cuckoo search algorithm
PPTX
Peace and Harmony
PPTX
Cuckoo search
Harmony Search for Multi-objective Optimization - SBRN 2012
Harmony Search as a Metaheuristic Algorithm
2010 a novel global harmony search algorithm for reliability problems
저널 임팩트 팩터(Journal Impact Factor)
Environment challenge in automotive Industry
روش‌شناسی تفکر نرم سیستمی-SSM
گونه شناسی تحلیل استراتژیک
Benchmark technique
Multi-Objective WindFarm Optimization Simultaneously Optimizing COE and Land ...
برنامه ریزی تعاملی-Interactive planning
Intrusion Detection Techniques for Mobile Wireless Networks
اصول بازاریابی
مديريت فرآيندهاي كسب و كار با معرفي چارچوب طبقه بندي شده فرآيند خودروسازان (A...
Harmony.ppt
Time-Cost Trade off (Project Management)
کارت امتیاز متوازن
Cuckoo search final
Cuckoo search algorithm
Peace and Harmony
Cuckoo search
Ad

Similar to Harmony search presentation (20)

PDF
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
PDF
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
PDF
K0956568
PDF
Enhancing three variants of harmony search algorithm for continuous optimizat...
PPTX
Optimization Technique Harmony Search
PDF
Harmony Search Algorithmic Rule for Optimum Allocation and Size of Distribute...
PPTX
Time cost trade off optimization using harmony search and Monte-Carlo Method
PDF
Harmony Search Algorithm Based Optimal Placement of Static Capacitors for Los...
PDF
Quantum Meta-Heuristic Algorithm Based on Harmony Search
PDF
AUTOMATED TEST CASE GENERATION AND OPTIMIZATION: A COMPARATIVE REVIEW
PDF
Musical Information Retrieval Take 2: Interval Hashing Based Ranking
PPT
Chord at une-presentation-t4e
PDF
Interval Hashing Based Ranking
PDF
Automatic Calibration of Modified FM Synthesis to Harmonic Sounds using Genet...
PPTX
Fundamentals of music processing chapter 5 발표자료
PDF
03 20270 true power loss reduction
PDF
07-06-ACA-Tonal-Chord.pdf
PDF
Melody harmonizer
PDF
IMPROVED MUSIC BASED HARMONY SEARCH (IMBHS) FOR SOLVING JOB SHOP SCHEDULING P...
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
AUTOMATIC GENERATION AND OPTIMIZATION OF TEST DATA USING HARMONY SEARCH ALGOR...
K0956568
Enhancing three variants of harmony search algorithm for continuous optimizat...
Optimization Technique Harmony Search
Harmony Search Algorithmic Rule for Optimum Allocation and Size of Distribute...
Time cost trade off optimization using harmony search and Monte-Carlo Method
Harmony Search Algorithm Based Optimal Placement of Static Capacitors for Los...
Quantum Meta-Heuristic Algorithm Based on Harmony Search
AUTOMATED TEST CASE GENERATION AND OPTIMIZATION: A COMPARATIVE REVIEW
Musical Information Retrieval Take 2: Interval Hashing Based Ranking
Chord at une-presentation-t4e
Interval Hashing Based Ranking
Automatic Calibration of Modified FM Synthesis to Harmonic Sounds using Genet...
Fundamentals of music processing chapter 5 발표자료
03 20270 true power loss reduction
07-06-ACA-Tonal-Chord.pdf
Melody harmonizer
IMPROVED MUSIC BASED HARMONY SEARCH (IMBHS) FOR SOLVING JOB SHOP SCHEDULING P...

Recently uploaded (20)

PDF
737-MAX_SRG.pdf student reference guides
PPTX
introduction to high performance computing
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PPT
Total quality management ppt for engineering students
PPTX
CyberSecurity Mobile and Wireless Devices
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
Design Guidelines and solutions for Plastics parts
PDF
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
PPTX
Module 8- Technological and Communication Skills.pptx
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
Management Information system : MIS-e-Business Systems.pptx
PPTX
communication and presentation skills 01
737-MAX_SRG.pdf student reference guides
introduction to high performance computing
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
August -2025_Top10 Read_Articles_ijait.pdf
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Exploratory_Data_Analysis_Fundamentals.pdf
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Total quality management ppt for engineering students
CyberSecurity Mobile and Wireless Devices
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Design Guidelines and solutions for Plastics parts
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
Module 8- Technological and Communication Skills.pptx
"Array and Linked List in Data Structures with Types, Operations, Implementat...
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Management Information system : MIS-e-Business Systems.pptx
communication and presentation skills 01

Harmony search presentation

  • 3. Contents • Introduction of Harmony Improvisation • Analysis of Harmony Improvisation • Analogy Music and Optimization • Basic Elements of HSA • Three main procedures (every iteration) • HSA behavior (movie) • Publication Trend ( No. and fields) • Steps of Harmony Search Algorithm • Modifications to the original HS algorithm • MATLAB code sample (Sphere Function)
  • 4. Introduction • Harmony in nature is a special relationship between several sound waves that have different frequencies. • Even in ancient civilizations, the relation between music and mathematics was considered to be essential, but only recently scientists found an interesting connection between optimization techniques and music. • The music-inspired harmony based optimization algorithm; the algorithm is based on the observation that the aim of music creation is the quest of the perfect state of harmony
  • 5. Introduction • in the same way a music band improves rehearsal after rehearsal, HSA improves iteration after iteration. • The term Harmony in music refers to the sound result caused from two or more instruments that play at the same time. harmony evaluates the relation between two or more sound- waves and their interaction. This interaction is crucial for the final result and specifies if it is pleasant or not.
  • 6. Analysis of Harmony Improvisation Seeking Harmony in Music. • The new algorithm was inspired by the improvisation process that a skilled musician follows when he is playing in a music band. the following choices: • a. To play the famous Obviously, every member of the band knows the theme and can play it by heart. In other words all musicians have this melody in their minds • b. play something similar to the theme. Very often, musicians try to enrich a music piece slightly changing or adjusting pitches of the memorized theme. • c. This choice, which is so common in Jazz music, gives the freedom to the musician to play random tunes. The performer uses his talent
  • 9. Simple Analogy Music and Optimization(Regarding to Parameters )
  • 12. Basic Elements of HSA • Harmony: Harmony is similar to the gene in GA. It is the set of the values of all the variables of the objective function. • Harmony Memory (HM): The places where harmonies are stored. • Harmony Memory Size (HMS): The number of places that HM has. The best harmony is stored in the 1st place and the rest harmonies are classified according to their performance. Definition of HMS is an important part of the calibration of the model. • Maximum number of Iterations (MaxIter): Defines the termination criterion. It is similar to the maximum number of generations in GA.
  • 13. Basic Elements of HSA • Harmony Memory Considering Rate(HMCR) • pitch adjusting rate (PAR) • fret width (FW) • a fret is the metallic ridge on the neck of 5 a string instrument (such as guitar), which divides the neck into fixed segments
  • 14. The Structure of Harmony Memory
  • 15. Three main procedures (every iteration) 1. HS is choosing any value from HS Memory. This process is defined as Memory Consideration and it is very important because it ensures that good harmonies will be considered through the solution. – Harmony Memory Considering Rate (HMCR) :This index will specify the probability that new harmony will include a value from the historic values that are stored in the Harmony Memory. (Typical values of HMCR are typically from 70% to 95% ) • HMCR Intensification • HMCR Diversification
  • 16. Three main procedures (every iteration) 2. Every component of the new harmony chosen from HM, is likely to be pitch-adjusted. For example a Pitch Adjusting Rate (PAR) of 10%, indicates that algorithm will choose neighboring values for the 10% of the harmonies chosen from HM. The new harmony will include the value xi new which will be: • Pitch Adjustment is similar to Mutation procedure in GA and typically is between 0.1 to 0.5, FW normally ranges from 1% to 10% of total value range
  • 17. Three main procedures (every iteration) 3. The third choice is to select a totally random value from the possible value range. Randomization occurs with probability (100-HMCR)% and increases the diversity of the solutions. Although pitch adjustment has a similar role, it is limited in a local area. Randomization can drive the algorithm to explore the whole range and attain the global optimality.
  • 18. Abstract of three Operators
  • 19. Analogy between music and optimization
  • 21. Publication Trend 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 1 3 0 11 14 28 43 91 120 211 318 0 50 100 150 200 250 300 350
  • 22. Steps of Harmony Search Algorithm
  • 23. Flow chart of the Harmony Search Algorithm
  • 25. HS VS Other Meta-Heuristics • It preserves the history of past vectors (Harmony Memory) similar to TS • able to vary the adaptation rate (Harmony Memory Considering Rate) from the beginning to the end of computation resembling SA • manages several vectors simultaneously in a manner similar to GA. However, the major difference between GA and HS is that HS makes a new vector from all the existing vectors (all harmonies in the Harmony Memory), while GA makes the new vector only from two of the existing vectors (the parents)
  • 26. Modifications to the original HS algorithm • Alternative initialization procedures for HM, or an extended HM structure • Originally fixed parameter values were used. However, some researchers have proposed changeable parameter values. Mahdavi et al. [4] suggested that PAR in-crease linearly and FW decrease exponentially with iterations:
  • 27. Modifications to the original HS algorithm • Options for handling constraints during generation of new harmonies • Modifications to the algorithm’s structure, that is, adding or removing blocks and changing the processing sequence in the flowchart
  • 29. SAMPLE (Travel Salesman Problem) • each musical instrument in HM is substituted with a variable assigned for each city. Linking each city to its next assigned city creates one of the possible tours. • The length of the tour is compared with those of existing tours in HM. If the new length is shorter than any of existing tour lengths, the new tour is included in HM, and the worst tour (longest tour) is excluded from HM. • 30 runs, HMCR = 0.85 - 0.99, HM = 10 – 100, 20,000 iterations, Seven out of 30 runs have reached global optimum.
  • 30. MATLAB code sample (Sphere Function)