skfolio/skfolio-invalid-convex-bounds
| Rule | skfolio-invalid-convex-bounds |
|---|---|
| Pack | skfolio |
| Severity | error |
| Fix | none, edit by hand |
| Library versions | skfolio 1.14.4 and later |
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)What the rule reports
Section titled “What the rule reports”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.
Message
Section titled “Message”xpd prints this message with the issue. A name that starts with $ stands for code from your file.
The minimum asset weight exceeds the maximum. With min_weights=0.7 and max_weights=0.2, the skfolio solver reported infeasible constraints.Browse the other rules of the skfolio pack.