Quadratic Programming (QP)
Explore quadratic programming where objective functions are quadratic and constraints linear. Understand the formulation, feasible sets, and projected gradient descent. Apply these concepts to practical problems like portfolio optimization and constrained production scenarios. Learn to implement PGD algorithms with closed-form projections for constrained machine learning optimization.
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:
and ...