Worst Realisation Constraints: private API

PortfolioOptimisers.set_wr_risk_expression! — Function
set_wr_risk_expression!(
    model::Model,
    X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}};
    loss,
    prefix
) -> Any

Introduce the worst-realisation risk variable and constraint to model.

Creates a scalar variable wr_risk and adds sc * (wr_risk .+ net_X) >= 0 so that wr_risk upper-bounds the negative of every portfolio return. Returns the existing variable if already present.

Mathematical definition

\[\begin{align} \mathrm{WR}(\boldsymbol{w}) &= \max_{t} (-\hat{r}_t) = -\min_{t} \hat{r}_t\,. \end{align}\]

Where:

  • $\mathrm{WR}(\boldsymbol{w})$: Worst realisation.
  • $\hat{r}_t = \boldsymbol{x}_t^\intercal \boldsymbol{w}$: Portfolio return at time $t$.

where $\hat{r}_t = \boldsymbol{x}_t^\intercal \boldsymbol{w}$ is the net portfolio return at time $t$.

Arguments

  • model::JuMP.Model: The JuMP optimisation model.
  • X::MatNum: Asset returns matrix (T × N).

Returns

  • wr_risk: JuMP scalar variable for the worst-realisation risk.

Related

source