Optimoptions set both Display AND Parallel properties

1 回表示 (過去 30 日間)
Francesco Formaggio
Francesco Formaggio 2019 年 5 月 20 日
回答済み: Steven Lord 2019 年 5 月 20 日
I'm using quadprog and I want 2 things:
  1. Use the parallel toolbox
  2. Suppress all text outputs, since I'm using quadprog in a loop, and I don't want it to diplay stuff.
I can solve problem 1 using optimoptions and problem 2 using optimset. But apparently there is no way of solving 1 and 2 simultaneusly, as quadprog accepts either an optimset object or an optimoptions object, not both.
Any ideas?
Thanks.

採用された回答

Steven Lord
Steven Lord 2019 年 5 月 20 日
You can't solve problem 1 using either optimset or optimoptions.
The Optimization Toolbox options reference page shows that UseParallel is not used by quadprog. optimset will return a struct array with that field present, and you can change that field if you like, but quadprog doesn't do anything with that field if you pass that options structure into it. As one check of this, the word "parallel" does not appear at all on the quadprog documentation page.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Least Squares についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by