Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

tolerance for fmincon function?

1 Ansicht (letzte 30 Tage)
Sameer
Sameer am 31 Mai 2014
Geschlossen: Matt J am 31 Mai 2014
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 Kommentar
Matt J
Matt J am 31 Mai 2014
That is a discussion best continued in the post you referenced.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by