How do I call a function for optimization that includes variables I'm not interested in?

1 vue (au cours des 30 derniers jours)
Aidan
Aidan le 14 Déc 2014
Réponse apportée : Matt J le 14 Déc 2014
I am a new user of Matlab. I want to minimize a function. However, I know that if a function is to be minimized it has to accept a vector and return a scalar. The function I want to minimize is:
[xout varxout gradout vargradout report] = ...
gek(xi,y,erry*ones(size(y)),grad,errgr*ones(size(grad)),xiout,options);
I am only interested in minimizing xout with respect to xiout. i.e xout = f(xiout).
How can I do this?
Ps. I have access to the optimization toolbox.
Thanks in advance

Réponses (1)

Matt J
Matt J le 14 Déc 2014

Catégories

En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by