Tracking Error Optimizer¶
This optimization should be used when a client's portfolio has drifted away from the model portfolio assigned to the client. The idea is to find the minimal amount of trades required to bring the portfolio within a prescribed tracking error constraint from the model.
Mathematically it is defined as:
Where \(\overline{1}_{|t_{i}|}\) is an indicator vector with ones when a security is traded and zeros elsewhere. By minimizing this indicator we are minimizing the amount of securities traded. This is a cardinality objective that requires a mixed-integer solver.
The constraints are:
- Tracking error constraint:
where \(\Sigma\) is the covariance between unique positions from model and client combined. TE is the tracking error threshold.
- Self financing trades:
Purchases have to be done with proceeds from sales.
- Long only:
Maximum sale for a position is the weight of the position in the portfolio.
- Other linear constraints:
To be supplied by user as per constraint definition