quadprog for constrained maximisation
이전 댓글 표시
I am trying to rewrite the following maximisation problem in quadprog format.
max{w} (w'.M - r) / (w S w)^-0.5 subject to w'. 1 = 1 and all w >=1
How can such problem be reformulated to suite Matlab optimisation solvers like quadprog (https://uk.mathworks.com/help/optim/ug/quadprog.html)?
답변 (1개)
Alan Weiss
2018년 3월 28일
0 개 추천
I don't know how that problem can be formulated for quadprog. However, it is simple to formulate it for fmincon. For help, check the documentation:
- Write scalar objective function
- Maximize instead of minimize
- Linear constraints
- Lower bound constraints
Alan Weiss
MATLAB mathematical toolbox documentation
카테고리
도움말 센터 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!