Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

tolerance for fmincon function?

1 vue (au cours des 30 derniers jours)
Sameer
Sameer le 31 Mai 2014
Clôturé : Matt J le 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 commentaire
Matt J
Matt J le 31 Mai 2014
That is a discussion best continued in the post you referenced.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by