options = optimset('Display', 'off') isn't working. fminsearch is still printing out values

1 回表示 (過去 30 日間)
Pocho
Pocho 2012 年 8 月 21 日
Hi all,
I am running fminsearch on a function that is optimizing the vector, weights_vector. The vector gets optimized for each day, and is stored as a column in a big weights_matrix
options = optimset('Display', 'off');
weights_matrix = ones(num_rows, num_dates);
for d1=1:num_dates
%this workspace variable 'value' is passed to fun, which is minimized by iterating over weights_vector
assignin('base', 'value', value_vector(:,di));
weights_matrix(:, di) = fminsearch(@fun, weights_vector, options);
end
After running this in the command window, MATLAB keeps printing out iterations (scalar values) of fminsearch, even though I set the options to off via optimset. What's going on?
  2 件のコメント
Oleg Komarov
Oleg Komarov 2012 年 8 月 21 日
I don't think you posted the whole code. I don't have any problems.
Walter Roberson
Walter Roberson 2012 年 8 月 21 日
Could we see the code of "fun" ?

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by