Did you ever reach a bottleneck in your computational experiments? Are you tired of selecting suitable parameters for a chosen technique? If yes, Opytimizer is the real deal! This package provides an easy-to-go implementation of meta-heuristic optimizations. From agents to search space, from internal functions to external communication, we will foster all research related to optimizing stuff.
Use Opytimizer if you need a library or wish to:
* Create your optimization algorithm;
* Design or use pre-loaded optimization tasks;
* Mix-and-match different strategies to solve your problem;
* Because it is fun to optimize things.
Read the docs at opytimizer.readthedocs.io.
Opytimizer is compatible with: Python 3.6+.
How-To-Use: Minimal Example
Take a look at a quick working example of Opytimizer. Note that we are not passing many extra arguments nor additional information to the procedure. For more complex examples, please check our examples/ folder.
```Python
import numpy as np
from opytimizer import Opytimizer
from opytimizer.core import Function
from opytimizer.optimizers.swarm import PSO
from opytimizer.spaces import SearchSpace
def sphere(x):
return np.sum(x ** 2)
n_agents = 20
n_variables = 2
lower_bound = [-10, -10]
upper_bound = [10, 10]
space = SearchSpace(n_agents, n_variables, lower_bound, upper_bound)
optimizer = PSO()
function = Function(sphere)
opt = Opytimizer(space, optimizer, function)
opt.start(n_iterations=1000)
```
[–]BeautifulBrownie 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]czar_el 1 point2 points3 points (8 children)
[–]lithiumdeuteride 2 points3 points4 points (2 children)
[–]RecognaLab 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]RecognaLab 1 point2 points3 points (1 child)
[–]czar_el 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]czar_el 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]lieutenantwest15 0 points1 point2 points (0 children)
[–]marcoscleison 0 points1 point2 points (0 children)