MATLAB: Using fmincon can I update the constraints on each iteration? and how to make the solution of fmincon only 0 or 1

fminconoptimization

using fmincon can I update the constraints on each iteration? and how to make the solution of fmincon only 0 or 1? this is the algorithm

Best Answer

You can specify integer/binary constraints only with intlinprog() and ga().
The constraints do not evolve throughout the optimization. Doing so would mean the algorithm is changing its mind about what it is searching for in the course of the search itself.