Constrained optimization of a vector
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mahdi Izadi
el 24 de Mayo de 2022
Comentada: Walter Roberson
el 25 de Mayo de 2022
Hi!
I am trying to optimize a vector. I want to find , where ()=0, and .
f_1 and f-2 are two procedural functions, stored in m-files (not straight-forward functions).
How can I do it with a viable (time-effective) algorithm?
Thanks!
0 comentarios
Respuesta aceptada
Walter Roberson
el 24 de Mayo de 2022
Use fmincon. Make the objective f1^2 and use a nonlinear equality constraint with f2.
4 comentarios
Walter Roberson
el 25 de Mayo de 2022
It depends what the calculations do. In particular, are there analytic forms of the jacobian? Possibly a sparse form? fmincon needs to estimate the gradient of every variable against every other variable, and if you have hundreds of variables that can get slow.
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!