Clear Filters
Clear Filters

fminsearch の並列処理

2 views (last 30 days)
yosh
yosh on 26 Dec 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'が認識されませんとエラーが出てしまいます。

Answers (0)

Categories

Find more on 並列 for ループ (parfor) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!