Maximum Drawdown Constraints
PortfolioOptimisers.set_risk_constraints! — Method
set_risk_constraints!(
model::Model,
,
r::MaximumDrawdown,
opt::Union{AbstractProgrammeAllocationSet, RiskJuMPOptimisationEstimator},
pr::AbstractPriorResult,
args...;
prefix,
kwargs...
) -> Any
Add maximum drawdown risk constraints to model.
Introduces a scalar variable mdd_risk and the constraint sc * (mdd_risk .- dd[2:T+1]) >= 0 so that mdd_risk upper-bounds every drawdown observation. A second call with the same prefix uses the registered variable and builds no rows. The settings of the first MaximumDrawdown take effect, and a second measure logs a warning, because its bound and its scale have no effect.
Mathematical definition
\[\begin{align} \mathrm{MDD}(\boldsymbol{w}) &= \max_{t=1,\ldots,T} dd_t\,. \end{align}\]
Where:
- $\mathrm{MDD}(\boldsymbol{w})$: Maximum drawdown.
- $T$: Number of observations.
- $dd_t$: Portfolio drawdown at time $t$.
where $dd_t$ is the portfolio drawdown at time $t$.
Arguments
model::JuMP.Model: The JuMP optimisation model.r::MaximumDrawdown: Maximum drawdown risk measure instance.opt::RiskConstraintOwner: The owner of the risk constraint, a risk-based JuMP optimisation estimator or a programme Allocation Set.pr::AbstractPriorResult: Prior result containing the returns matrixX.
Returns
mdd_risk: The risk variable.
Related