While fmin_con2 handles the return value for x nicely, x, es = fmin2 does not. We need to access es.result for a useful solution. This should be fixed for both cases, when constraints are passed and when the fitness function is a ConstrainedFitnessAL.
Some related points
While
fmin_con2handles the return value forxnicely,x, es = fmin2does not. We need to accesses.resultfor a useful solution. This should be fixed for both cases, when constraints are passed and when the fitness function is aConstrainedFitnessAL.Some related points
best_feasibleto contain the solution with the smallest violation when no feasible was found yet.find_feasible_finalto be depending on when the last feasible solution was seen.