Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

tolerance for fmincon function?

1 visualización (últimos 30 días)
Sameer
Sameer el 31 de Mayo de 2014
Cerrada: Matt J el 31 de Mayo de 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 comentario
Matt J
Matt J el 31 de Mayo de 2014
That is a discussion best continued in the post you referenced.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by