Quadratic Programming (QP)
Explore quadratic programming by understanding its formulation with quadratic objectives and linear constraints. Learn to solve such problems using projected gradient descent and apply these concepts to real-world examples like portfolio optimization. Gain insight into feasible sets, projection functions, and algorithm implementation.
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:
...