Instead of explicitly adding a constraint, you can use the portfolios `AddDefaultConstraint()` when you're done filling it.