Giter Club home page Giter Club logo

optimizationforeveryone's Introduction

Optimization for Everyone

Introduction

  • Optimization for Everyone is a tool that you can compare meta-heuristic algorithms
  • It allows you to manipulate paramaters of the algorithms
  • In a single graph, plots the rate of convergence up to three algorithms.
  • Saves the results to a file for each run.

Installation

  • We suggest you to use an environment management system such as conda, venv, etc...
  • Clone the code from
git clone https://github.com/Optimization-for-Everyone/OptimizationForEveryone.git
  • Install packages using script below. pip must be installed in your environment to execute this script.
pip install -r requirements.txt
  • Run the the script below on the terminal
python main.py

How to Use

  • Select at least one algoritm and one function

  • Hit run button and get the convergence plot. It will plot only result of the selected algorithm. You can select up to three algorithms to compare or one algorithm for three different parameters.

  • The result of comparison look likes this for ackley function. We have 16 more pre-defined well-known functions.

  • SMA (Slime Mould Algorithm) has different parameters from other algorithms.

       

  • To get detailed explanation and formula of the selected function hit the question mark. You can see ackley's detailed information below.

  • You can use the following script to understand creating custom function. The following example is ackley function rewritten version using numpy functions.
sum(x**2)-20*exp( -0.2*sqrt( sum(x**2) / len(x) )) - exp( sum( cos( 2* pi * x )) / len(x) ) + 20 + exp(1)
  • After execution is finished, information about results and execution time is written to the output file.
Optimizer: HHO
ObjFucName: ackley
StartTime: 2022-08-23-15-58-59
EndTime: 2022-08-23-15-59-00
ExecutionTime: 1.2919793128967285
Best: 0.8523060992341915
BestIndividual:
[0.07709894 0.09411086 0.19324962 0.02339462 0.10257858 0.0276828
 0.12537082 0.06725648 0.09388774 0.09958472 0.12137024 0.02291474
 0.0975003  0.07889066 0.08116112 0.20592682 0.1061973  0.09311069
 0.12012845 0.08617068 0.07852312 0.12372042 0.08774778 0.07935038
 0.12469214 0.0650703  0.02309113 0.08295719 0.00837619 0.10117705]

optimizationforeveryone's People

Contributors

mharunturkmenoglu avatar tlamir avatar

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.