Risk budget constraint generation: private API
PortfolioOptimisers.RkbE_Rkb — Type
const RkbE_Rkb = Union{RiskBudgetEstimator, RiskBudget}Alias for a risk budget estimator or result.
Matches a RiskBudgetEstimator, which states how to make a risk budget, or a RiskBudget, which holds a resolved budget. The rkb field of AssetRiskBudgeting and FactorRiskBudgeting takes this type, so a caller can give either form.
This alias has no vector counterpart, and risk_budget_constraints has no vector method. A risk budget is one allocation over the whole universe, so an optimiser holds one budget. WbE_Wb and FeesE_Fees have no vector counterpart for the same reason. TnE_Tn, LcE_Lc and PlCE_PlC have one, because an optimiser can hold several turnover, linear or phylogeny constraints. Each of those three families has a vector alias and a broadcast method.
The gap is deliberate. The routing targets that accumulate are (:lcse, :cte, :ple, :slt, :sst, :sglt, :sgst, :smtx, :sgmtx). The target of a risk budget, :rkb, is not in this set. Four of the six targets of a threshold are in it: :slt, :sst, :sglt and :sgst. Each of the four holds a positional list, with one entry for each scenario or group block. Thus threshold_constraints has a VecOptBtE_Bt method, and this family has none.
A vector given to risk_budget_constraints raises MethodError, because no broader method accepts it.
Related
RiskBudgetEstimatorRiskBudgetrisk_budget_constraintsBtE_Bt_VecOptBtE_Bt: the alias of the threshold family, which includes a vector type.