Open Source · GPU-Accelerated
EvoX Runtime
GPU-Accelerated Evolutionary Computation Framework
EvoX Runtime is a distributed, GPU-accelerated framework for scalable evolutionary computation — 50+ algorithms for single- and multi-objective optimization, neuroevolution, and evolutionary reinforcement learning, fully compatible with PyTorch.
import torch
from evox.algorithms.pso_variants import PSO
from evox.problems.numerical import Ackley
from evox.workflows import StdWorkflow, EvalMonitor
torch.set_default_device("cuda")
# Define the algorithm
algorithm = PSO(pop_size=100, lb=-32 * torch.ones(10), ub=32 * torch.ones(10))
problem = Ackley()
monitor = EvalMonitor()
workflow = StdWorkflow(algorithm, problem, monitor)
workflow.init_step()
for i in range(100):
workflow.step()
monitor.plot()