フィルターのクリア

Vectorized gradient based optimizers

2 ビュー (過去 30 日間)
mahmoud tarek
mahmoud tarek 2019 年 12 月 30 日
コメント済み: Matt J 2020 年 1 月 15 日
Is there any vectorized gradient based optimizer available ? Even outside matlab ?

採用された回答

Matt J
Matt J 2019 年 12 月 31 日
編集済み: Matt J 2019 年 12 月 31 日
As long as you are willing to supply the gradient, you can vectorize the minimization of N objectives,
by applying fminunc to the consolidated objective,
or analogously with fmincon if each problem has constraints.
  22 件のコメント
mahmoud tarek
mahmoud tarek 2020 年 1 月 15 日
yes, i can and i am trying now to provide the gradients (if possible) of my simulations function.
Do you have any documents or ideas on how to do that ?
Matt J
Matt J 2020 年 1 月 15 日
The chain rule,
If an analytical calculation is too difficult, you can also try your own vectorized finite difference method to find the Jacobian of your simulation function. From that, it should be easier to find the total derivative of your objective using the chain rule.
delta = small_number;
Y0=simulation(X); %
Jacobian=nan(size(X)); %to hold the result
for i=1:11
Xp=X;
Xp(:,i)=Xp(:,i)+delta;
Yp=simulation(Xp);
Jacobian(:,i)=(Yp(:,i)-Y0(:,i))/delta;
end

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by