Failure in initial user-supplied objective function evaluation. FMINCON cannot continue.

Kindly advise on the error I am getting. I am trying to run the fmincon code for my portfolio optimisation but unable to do so. Please tell me how to get the distribution of my portfolio as well. Thanks
% column vector for initial weight w3 = fmincon(@(w)compute_pvar (w, C_is *252) , w0 , [] , [] , Aeq , beq , [] , [] , [] , options); pvar = compute_pvar (w3 , C_is *252) ; fprintf ('The minimum portfolio variance is %.4f.\n', sqrt ( pvar )) ;

1 件のコメント

Torsten
Torsten 2016 年 1 月 21 日
How should we be able to answer your question without seeing your function "compute_pvar" ?
Best wishes
Torsten.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangePortfolio Optimization and Asset Allocation についてさらに検索

質問済み:

2016 年 1 月 19 日

コメント済み:

2016 年 1 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by