Borrar filtros
Borrar filtros

fmincon with external multi-input functions

3 visualizaciones (últimos 30 días)
Jay Land
Jay Land el 23 de Sept. de 2019
Respondida: Steven Lord el 23 de Sept. de 2019
Can I use an external function with fmincon that has multiple inpt variables. All the examples I have seen seem to imply that the function is only dependent on x, but I would like to pass other parameters inti the function as well.

Respuestas (1)

Steven Lord
Steven Lord el 23 de Sept. de 2019
Use one of the techniques described on this documentation page. While that page specifically mentions fzero and integral, the techniques it describes also work for the objective and/or constraint functions you pass into fmincon.

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by