Worst Realisation Constraints
The methods below are public. The other names of this topic are private, and the private page documents them.
PortfolioOptimisers.set_risk_constraints! — Method
set_risk_constraints!(
model::Model,
,
r::WorstRealisation,
opt::Union{AbstractProgrammeAllocationSet, RiskJuMPOptimisationEstimator},
pr::AbstractPriorResult,
args...;
loss,
prefix,
kwargs...
) -> Any
Add worst-realisation risk constraints to model.
Delegates to set_wr_risk_expression! to create wr_risk, then calls set_unindexed_risk_bounds_and_expression!. set_wr_risk_expression! builds wr_risk once for each prefix, and Range reads the same variable. The settings of the first WorstRealisation take effect, and a second measure logs a warning, because its bound and its scale have no effect.
Arguments
model::JuMP.Model: The JuMP optimisation model.r::WorstRealisation: Worst-realisation 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
wr_risk: The risk variable.
Related