MATLAB: How to get the Values of nonlcon in gamultiobj

MATLABnonlconnonlinear constraintsOptimization Toolboxoutputfcn

Is it possible to get the c-value of the nonlinear constraints using gamultiobj while the algorithm is still running? I can access the scores of the objective Function by using an Outputfunction and the Score field of the State Structure. Is there a similar way for the nonlinear constraints? Or is there at least a possibility to say which points of an Generation satisfy the constraints (c-value is less or equal zero).

Best Answer

Currently, you cannot obtain the value of the nonlinear constraint functions as a field in the gamultiobj state structure in an output function. However, wasteful as it might be, you can access the population in the |state| structure, and calculate the values of the nonlinear constraints inside the output function.
Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation