Skip to content
13

Effective Number of Assets Constraints

PortfolioOptimisers.set_number_effective_assets! Function
julia
set_number_effective_assets!(args...)

Add an effective number of assets constraint to the JuMP optimisation model.

The fall-through method does nothing. The concrete method introduces an auxiliary variable nea and enforces ‖w‖₂ ≤ nea via a SecondOrderCone constraint, combined with nea * √val ≤ k. This is equivalent to requiring the effective number of assets to be at least val.

Mathematical definition

neaw2,neavalkENA(w)=1w22val.

Where:

  • nea: Auxiliary variable upper-bounding w2.

  • w: Portfolio weights vector N×1.

  • k: Budget scaling / homogenisation variable.

  • ENA(w): Effective number of assets.

  • val: Minimum required effective number of assets.

Arguments

  • model::JuMP.Model: The JuMP optimisation model.

  • val::Number: Minimum required effective number of assets.

Returns

  • nothing.

Related

source