conversion from fmincom to NSGA -II
Show older comments
I want to convert fmincom to NSGA -II algorithm
4 Comments
Sam Chak
on 23 Nov 2022
I guess. Your intent is to use fmincon function as a template and then overwrite the existing method that converges to a solution with your special NSGA-II algorithm?
basit mujtaba
on 24 Nov 2022
basit mujtaba
on 24 Nov 2022
Answers (1)
Sam Chak
on 25 Nov 2022
If you have written your own NSGA-II algorithm in a MALTAB function file, for example, called nsga2.m, then you can replace this line
[x, aard] = fmincon(costfun, P0, [], [], [], [], lb, ub)
and insert your NSGA-II algorithm with this line:
[x, aard] = nsga2(costfun, param1, param2, param3, ...)
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!