struct Stacking{__T_pe, __T_wb, __T_fees, __T_sets, __T_scale, __T_opti, __T_opto, __T_cv, __T_scorer, __T_wf, __T_ex, __T_fb, __T_strict, __T_pcol, __T_cache} <: BaseStackingOptimisationEstimatorCombines several inner optimisers through one outer optimiser that allocates across their portfolios.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
st::Stacking,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> Stacking{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185", _K, Bool, <:AbstractPanelCollapseAlgorithm} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185"<:Transducers.Executor, _K}Return a view of the Stacking st sliced to the asset indices i.
abstract type AbstractAlgorithmAbstract supertype for all algorithm types.
abstract type AbstractEstimatorAbstract supertype for all estimator types.
abstract type AbstractResultAbstract supertype for all result types.
const Option{T} = Union{Nothing, T}Alias for an optional value of type T, which can be nothing.
const VecNum = AbstractVector{<:Union{Number, JuMP.AbstractJuMPScalar}}Alias for an abstract vector of numeric types or JuMP scalar types.
const VecNum_VecVecNum = Union{VecNum, VecVecNum}Alias for a union of a numeric vector and a vector of numeric vectors.
const Onl{X} = Union{Online, X}Alias for a required field that accepts a static estimator of type X or an Online declaration.
struct ReturnsBufferState{__T_nx, __T_X, __T_nf, __T_F, __T_nb, __T_B, __T_ne, __T_E, __T_ts, __T_pnl, __T_max_history} <: AbstractPartialFitStateThe Fold Context of an optimiser: the columns of a ReturnsResult that the prior beneath the optimiser does not keep, and the context that the first step pins.
const WbE_Wb = Union{AbstractWeightBoundsEstimator, WeightBounds}Alias for a weight bounds estimator or result.
const PrE_Pr = Union{AbstractPriorEstimator, AbstractPriorResult}Groups a prior estimator with a fitted prior result.
const FeesE_Fees = Union{Fees, FeesEstimator}Union type for fee constraint objects and estimators.
const OptE_Opt = Union{NonFiniteAllocationOptimisationEstimator,
NonFiniteAllocationOptimisationResult}Alias for a continuous optimisation estimator, or a continuous optimisation result.
const OptE_Opt_FbChain = Union{OptE_Opt, FbChain}Alias for the values that the field fb of a continuous optimisation result can hold.
const OptRetCode_VecOptRetCode = Union{OptimisationReturnCode, VecOptRetCode}Alias for one optimisation return code, or a vector of return codes.
const OptE_TD = Union{NonFiniteAllocationOptimisationEstimator, TD_OptE_Opt}Alias for an optimisation estimator, or a TimeDependent schedule in the place of one.
const TD{X} = Union{TimeDependent, X}Alias for a required optimiser field that takes a static value of type X or a TimeDependent schedule, but not nothing.
const TDO_Option{X} = Union{Nothing, TDO_OptE_Opt, X}Alias for an optional field that holds an optimiser, such as a fallback.
const TD_Option{X} = Union{Nothing, TimeDependent, X}Alias for an optimiser field that takes nothing, a static value of type X, or a TimeDependent schedule.
const TD_VecOptE_Opt = Union{TimeDependent{<:AbstractVector{<:VecOptE_Opt_TD}},
TimeDependent{<:TimeDependentOptimiserCallable},
TimeDependent{<:PreviousWeightsFunction},
TimeDependent{<:Base.Callable}}Alias for the TimeDependent forms that a field which holds a vector of optimisers takes, such as Stacking.opti.
const OptCVE_Onl = Union{OptimisationCrossValidationEstimator, Online{<:WalkForwardEstimator}}Alias for the schemes that the cv field of a meta-optimiser takes: an optimisation cross-validation scheme, plain or an Online Scheme.
const PredictionCrossValScorer = Union{PredictionScorer, Function}Union of the values that the scorer field of NestedClustered and Stacking accepts: a PredictionScorer or a plain function.
abstract type RelaxedRiskBudgetingAlgorithm <: OptimisationAlgorithmSupertype of the three models of RelaxedRiskBudgeting.
port_opt_view(
x::SampleBufferState,
i,
args...
) -> SampleBufferStateSlices a SampleBufferState to the selected assets.
port_opt_view(x::AbstractVector{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm, AbstractResult}}, i, args...; kwargs...) -> VectorGeneric vector method for port_opt_view: view each element of x at the index selection i.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
struct MeanValue{__T_w} <: VectorToScalarMeasureAlgorithm that reduces a vector of real values to its mean, with or without weights.
port_opt_view(
pr::PricesResult,
_::Colon,
_::Colon
) -> PricesResultReturn the PricesResult on the observation window i and the assets j of the asset price series X.
struct ReturnsResult{__T_nx, __T_X, __T_nf, __T_F, __T_nb, __T_B, __T_ne, __T_E, __T_ts, __T_iv, __T_ivpa, __T_pnl} <: AbstractReturnsResultReturns data of a universe: the asset returns, and optionally the factor returns, the benchmark returns, the Exogenous Series, the timestamps, the implied volatilities and an Asset Panel.
port_opt_view(
x::ReturnsBufferState,
i,
args...
) -> ReturnsBufferStateSlices a ReturnsBufferState to the selected assets.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
alg::AbstractExpectedReturnsAlgorithm,
_,
args...
) -> AbstractExpectedReturnsAlgorithmReturns the asset view of an expected returns algorithm, which is the algorithm unchanged.
port_opt_view(
me::AbstractExpectedReturnsEstimator,
_,
args...
) -> SimpleExpectedReturnsReturns the asset view of an expected returns estimator, which is the estimator unchanged.
port_opt_view(
ce::CovarianceEstimator,
_,
args...
) -> WindowedCovariance{var"#s185", _A, _B, <:AbstractWindowRule} where {var"#s185"<:CovarianceEstimator, _A, _B}Returns the asset view of a covariance estimator, which is the estimator unchanged.
port_opt_view(
x::SimpleExpectedReturnsState,
i,
args...
) -> Union{SimpleExpectedReturnsState{_A, _B, Nothing} where {_A, _B}, SimpleExpectedReturnsState{_A, _B, __T_cvg} where {_A, _B, __T_cvg<:CoverageCounts}}Slices a SimpleExpectedReturnsState to the selected assets.
port_opt_view(
x::CovarianceState,
i,
args...
) -> Union{CovarianceState{_A, _B, _C, Nothing} where {_A, _B, _C}, CovarianceState{_A, _B, _C, __T_cvg} where {_A, _B, _C, __T_cvg<:CoverageCounts}}Slices a CovarianceState to the selected assets.
port_opt_view(
x::SimpleVarianceState,
i,
args...
) -> Union{SimpleVarianceState{_A, _B, _C, Nothing} where {_A, _B, _C}, SimpleVarianceState{_A, _B, _C, __T_cvg} where {_A, _B, _C, __T_cvg<:CoverageCounts}}Slices a SimpleVarianceState to the selected assets.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(tgt::AbstractRegressionTarget, w::ObsWeights)Refuse a regression target that has no method to carry observation weights into its fit.
factory(re::GeneralisedLinearModel, w::ObsWeights) -> GeneralisedLinearModelReturn a new GeneralisedLinearModel regression target with observation weights w added to the keyword arguments.
factory(re::LinearModel, w::ObsWeights) -> LinearModelReturn a new LinearModel regression target with observation weights w added to the keyword arguments.
port_opt_view(re::Regression, i)Return a view of a Regression result that keeps the assets that i selects.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
me::CustomValueExpectedReturns{<:VecNum},
i,
args...
) -> CustomValueExpectedReturnsThe port_opt_view method for the per-asset vector shape of CustomValueExpectedReturns.
port_opt_view(
x::CokurtosisPartialFitState,
i,
args...
) -> CokurtosisPartialFitStateSlices a CokurtosisPartialFitState to the selected assets.
port_opt_view(
x::CoskewnessPartialFitState,
i,
args...
) -> CoskewnessPartialFitStateSlices a CoskewnessPartialFitState to the selected assets.
port_opt_view(csr::CrossSectionalRegression, i, args...)Return a view of a CrossSectionalRegression result, selecting only the assets indexed by i.
port_opt_view(csfm::CrossSectionalFactorModel, i, args...)Return a view of a CrossSectionalFactorModel result, selecting only the assets indexed by i.
port_opt_view(r::FactorDiagnosticResult, i, args...)Return a view of a FactorDiagnosticResult that keeps only the factors that i selects.
port_opt_view(rf::CustomValueReturnForecastResult, i, args...)Return a view of a CustomValueReturnForecastResult, selecting only the assets indexed by i.
port_opt_view(rf::FixedWeightedReturnForecastResult, i, args...)Return a view of a FixedWeightedReturnForecastResult, selecting only the assets indexed by i.
port_opt_view(fs::FactorSummaryResult, i, args...)Return a view of a FactorSummaryResult that keeps only the factors that i selects.
port_opt_view(s::ExposureICSummaryResult, i, args...)Return a view of an ExposureICSummaryResult that keeps only the factors that i selects.
port_opt_view(ce::GeodesicShrinkageCovariance, i, args...) -> GeodesicShrinkageCovarianceRestricts a GeodesicShrinkageCovariance to the assets i.
factory(tgt::ElasticNet, ic::InterceptColumn) -> ElasticNetReturn a new ElasticNet whose fit leaves the column of ones that an estimator names out of the penalty.
factory(tgt::ElasticNet, w::ObsWeights) -> ElasticNetReturn a new ElasticNet whose fit weighs the observations by w.
factory(
alg::AbstractPhylogenyAlgorithm,
args...;
kwargs...
) -> AbstractClustersAlgorithmReturn the phylogeny algorithm alg unchanged.
factory(
alg::AbstractClustersAlgorithm,
args...;
kwargs...
) -> AbstractClustersAlgorithmReturn the clustering algorithm alg unchanged.
port_opt_view(
sets::UniverseSets,
i,
args...
) -> UniverseSets{var"#s185", var"#s1851", var"#s1852", var"#s1853", var"#s1854", var"#s1855", var"#s1856", <:AbstractDict{var"#s3886", var"#s3885"}} where {var"#s185"<:AbstractString, var"#s1851"<:AbstractString, var"#s1852"<:AbstractString, var"#s1853"<:AbstractString, var"#s1854"<:AbstractString, var"#s1855"<:AbstractString, var"#s1856"<:AbstractString, var"#s3886"<:AbstractString, var"#s3885"}Return a view of a UniverseSets restricted to the assets at index i.
port_opt_view(lc::LinearConstraint, i, args...) -> LinearConstraintReturn a precomputed LinearConstraint unchanged under an asset sub-selection.
struct WeightBounds{__T_lb, __T_ub} <: AbstractConstraintResultHolds the lower bound and the upper bound of every portfolio weight.
struct UniverseSets{__T_xkey, __T_uxkey, __T_tfkey, __T_utfkey, __T_cfkey, __T_ucfkey, __T_nikey, __T_dict} <: AbstractEstimatorDeclares the universes a portfolio problem is written against, and any groupings or partitions of them.
port_opt_view(smtx::MatNum, i, args...; kwargs...)
port_opt_view(smtx::VecMatNum_ASetMatE, i, args...; kwargs...)
port_opt_view(smtx::AbstractVector{<:AssetSetsMatrixEstimator}, i, args...; kwargs...)Take an asset view of an asset-group membership matrix, or of a vector of matrices and estimators.
port_opt_view(ece::ExposureConstraintEstimator, i, args...) -> ExposureConstraintEstimatorReturn a copy of an ExposureConstraintEstimator over the selected assets.
port_opt_view(space::FactorSpace, i, args...) -> FactorSpaceReturn a copy of a FactorSpace over the selected assets.
abstract type AbstractPriorResult <: AbstractResultAbstract supertype for all prior result types.
port_opt_view(
pr::HighOrderPrior,
i,
args...
) -> HighOrderPriorReturn a view of a HighOrderPrior restricted to the assets at index i, with every moment matrix cut to match.
port_opt_view(
pr::LowOrderPrior,
i,
args...
) -> Union{LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Nothing, Nothing, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <:AbstractReturnsSource, Nothing, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Nothing, <:AbstractVector{Bool}, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}, LowOrderPrior{T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, <:AbstractReturnsSource, <:AbstractVector{Bool}, Nothing} where {T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10}}Return a view of a LowOrderPrior restricted to assets at index i.
port_opt_view(pr::Option{<:AbstractPriorEstimator}, ::Any, args...; kwargs...)
port_opt_view(pr::AbstractVector{<:Union{AbstractPriorResult, AbstractPriorEstimator}},
i, args...; kwargs...)Pass a prior estimator through a view unchanged, or view each member of a vector of priors.
struct EmpiricalPrior{__T_ce, __T_me, __T_horizon, __T_fill_limit, __T_max_scenarios, __T_cache, __T_x_src} <: AbstractLowOrderPriorEstimator_AEmpirical prior estimator for asset returns.
port_opt_view(
x::PriorCarryState,
i,
args...
) -> PriorCarryState{_A, Set{Int64}} where _ASlices a PriorCarryState to the selected assets.
port_opt_view(_::CrossSectionalCarryState, i, args...)Refuses a view of a CrossSectionalCarryState on a subset of the assets.
port_opt_view(
risk_ucs::BoxUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> Union{BoxUncertaintySet{var"#s185", <:AbstractArray{var"#s166", N}, Nothing} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}, BoxUncertaintySet{var"#s185", var"#s1851", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s1851"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a matrix BoxUncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::BoxUncertaintySet{<:AbstractVector{<:Union{Number, AbstractJuMPScalar}}, <:AbstractVector{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> Union{BoxUncertaintySet{var"#s185", <:AbstractArray{var"#s166", N}, Nothing} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}, BoxUncertaintySet{var"#s185", var"#s1851", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s185"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N, var"#s1851"<:AbstractArray{var"#s166", N}, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a vector BoxUncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::EllipsoidalUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:MuUncertaintySetClass},
i,
args...
) -> Union{EllipsoidalUncertaintySet{<:AbstractMatrix{var"#s166"}, <:Number, <:AbstractUncertaintySetClass, Nothing} where var"#s166"<:Union{Number, AbstractJuMPScalar}, EllipsoidalUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s185"<:AbstractMatrix{var"#s166"}, var"#s1851"<:Number, var"#s1852"<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a mean EllipsoidalUncertaintySet restricted to the assets at the index i.
port_opt_view(
risk_ucs::EllipsoidalUncertaintySet{<:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:SigmaUncertaintySetClass},
i,
args...
) -> Union{EllipsoidalUncertaintySet{<:AbstractMatrix{var"#s166"}, <:Number, <:AbstractUncertaintySetClass, Nothing} where var"#s166"<:Union{Number, AbstractJuMPScalar}, EllipsoidalUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractArray{var"#s166", N}} where {var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s185"<:AbstractMatrix{var"#s166"}, var"#s1851"<:Number, var"#s1852"<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Returns a view of a covariance EllipsoidalUncertaintySet restricted to the assets at the index i.
port_opt_view(risk_ucs::Option{<:AbstractUncertaintySetEstimator}, i, args...)Returns an uncertainty set estimator unchanged, because an estimator has no asset axis to restrict.
port_opt_view(
risk_ucs::L1UncertaintySet,
i,
args...
) -> L1UncertaintySetReturn a view of an L1UncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::SignedL1UncertaintySet,
i,
args...
) -> SignedL1UncertaintySetReturn a view of a SignedL1UncertaintySet restricted to the asset indices i.
port_opt_view(
risk_ucs::CompactCovarianceUncertaintySet,
i,
args...
) -> Union{CompactCovarianceUncertaintySet{var"#s185", var"#s1851", var"#s1852", <:AbstractMatrix{var"#s166"}, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractVector{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1852"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}}, CompactCovarianceUncertaintySet{var"#s185", var"#s1851", var"#s1852", var"#s1853", <:AbstractMatrix{var"#s166"}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractVector{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1852"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1853"<:AbstractMatrix{var"#s166"}, var"#s166"<:Union{Number, AbstractJuMPScalar}}}Return a view of a CompactCovarianceUncertaintySet restricted to the asset indices i, as the projection of the set onto the selected assets and not as a refit.
port_opt_view(
risk_ucs::NormBallUncertaintySet{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:MuUncertaintySetClass},
i,
args...
) -> Union{NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass}, NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, <:AbstractArray{var"#s166", N}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Return a view of a mean NormBallUncertaintySet restricted to assets at index i.
port_opt_view(
risk_ucs::NormBallUncertaintySet{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}, <:Any, <:SigmaUncertaintySetClass},
i,
args...
) -> Union{NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, Nothing} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass}, NormBallUncertaintySet{var"#s185", var"#s1851", var"#s1852", C, <:AbstractArray{var"#s166", N}} where {var"#s185"<:Number, var"#s166"<:Union{Number, AbstractJuMPScalar}, var"#s1851"<:AbstractMatrix{var"#s166"}, var"#s1852"<:Number, C<:AbstractUncertaintySetClass, var"#s166"<:Union{Number, AbstractJuMPScalar}, N}}Return a view of a covariance NormBallUncertaintySet restricted to assets at index i, mapping the map's row index through the fourth-moment index generator.
factory(tn::VecTnE_Tn, w::VecNum)Replace the reference weights of each entry of a vector of turnover constraints or estimators.
factory(tn::Turnover, w::VecNum)Replace the reference weights of a Turnover, unless its fixed field is true.
factory(tn::TurnoverEstimator, w::VecNum)Replace the reference weights of a TurnoverEstimator, unless its fixed field is true.
port_opt_view(tn::VecTnE_Tn, i, args...)View each entry of a vector of turnover constraints or estimators at a subset of the assets.
struct Fees{__T_tn, __T_l, __T_s, __T_fl, __T_fs, __T_lq, __T_flq, __T_fa, __T_kwargs, __T_imsk} <: AbstractResultCharges a portfolio a turnover fee, a long or short proportional fee, and a long or short fixed fee.
port_opt_view(fees::Fees, i, X::MatNum, args...)
port_opt_view(fees::FeesEstimator, i, X::MatNum, args...)
port_opt_view(fees::FeesE_Fees, i, args...)Sub-select a fee to the assets an optimisation keeps, on both of its axes.
factory(tr::WeightsTracking, w::VecNum)Construct a WeightsTracking that holds the new benchmark weights w.
port_opt_view(rs, i, X)Get a view or subset of a risk measure for asset cluster index i.
factory(r::UncertaintySetVariance, pr::AbstractPriorResult, ::Any,
ucs::Option{<:UcSE_UcS} = nothing, args...;
kwargs...)Create an instance of UncertaintySetVariance whose empty slots take the uncertainty set ucs and the covariance matrix of the prior result pr.
factory(
r::StandardDeviation,
pr::AbstractPriorResult,
args...;
kwargs...
) -> StandardDeviation{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}} where {__T_scale, __T_ub, __T_rke}Create an instance of StandardDeviation that holds a covariance matrix, taken from the measure or from the prior result pr.
factory(
r::Variance,
pr::AbstractPriorResult,
args...;
kwargs...
) -> Variance{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, _C, var"#s185", _D, <:RatioFormulation} where {__T_scale, __T_ub, __T_rke, _A, _B, _C, var"#s185"<:VarianceFormulation, _D}Create an instance of Variance that holds a covariance matrix, taken from the measure or from the prior result pr.
factory(
r::HighOrderMoment,
pr::AbstractPriorResult,
args...;
kwargs...
) -> HighOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:HighOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Create a HighOrderMoment whose observation weights and mu come from the measure, or from the prior result pr where the measure states none.
factory(
r::LowOrderMoment,
pr::AbstractPriorResult,
args...;
kwargs...
) -> LowOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:LowOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Create a LowOrderMoment whose observation weights and mu come from the measure, or from the prior result pr where the measure states none.
port_opt_view(
r::HighOrderMoment,
i,
args...
) -> HighOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:HighOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Return a HighOrderMoment restricted to the assets i.
port_opt_view(
r::LowOrderMoment,
i,
args...
) -> LowOrderMoment{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:LowOrderMomentMeasureAlgorithm} where {__T_scale, __T_ub, __T_rke, _A, _B}Return a LowOrderMoment restricted to the assets i.
factory(
r::Kurtosis,
pr::HighOrderPrior,
args...;
kwargs...
) -> Kurtosis{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, _A, _B, <:SecondMomentFormulation} where {__T_scale, __T_ub, __T_rke, _A, _B}Create an instance of Kurtosis that holds its cokurtosis matrix, from the measure or from the HighOrderPrior result pr.
factory(
r::Kurtosis,
pr::LowOrderPrior,
args...;
kwargs...
) -> KurtosisResolve a Deferred Quantity in the kt slot of Kurtosis r against a LowOrderPrior result, and otherwise return r unchanged.
port_opt_view(r::Kurtosis, i, args...) -> KurtosisReturn a view of Kurtosis r sliced to asset indices i.
factory(
r::NegativeSkewness,
pr::HighOrderPrior,
args...;
kwargs...
) -> NegativeSkewness{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, <:AbstractMatrixProcessingEstimator} where {__T_scale, __T_ub, __T_rke}Create an instance of NegativeSkewness that holds its coskewness matrix and its negative spectral coskewness, from the measure or from the HighOrderPrior result pr.
factory(
r::NegativeSkewness,
pr::LowOrderPrior,
args...;
kwargs...
) -> NegativeSkewnessResolve a Deferred Quantity in NegativeSkewness's sk slot against a LowOrderPrior result, and otherwise return r unchanged.
factory(
alg::DistributionValueatRisk,
pr::AbstractPriorResult,
args...;
kwargs...
) -> DistributionValueatRisk{_A, _B, _C, Nothing, <:Distributions.Distribution{F, S}} where {_A, _B, _C, F<:Distributions.VariateForm, S<:Distributions.ValueSupport}Create an instance of DistributionValueatRisk by resolving its Deferred Quantities, then falling back to the prior result for whatever is still unstated.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)
port_opt_view(r::ValueatRiskFormulation, i, args...) -> ValueatRiskFormulationSelect the assets i of an estimator, a result or an algorithm.
port_opt_view(r::ValueatRiskFormulation, i, args...) -> ValueatRiskFormulationReturn the Value-at-Risk formulation r unchanged for the asset selection i.
factory(
x::Union{OrderedWeightsArray, OrderedWeightsArrayRange},
pr::AbstractPriorResult,
args...;
kwargs...
) -> Union{OrderedWeightsArray, OrderedWeightsArrayRange}Resolve the weight builders of an OrderedWeightsArray or an OrderedWeightsArrayRange against prior result pr, and return the measure with builders that hold numbers.
factory(
r::TurnoverRiskMeasure,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> TurnoverRiskMeasureReturn a TurnoverRiskMeasure whose reference weights are w.
factory(
r::TurnoverRiskMeasure,
,
,
,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}},
args...;
kwargs...
) -> TurnoverRiskMeasureReturn the TurnoverRiskMeasure whose reference weights are w, as factory(r, w) does.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
factory(
tr::RiskTrackingError,
pr::AbstractPriorResult,
slv,
ucs;
...
) -> RiskTrackingError{WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:Number, <:VariableTracking} where {__T_fees, __T_w, __T_fixed, _A}
factory(
tr::RiskTrackingError,
pr::AbstractPriorResult,
slv,
ucs,
w::Union{Nothing, AbstractVector{<:Union{Number, AbstractJuMPScalar}}},
args...;
kwargs...
) -> RiskTrackingError{WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:Number, <:VariableTracking} where {__T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingError whose tracked measure is resolved against a prior result, and whose benchmark takes the weights w.
factory(
tr::RiskTrackingError,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> RiskTrackingError{WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:Number, <:VariableTracking} where {__T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingError whose benchmark and tracked measure take the portfolio weights w.
factory(
r::RiskTrackingRiskMeasure,
pr::AbstractPriorResult,
args...;
kwargs...
) -> RiskTrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:VariableTracking} where {__T_scale, __T_ub, __T_rke, __T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingRiskMeasure whose tracked measure is resolved against the prior result pr.
factory(
r::RiskTrackingRiskMeasure,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> RiskTrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:VariableTracking} where {__T_scale, __T_ub, __T_rke, __T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingRiskMeasure whose benchmark and tracked measure take the portfolio weights w.
factory(
r::TrackingRiskMeasure,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> TrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, <:AbstractTrackingAlgorithm, <:NormError} where {__T_scale, __T_ub, __T_rke}Return a TrackingRiskMeasure whose benchmark takes the portfolio weights w.
factory(
r::TrackingRiskMeasure,
,
,
,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}},
args...;
kwargs...
) -> TrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, <:AbstractTrackingAlgorithm, <:NormError} where {__T_scale, __T_ub, __T_rke}Return the TrackingRiskMeasure whose benchmark takes the portfolio weights w, as factory(r, w) does.
port_opt_view(
tr::RiskTrackingError,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskTrackingError{WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:Number, <:VariableTracking} where {__T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingError restricted to the assets at the indices i.
port_opt_view(
r::RiskTrackingRiskMeasure,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskTrackingRiskMeasure{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, WeightsTracking{__T_fees, __T_w, __T_fixed}, _A, <:VariableTracking} where {__T_scale, __T_ub, __T_rke, __T_fees, __T_w, __T_fixed, _A}Return a RiskTrackingRiskMeasure restricted to the assets at the indices i.
factory(
r::Skewness,
pr::HighOrderPrior,
args...;
kwargs...
) -> Union{Skewness{MaxRiskMeasureSettings{__T_scale, __T_lb, __T_rke}, Nothing} where {__T_scale, __T_lb, __T_rke}, Skewness{MaxRiskMeasureSettings{__T_scale, __T_lb, __T_rke}, <:AbstractMatrix{var"#s166"}} where {__T_scale, __T_lb, __T_rke, var"#s166"<:Union{Number, AbstractJuMPScalar}}}Create an instance of Skewness that holds its coskewness matrix, from the measure or from the HighOrderPrior result pr.
factory(
r::Skewness,
pr::LowOrderPrior,
args...;
kwargs...
) -> SkewnessResolve a Deferred Quantity in the sk slot of Skewness r against a LowOrderPrior result, and otherwise return r unchanged.
factory(
r::VarianceSkewKurtosis,
pr::AbstractPriorResult,
args...;
kwargs...
) -> VarianceSkewKurtosis{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, Variance{__T_settings, __T_sigma, __T_chol, __T_rc, __T_alg, __T_mtx_sqrt, __T_ratio_alg, __T_corner}, Skewness{__T_settings1, __T_sk}, Kurtosis{__T_settings2, __T_kt, __T_N, __T_alg1, __T_mtx_sqrt1}, Nothing} where {__T_scale, __T_ub, __T_rke, __T_settings, __T_sigma, __T_chol, __T_rc, __T_alg, __T_mtx_sqrt, __T_ratio_alg, __T_corner, __T_settings1, __T_sk, __T_settings2, __T_kt, __T_N, __T_alg1, __T_mtx_sqrt1}Create an instance of VarianceSkewKurtosis by fanning pe out over its three children, then threading pr into each of them.
port_opt_view(r::Skewness, i, args...) -> SkewnessReturn Skewness r unchanged, because its sk holds no matrix to slice.
port_opt_view(
r::Skewness{<:Any, <:AbstractMatrix{<:Union{Number, AbstractJuMPScalar}}},
i,
args...
) -> SkewnessReturn a view of Skewness r sliced to asset indices i, with a view of its coskewness matrix sk.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)Select the assets i of an estimator, a result or an algorithm.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArrayRebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(pipe::AbstractPipelineEstimator, i, args...; kwargs...)Refuse an asset view of a Pipeline, or of any other AbstractPipelineEstimator.
factory(
p::Pipeline,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> PipelineRebuild a Pipeline with the weights w of the previous fold in each optimisation step, through pipeline_step_factory.
port_opt_view(x, i, args...; kwargs...) -> nothing_scalar_array_view(x, i)
port_opt_view(pipe::AbstractPipelineEstimator, i, args...; kwargs...)Select the assets i of an estimator, a result or an algorithm.
abstract type NonFiniteAllocationOptimisationEstimator <: OptimisationEstimatorAbstract supertype for portfolio optimisation estimators that produce continuous (non-integer) portfolio weights.
abstract type NonFiniteAllocationOptimisationResult <: OptimisationResultAbstract supertype for the results of a continuous optimisation, which gives weights and not share counts.
abstract type OptimisationResult <: AbstractResultAbstract supertype for the results of a portfolio optimisation.
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})Rebuilds a continuous optimisation result with a new fallback record fb.
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Returns opt unchanged.
factory(td::TimeDependent, args...) -> TimeDependentApplies factory to each entry of a TimeDependent and to its default, and rebuilds the schedule.
needs_previous_weights(x::Any) -> Bool
needs_previous_weights(x::AbstractVector) -> BoolReturn true if an entry of a TimeDependent vector reads the weights of the previous fold.
struct IterativeWeightFinaliser{__T_iter} <: WeightFinaliserMoves the weights into their bounds by a repeated clip and a proportional redistribution of the clipped mass.
abstract type WeightFinaliser <: AbstractAlgorithmAbstract supertype for the methods that move the weights of an optimisation into their weight bounds.
port_opt_view(opt::AbstractOptimisationEstimator, i, args...) -> AbstractOptimisationEstimatorReturn an optimisation estimator unchanged under an asset-subset view.
port_opt_view(
res::NonFiniteAllocationOptimisationResult,
_::Colon,
args...
) -> NonFiniteAllocationOptimisationResultA precomputed optimisation result cannot be restricted to an asset subset.
abstract type AbstractPanelCollapseAlgorithm <: AbstractAlgorithmAbstract supertype for the rules that state how the panel collapse of a meta-optimiser weighs a member at an observation where the member is outside the universe.
struct RenormaliseActive <: AbstractPanelCollapseAlgorithmCollapses an Asset Panel over the members that are active at each observation, and divides by their weight.
factory(res::BudgetedHindsightPathResult, fb::Option{<:FbChain})Rebuilds a budgeted path result with the fallback chain fb that optimise walked, and keeps every other field.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(pw::PreviousWeights, w::VecNum) -> PreviousWeightsThread the previous fold's weights into the hold-only head, into its fee, and on into its fallback.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
hrp::HierarchicalRiskParity,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> HierarchicalRiskParity{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}Return a view of HierarchicalRiskParity hrp sliced to asset indices i.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
sh::SchurComplementHierarchicalRiskParity,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> SchurComplementHierarchicalRiskParity{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}Return a view of SchurComplementHierarchicalRiskParity sh sliced to asset indices i.
port_opt_view(sp::SchurComplementParams, i, X::MatNum, args...) -> SchurComplementParamsReturn the view of a Schur complement bundle on the assets i.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
hec::HierarchicalEqualRiskContribution,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> HierarchicalEqualRiskContribution{HierarchicalOptimiser{__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache}, _A, _B, _C, _D, <:Transducers.Executor} where {__T_pe, __T_cle, __T_slv, __T_wb, __T_fees, __T_sets, __T_wf, __T_strict, __T_cache, _A, _B, _C, _D}Return a view of HierarchicalEqualRiskContribution hec sliced to asset indices i.
factory(bgt::BudgetCosts, w::VecNum)
factory(bgt::BudgetMarketImpact, w::VecNum)Replace the reference portfolio of a cost budget with the weights w, unless its fixed field is true.
factory(
x::LpRegularisation,
pr::AbstractPriorResult
) -> LpRegularisation
factory(
x::LpRegularisation,
pr::AbstractPriorResult,
slv
) -> LpRegularisationResolve the ambiguity radius in val against prior result pr, and return an LpRegularisation holding the number.
factory(
cbe::ConstraintBlock,
w::AbstractVector
) -> ConstraintBlock{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5, Bool} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5}Returns a copy of cbe whose slots that read previous weights hold the weights w.
port_opt_view(
cbe::ConstraintBlock,
i,
args...
) -> ConstraintBlock{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5, Bool} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, _Z1, _Z2, _Z3, _Z4, _Z5}Returns a copy of cbe restricted to the assets at the indices i.
struct JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache} <: BaseJuMPOptimisationEstimatorHolds the problem definition and the solver settings that every JuMP optimiser shares.
factory(
opt::JuMPOptimiser,
w::AbstractVector
) -> JuMPOptimiserReturns a copy of opt whose fields that read previous weights hold the weights w.
port_opt_view(
opt::JuMPOptimiser,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> JuMPOptimiserReturns a copy of opt restricted to the assets at the indices i.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
mr::MeanRisk,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> MeanRisk{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}Return the view of a MeanRisk at the assets i.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
frc::FactorRiskContribution,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> FactorRiskContribution{__T_opt, __T_re, __T_r, __T_obj, __T_frc_ple, __T_sets, __T_wi, Bool} where {__T_opt, __T_re, __T_r, __T_obj, __T_frc_ple, __T_sets, __T_wi}Return the view of a FactorRiskContribution at the assets i, for the returns matrix X.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
noc::NearOptimalCentering,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> NearOptimalCenteringReturn a copy of NearOptimalCentering for the assets i.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(alg::LogRiskBudgeting{<:VecInt}, i, args...) -> LogRiskBudgetingReturn a LogRiskBudgeting whose orthant vector is the view of alg.z at the assets i.
port_opt_view(
rb::RiskBudgeting,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}Return the view of a RiskBudgeting at the assets i.
struct RelaxedRiskBudgeting{__T_opt, __T_rba, __T_wi, __T_alg, __T_fb, __T_mtx_sqrt} <: JuMPOptimisationEstimatorOptimises the portfolio whose assets, or whose factors, take stated shares of the variance, through a model of second-order cones.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
rrb::RelaxedRiskBudgeting,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Return the view of a RelaxedRiskBudgeting at the assets i.
factory(res::FiniteAllocationOptimisationResult, fb::Option{<:FOptE_FOpt_FbChain})Rebuild a finite allocation result with a new fallback record fb.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::FiniteAllocationOptimisationResult, fb::Option{<:FOptE_FOpt_FbChain})Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::FiniteAllocationOptimisationResult, fb::Option{<:FOptE_FOpt_FbChain})Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
x::OnlinePortfolioSelectionState,
i,
args...
) -> OnlinePortfolioSelectionState{var"#s185", <:AbstractVector{T}} where {var"#s185"<:Integer, T}Slices an OnlinePortfolioSelectionState to the selected assets, giving the state of the same observations over those assets.
factory(opt::OnlinePortfolioSelection, w::VecNum)Thread the previous fold's weights into the head's fee and fallback, and nowhere else.
port_opt_view(opt::OnlinePortfolioSelection, i, args...)Slices the head to the selected assets.
factory(
set::ProgrammeAllocationSet,
w::AbstractVector
) -> ProgrammeAllocationSetReturns a copy of set whose parts that read the previous weights hold the Price-Adjusted Allocation w of a step.
factory(
obj::RiskLoss,
w::AbstractVector{<:Union{Number, AbstractJuMPScalar}}
) -> RiskLossReturn a RiskLoss whose measure takes the Price-Adjusted Allocation w of the step.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(res::NonFiniteAllocationOptimisationResult, fb::Option{<:OptE_Opt_FbChain})
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
port_opt_view(
nco::NestedClustered,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> NestedClustered{_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185", _K, Bool, <:AbstractPanelCollapseAlgorithm} where {_A, _B, _C, _D, _E, _F, _G, _H, _I, _J, var"#s185"<:Transducers.Executor, _K}Return a copy of a NestedClustered viewed onto the assets i, with the returns matrix X.
factory(a, args...; kwargs...) -> a
factory(a::AbstractArray{<:Union{Nothing, AbstractEstimator, AbstractAlgorithm,
AbstractResult, StatsBase.CovarianceEstimator}},
args...; kwargs...) -> AbstractArray
factory(
opt::Union{NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult},
_
) -> RelaxedRiskBudgeting{JuMPOptimiser{__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache}, _A, _B, <:RelaxedRiskBudgetingAlgorithm} where {__T_pe, __T_slv, __T_cbe, __T_bgt, __T_fees, __T_ret, __T_sca, __T_sc, __T_so, __T_strict, __T_cache, _A, _B}Rebuild an estimator, an algorithm or a result with runtime values.
factory(
sr::SubsetResamplingResult,
fb::Union{Nothing, NonFiniteAllocationOptimisationEstimator, NonFiniteAllocationOptimisationResult, AbstractVector{<:Tuple{OptimisationEstimator, OptimisationResult}}}
) -> SubsetResamplingResultRebuild a SubsetResamplingResult with the fallback chain fb.
port_opt_view(
sr::SubsetResampling,
i,
X::AbstractMatrix{<:Union{Number, AbstractJuMPScalar}},
args...
) -> SubsetResampling{_A, _B, _C, _D, _E, _F, var"#s185", _G, _H, var"#s1851", var"#s1852", _I, _J, Bool} where {_A, _B, _C, _D, _E, _F, var"#s185"<:Transducers.Executor, _G, _H, var"#s1851"<:Integer, var"#s1852"<:AbstractRNG, _I, _J}Return a copy of a SubsetResampling on the assets i.