fminsearch の並列処理

2 visualizzazioni (ultimi 30 giorni)
yosh
yosh il 26 Dic 2020
fminsearch を10回行う作業を効率化するためにparforを使用して並列処理をしたいのですが、
[x,fval]=[fun,x0,options]
のfunが関数ハンドルになっておりエラーが出てしまいます。
このfunを各回で変更させながら並列計算を行う方法を教えて頂きたいです。
fun1-fun10をそれぞれ定義した後
parfor i=1:10
fun = str2fun(append('fun',numstr(i)))
fminsearch(fun,x0,options)
を実行したのですが、
関数または変数'fun1'が認識されませんとエラーが出てしまいます。

Risposte (0)

Categorie

Scopri di più su 並列 for ループ (parfor) in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!