for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# Author: Simon Blanke
# Email: [email protected]
# License: MIT License
import numpy as np
class BasePopulationOptimizer:
def __init__(self, search_space):
self.search_space = search_space
self.space_dim = np.array([array.size - 1 for array in search_space])
self.eval_times = []
self.iter_times = []
def _iterations(self, positioners):
nth_iter = 0
for p in positioners:
nth_iter = nth_iter + len(p.pos_new_list)
return nth_iter