Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.25 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.25 KB

Yabox

Yet another black-box optimization library for Python

Description

Yabox is a very small library for black-box (derivative free) optimization of functions that only depends on numpy and matplotlib for visualization. The library includes different stochastic algorithms for minimizing a function f(X) that does not need to have an analytical form, where X = {x1, ..., xN}. The current version of the library includes the Differential Evolution algorithm and a modified version for parallel evaluation.

Example of minimization of the Ackley function (using Yabox and Differential Evolution):

Ackley Function

Basic usage

Pre-defined functions

Yabox includes some default benchmark functions used in black-box optimization, available in the package yabox.problems. These functions also include 2D and 3D plotting capabilities:

from yabox.problems import CrossInTray
cross = CrossInTray()
cross.plot3d()

CrossInTray Function

Optimization

Example using Differential Evolution

Optimization example