hho

Logo

This repository contains the Harris Hawks Optimization code (matlab M-file) for optimizing the benchmark function.

View the Project on GitHub ElkmanY/hho

Harris Hawks Optimization (HHO)

View hho on File Exchange

This repository contains the Harris Hawks Optimization code (matlab M-file) for optimizing the benchmark function:

.
├── img
|   ├── convergence-2d.png
|   ├── convergence-50d.png
|   ├── logo.jpg 
|   ├── schwefel_222.gif
|   └── trajectory.png
├── _config.yml
├── hho.m —— [function of harris hawks optimization]
├── LICENSE
├── README.md
└── test.m —— [a test for 'hho.m']

Usage

[fbst, xbst, performance] = hho ( objective, d, lmt, n, T, S )

where

Test

For instance, a benchmark Schwefel 2.22 is chosen for a test:

benchmark

Here, this benchmark is coded as a function handle

schwefel_222 = @(x) sum(abs(x))+prod(abs(x));

where x is a d-by-n matrix.

To run the test by executing

test.m

The test including two runs:

Reference:

[1] Article: Harris hawks optimization: Algorithm and applications

[2] Repo: BenchmarkFcns