Quadratic Programming (QP)
Learn about quadratic programming (QP) and solve it using projected gradient descent (PGD).
We'll cover the following...
When the objective function is quadratic but constraints are linear, the optimization problem is said to be a quadratic programming (QP) problem. The general form of a QP problem is given as follows:
where
Here, the set
Example
Consider the portfolio optimization problem where the task is to find the best allocation of assets—such as stocks, bonds, or cash—that maximizes the expected return and minimizes the risk of a portfolio. Let’s say we have the following three types of assets to choose from:
Stocks that give an expected return of
but have a higher risk component (or variance) of Bonds that give an expected return of
and have a medium risk component (or variance) of Cash that gives an expected return of
and has low risk component (or variance) of
Considering that we want to assign
With these constraints, we need to find the asset allocation that yields the minimum risk
Note:
...