def test(): p = ParamRange(np.array([[-1, 1, 10], [0, 5, 10], [-2, 1.1, 10]])) s = Store('testga.giclog') pars = {'threads': 0, 'size': 20, 'time': 0.1} model = Model() # test implementation that return product of params model.perfect = 10 gapars = {'crossover': .9, 'mutation': .05, 'transposition': .001, 'minprop': 0} alg = GA_Prop(gapars, p) o = Optimizer(pars, model, alg, s) o.run()