Negative Skewness Constraints: private API

PortfolioOptimisers.get_chol_or_V_pm — Function
get_chol_or_V_pm(model::Model, pr::HighOrderPrior) -> Any
get_chol_or_V_pm(
    model::Model,
    pr::HighOrderPrior,
    mtx_sqrt::Union{Nothing, AbstractMatrixSquareRootAlgorithm}
) -> Any

Retrieve or compute and cache the square-root matrix of the co-skewness matrix V.

If model does not yet contain GV, computes the transpose of the square root of pr.V under mtx_sqrt with matrix_square_root, and stores it as the :GV Model State entry. Every measure of the model that reads the prior's matrix reads this one factor, so the first measure sets the algorithm. On a positive definite matrix every algorithm gives the Cholesky factor.

Arguments

  • model::JuMP.Model: The JuMP optimisation model.
  • pr::HighOrderPrior: High-order prior containing V.
  • mtx_sqrt: Square-root algorithm, or nothing for the plain Cholesky factor.

Returns

  • GV::Matrix: Square-root factor of the co-skewness matrix.

Related

source
PortfolioOptimisers.set_negative_skewness_risk! — Function
set_negative_skewness_risk!(
    model::Model,
    r::NegativeSkewness{<:Any, <:Any, <:Any, <:Any, <:SOCRiskExpr},
    opt::Union{AbstractProgrammeAllocationSet, RiskJuMPOptimisationEstimator},
    nskew_risk::AbstractJuMPScalar,
    i,
    args...;
    prefix
) -> AbstractJuMPScalar

Finalise the negative-skewness risk expression and apply bounds according to the formulation.

The SOCRiskExpr overload passes the SOC variable directly to set_risk_bounds_and_expression!. The SquaredSOCRiskExpr overload squares it. The QuadRiskExpr overload encodes skewness as the quadratic form w' * V * w.

Arguments

  • model::JuMP.Model: The JuMP optimisation model.
  • r::NegativeSkewness: Negative-skewness risk measure instance.
  • opt::RiskConstraintOwner: The owner of the risk constraint, a risk-based JuMP optimisation estimator or a programme Allocation Set.
  • nskew_risk: SOC variable for negative-skewness risk.
  • i: Constraint index for unique variable and constraint naming.
  • V::MatNum: Co-skewness matrix (used only by the Quad overload).

Returns

  • The negative-skewness risk JuMP expression.

Related

source