conversion from fmincom to NSGA -II

I want to convert fmincom to NSGA -II algorithm

4 Comments

Matt J
Matt J on 23 Nov 2022
Edited: Matt J on 23 Nov 2022
The question needs a lot more detail. What is the problem you have encountered?
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?
In this file I want to remove the fmincom part and insert NSGA algorithm in it

Sign in to comment.

Answers (1)

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, ...)

Products

Release

R2019a

Tags

Asked:

on 23 Nov 2022

Answered:

on 25 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!