No Risk Constraints
PortfolioOptimisers.set_risk_constraints! — Method
set_risk_constraints!(model::JuMP.Model, ::Any, r::NoRisk,
opt::RiskConstraintOwner, pr::AbstractPriorResult,
args...; loss::Bool = true, prefix::Symbol = Symbol(""),
kwargs...)Add the NoRisk risk expression to the JuMP model.
Registers a zero affine expression, so the risk contributes nothing to the objective and no variables or constraints are created. The model class is left untouched — a linear problem stays a linear program.
The expression is built once for each prefix. The settings of the first NoRisk 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::NoRisk: No-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
nr_risk: The zero risk expression.
Related