differential-evolution

How to pass shared variable in scipy differential evolution with worker > 2

How to pass shared variable in scipy differential evolution with worker > 2 Question: I want to pass a shared variable in python scipy "differential_evolution" to keep track of experiment number. I can do this with worker=1 , but i am unable to keep track of experiment number with worker > 2. Here is my …

Total answers: 1

How to pass arguments to callback function in scipy.optimize.differential_evolution

How to pass arguments to callback function in scipy.optimize.differential_evolution Question: I am using differential_evolution from scipy.optimize for my optimization problem. My optimizer takes some arguments for the optimization. Code – res = optimize.differential_evolution(objective,bounds,args=arguments,disp=True,callback = callback_DE(arguments)) I also have a callback function. I want to send my arguments to my callback function and that is where …

Total answers: 3