PortfolioOptimisers.jl logo
PortfolioOptimisers.jl
  • Portfolio optimisation library in Julia
  • Capability Catalogue
  • User Guide
    • Introduction to the user guide
    • Data and priors
    • Optimisers
    • Risk measures
    • Constraints and costs
    • Validation and tuning
    • Post-processing
    • Choosing a strategy
    • The point-in-time universe
    • The online walk-forward
    • Online portfolio selection
  • Examples
    • Examples introduction
    • Foundations
    • Moments & Priors
    • Optimisers
    • Constraints & Costs
    • Validation & Tuning
    • Post-processing
    • Putting It Together
  • API introduction
  • Type hierarchy
  • Public API
    • Optimisation
        • Result investable view
  • Private API
  • Contribute
    • Design philosophy and goals
    • Contributing guidelines
    • Developer documentation
    • Code health: the maintenance loop
  • Migration guide
  • References
Version
  • Public API
  • Optimisation
  • Base_Optimisation
  • Result investable view
  • Result investable view
GitHub

Result investable view

PortfolioOptimisers.needs_previous_weights — Method
needs_previous_weights(
    _::Union{Nothing, AbstractAlgorithm, AbstractEstimator, AbstractResult}
) -> Any

Returns false, the fallback for nothing and for every estimator, algorithm and result that has no method of its own.

A type whose value reads the weights of the previous fold adds a method that returns true, for example a turnover, a tracking error or a fee.

Related

  • needs_previous_weights
source
« Panel collapseBase Cross Validation (a) »

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 1.20.0 on Friday 4 December 2026. Using Julia version 1.13.4.

abstract type AbstractAlgorithm

Abstract supertype for all algorithm types.

abstract type AbstractEstimator

Abstract supertype for all estimator types.

abstract type AbstractResult

Abstract supertype for all result types.

needs_previous_weights(x::Any) -> Bool needs_previous_weights(x::AbstractVector) -> Bool

Return true if an entry of a TimeDependent vector reads the weights of the previous fold.