Tracking risk measure: private API

PortfolioOptimisers.supports_precomputed_returnsMethod
supports_precomputed_returns(
    _::RiskTrackingRiskMeasure
) -> Bool

Return false: a RiskTrackingRiskMeasure tracks a benchmark held as a weight vector and always needs explicit portfolio weights.

Its tr slot is a WeightsTracking, and both functors read the benchmark weights from it: the independent mode measures the inner risk of w - r.tr.w, and the dependent mode takes the difference of the inner risk at w and at r.tr.w. A bare net-return series carries no weights, so neither difference exists for it.

Related

source