What is a appropriate method to maximize function subject to nonlinear equality constraint? can we use fmincon?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Alan Weiss
el 24 de Dic. de 2015
1 voto
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
1 comentario
Walter Roberson
el 25 de Dic. de 2015
I missed that, but yes, this is what should be done to maximize a function.
Categorías
Más información sobre Systems of Nonlinear Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!