Maximize expected return with constraints
Mostrar comentarios más antiguos
Hi guys, I need help for a really easy maximization.
Max E(r)=(mean vector)*(weight vector)'
I want to max the return by changing the weight vector (variable). The mean vector is constant.
The constraints are : (vector of 1's)*(weight vector)' = 1 %weights sum to 1
lb wi >= 0
ub wi =< 1
The solution should give me the Max E(r) and the corresponding (weight vector).
Thank you.
1 comentario
Mikhail
el 14 de Nov. de 2014
Isn't that a mathematical probmlem>?
Respuesta aceptada
Más respuestas (4)
John D'Errico
el 14 de Nov. de 2014
You want to maximize a linear objective function of the weights, subject to a linear equality constraint (that the weights sum to 1) as well as lower (0) and upper (1) bound constraints.
This is just a linear programming problem, and a basic, virtually trivial one at that.
help linprog
If you lack the optimization toolbox, then you will find something on the file exchange.
Marcel
el 14 de Nov. de 2014
0 votos
Torsten
el 14 de Nov. de 2014
0 votos
If the mean vector has the same entries at all positions, then the answer is correct ...
Best wishes
Torsten.
Marcel
el 14 de Nov. de 2014
0 votos
Categorías
Más información sobre Surrogate Optimization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!