Skip to content

skfolio/skfolio-invalid-convex-bounds

Pack Severity Fix Versions
skfolio error none, edit by hand skfolio 1.14.4+

Contradictory asset weight bounds are infeasible. Negative penalties can break convexity and out-of-range tail probabilities can break the selected risk objective.

MeanRisk(min_weights=0.7, max_weights=0.2)
MeanRisk(risk_measure=RiskMeasure.CVAR, cvar_beta=1.2)
MeanRisk(min_weights=0, max_weights=0.8)
MeanRisk(risk_measure=RiskMeasure.CVAR, cvar_beta=0.95)

The bounds check covers literal contradictions across zero, one and the middle of the unit interval. The confidence check requires the corresponding risk measure. Zero and one are accepted for the tested MeanRisk tail measures.

The minimum asset weight exceeds the maximum. With min_weights=0.7 and max_weights=0.2, the skfolio solver reported infeasible constraints.

See all rules in the skfolio pack.