フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

tolerance for fmincon function?

1 回表示 (過去 30 日間)
Sameer
Sameer 2014 年 5 月 31 日
閉鎖済み: Matt J 2014 年 5 月 31 日
Hello:
this is where my main question is. Basically, I am having trouble finding an optimal solution (variance) that satisfies all the linear equality constraints.
you can see the full code in the link.
in swtOther_Aeq1, the first constraint is to make stocks 1,3,7 comprise 22% of the portfolio.
the second constraint is to make the portfolio return equal to a certain return in the grid (ERGRid).
the third constraint is to have the total weights sum up to one for the portfolio.
When using these constraints, I was unable to find a solution that satisfies all three linear equality constraints. As such, I was stuck and did not know what to do.
However, my teacher was able to write this program and get an optimal portfolio that was able to meet these constraints.
As such, is there a way to revise the tolerance in the options section to get a legitimate portfolio subject to the constraints?
Thank you.
  1 件のコメント
Matt J
Matt J 2014 年 5 月 31 日
That is a discussion best continued in the post you referenced.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by