Encoding Portfolio Investment Limits as Linear Constraints
Summary
The document explains how linear inequalities in a constrained portfolio optimization model represent investment rules. In a maximum expected return problem with a variance ceiling, the quadratic risk constraint sets the permitted portfolio variance, while a matrix inequality encodes rules such as nonnegative weights, a limit on total investment, or caps on individual holdings. The matrix rows correspond to restrictions and the matching entries in the bound vector set their limits.
It emphasizes that a fully invested portfolio is not guaranteed unless the model includes a corresponding constraint. An example describes how to encode nonnegative weights, a total allocation ceiling, and per-asset maximum weights. The document does not give a complete solver setup or explain the full optimization derivation, so it clarifies the role of the constraints rather than providing an end-to-end portfolio construction method.
Key ideas
- The variance ceiling restricts risk while the objective maximizes expected portfolio return.
- The matrix inequality represents linear investment restrictions and their bounds.
- A full-investment requirement must be added explicitly if desired.
- Nonnegative allocations can be encoded by negating each portfolio weight in an inequality.
- Individual asset caps and a total allocation limit can be represented as additional matrix rows.
Tags
Full text
# Maximum return portfolio using linear programming with quadratic constraints
# Maximum return portfolio using linear programming with quadratic constraints
In the maximum return portfolio problem formulation above,
- is $A=\mu^\top \Sigma^{-1} \mu$?
- What is $b$ equal to, and
- is the second constraint required? An inequality constraint for target portfolio volatility doesn't seem to have anything to do with maximizing portfolio return.
Source
## Answer by Kermittfrog (score 1, accepted)
https://quant.stackexchange.com/a/59027
In words, the formulation implies to maximize expected portfolio returns for a given maximum portfolio variance, $\sigma$ (Commonly noted as $\sigma^2$, though).
The linear restrictions $Aw\leq b$ imply the 'usual' conditions, i.e. $w_i\geq 0$, $\sum_i w_i \leq 1$ etc. Please note that your stated formulation does not include a restriction on 'full investment', i.e. you might come up with an optimal portfolio that is not fully invested. Hence, $A$ and $b$ encapsulate linear inequality conditions. Standard quadratic programming solvers let you specify equality and inequality constraints, though.
Edit: You finally construct the matrices by combining your investment constraints, each represented by a line in $A$ and a corresponding entry in $b$. Say you want to say $\sum_i w_i\leq 1$ then this is equivalent to $w_1 + w_2 + \ldots + w_n \leq 1$ which equals $\mathbb{1}^Tw\leq 1$. Hence, you add a row of ones to $A$ and a $1$ to $b$.
Example
Say you want to invest $\geq0\%$ in each asset, but no asset should be invested at more than, say, $10\%$. this would imply
$$Ax\leq b = \begin{pmatrix}-1&0&\ldots & 0\\ 0&-1&\ldots&0\\ \ldots &\ldots &\ldots &\ldots &\\ 0 & 0 & \ldots & -1\\ 1 & 1 & \ldots & 1\\ 1 & 0 & \ldots & 0 \\ 0 & 1 & \ldots & 0\\ \ldots&\ldots&\ldots&\ldots\\ 0 & 0 &\ldots & 1\end{pmatrix}x\leq\begin{pmatrix}0\\0\\ \ldots\\0\\1\\0.1\\0.1\\ \ldots\\ 0.1\end{pmatrix}$$
HTH?Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.