is it possible to modify the scipy differential_evolution algorithm?

97 Views Asked by At

I need to try several boundary constraint-handling methods in Differential Evolution, so I would like to know how to modify the original differential_evolution scipy algorith, is that possible?

1

There are 1 best solutions below

0
Andrew Nelson On

scipy.optimize.differential_evolution already has simple box-bounds, as well as NonlinearConstraint and LinearConstraint. The latter two use the Lampinen approach.

If you wish to experiment with other constraint mechanisms you will probably have to modify the scipy source code directly.