Regularisation Constraints
PortfolioOptimisers.set_l1_regularisation! Function
set_l1_regularisation!(args...)No-op fallback for L1 regularisation setup.
Called when no L1 regularisation is configured. Returns nothing.
Mathematical definition
Where:
: L1 regularisation coefficient. : Portfolio weights vector .
Related
sourcePortfolioOptimisers.set_l2_regularisation! Function
set_l2_regularisation!(args...)No-op fallback for L2 regularisation setup.
Called when no L2 regularisation is configured. Returns nothing.
Mathematical definition
Where:
: L2 regularisation coefficient. : Portfolio weights vector .
Related
sourcePortfolioOptimisers.set_lp_regularisation! Function
set_lp_regularisation!(args...)No-op fallback for Lp regularisation setup.
Called when no Lp regularisation is configured. Returns nothing.
Related
sourcePortfolioOptimisers.set_linf_regularisation! Function
set_linf_regularisation!(args...)No-op fallback for L∞ regularisation setup.
Called when no L∞ regularisation is configured. Returns nothing.
Mathematical definition
Where:
: L∞ regularisation coefficient. : Portfolio weights vector .
Related
sourcePortfolioOptimisers.AbstractRegularisationEstimator Type
abstract type AbstractRegularisationEstimator <: AbstractEstimatorAbstract supertype for all portfolio weight regularisation estimators.
Related
sourcePortfolioOptimisers.LpRegularisation Type
struct LpRegularisation{__T_p, __T_val} <: AbstractRegularisationEstimatorLp-norm regularisation term added to the optimisation objective.
Mathematical definition
Where:
: Regularisation coefficient. : Portfolio weight for asset . : Norm order. : Number of assets.
Penalises concentrated portfolios by encouraging weight smoothness for
Fields
p: Power or order parameter.val: Default value to use for the estimator. Ifnothing, the estimator provides the default value.
Constructors
LpRegularisation(; p::Number = 3, val::Number = 1e-3) -> LpRegularisationKeywords correspond to the struct's fields.
Validation
isfinite(p).p > 1.val > 0and finite.
Related
sourcePortfolioOptimisers.VecLpReg Type
const VecLpReg = AbstractVector{<:LpRegularisation}Alias for a vector of LpRegularisation objects.
Represents a collection of Lp-norm regularisation terms to be added to the optimisation objective.
Related
sourcePortfolioOptimisers.LpReg_VecLpReg Type
const LpReg_VecLpReg = Union{<:LpRegularisation, <:VecLpReg}Alias for a single or vector of Lp regularisation terms.
Matches either a single LpRegularisation or a vector of them (VecLpReg).
Related
source