MATLAB: How to add the non-linear constraints to gamultiobj when using ga toolbox

gamultiobjMATLAB

How to add the non-linear constraints to gamultiobj when using ga toolbox? I want to use it in multi-objective GA, but I don't know how to add the non-linear constraints.

Best Answer

The first 9 arguments for gamultiobj() are the same as the first 9 arguments for ga(). (The 10th argument for ga() is different.) This includes the nonlinear constraint function.
If you are using some kind of visual tool to generate code, then if you need to you could configure it with ga and nonlinear constraints, and then you could edit the code to change ga() to gamultiobj()