Mean-Variance Optimization, constraint as matrix operation
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I am trying to use the linprog function to solve the mean-variance problem. I am confused with the input of constraint format. Basically, the objective function is
min W' * cov * W
subject to
W' * u = targetMean
W' * vectorOne = 1
I checked out the syntax
x = linprog(f,A,b,Aeq,beq)
I wonder how would I put the x-transpose into the constraint. Thanks.
0 commentaires
Réponses (1)
John D'Errico
le 19 Fév 2017
Strictly impossible using linprog. PERIOD. EVER.
Your objective function is a quadratic form. It is NOT linear.
However, nothing stops you from employing quadprog, which is designed to solve for a minimum of a quadratic form. You will have two equality constraints, so Aeq will be an array with two rows.
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!