scipy-optimize

How to put a fixed specific quantity of items to be allowed in a bin

How to put a fixed specific quantity of items to be allowed in a bin Question: I have found this code for a bin packing problem in Google OR-tools. https://developers.google.com/optimization/bin/bin_packing#python_3 However, it does not have a volume constraint. What if the total quantity/number of items packed in a bin (which is printed in the output …

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