Giter VIP home page Giter VIP logo

hho's Introduction

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

  • objective is the function handle of the objective function
  • d is the dimension of the design variable
  • lmt is the limit of the design variable; is a matrix with d rows and 2 column, and the first column contains lower limits of all dimension while the second upper ones.
  • n is the population size of the particle swarm
  • T is the maximum iteration times.
  • fbst is the fitness of the optimal solution
  • xbst is the optimal solution
  • performance is contains the best fitness value, the average fitness value and the standard deviation.

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:

  • 30-d benchmark

    The results includes an optimal solution, its fitness and an execution time. Also, a plot of the convergence curve of fitness is shown.

    convergence-30d

  • 2-d benchmark

    The results includes an optimal solution, its fitness and an execution time. Also, a plot of the convergence curve of fitness, a plot of the trajectory of global optimal are shown.

    convergence-2d

    trajectory

Reference:

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

[2] Repo: BenchmarkFcns

hho's People

Contributors

elkmany avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vineela1102

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.