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

1 回表示 (過去 30 日間)
Aidan
Aidan 2014 年 12 月 14 日
回答済み: Matt J 2014 年 12 月 14 日
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

回答 (1 件)

Matt J
Matt J 2014 年 12 月 14 日

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by