What is a appropriate method to maximize function subject to nonlinear equality constraint? can we use fmincon?

I want to maximize a function subject to nonlinear equality constraint, I wonder that fmincon can use with this problem or not? as we know fmincon is used to minimize the functions.

More Answers (1)

Perhaps Walter's answer satisfied you, but it seems to me the question was how to maximize rather than minimize a function, subject to nonlinear constraints. The documentation describes how to maximize: all you do is minimize the negative of your objective function. See the documentation for details.
Alan Weiss
MATLAB mathematical toolbox documentation

Community Treasure Hunt

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

Start Hunting!