MATLAB: Fitness function increases rather than decreasing with fmincon using hybrid Genetic Algorithm

fitness functionfmincongenetic algorithmGlobal Optimization Toolbox

While running a hybrid GA with fmincon for minimising the objective function to 0. Once GA stops and fmincon starts. The fitness value in iteration as shown in figure instead of decreasing increases. GA achieves perfect solutions, but with fmincon usage approximate solution is obtained. I am using interior algorithm with central difference in fmincon. Note this code is related to my topic. For standard bencmark problems the process works just fine .

Best Answer

This might happen if your objective has discontinuities or non-differentiabilities. Such functions are outside the scope of fmincon.