Using the maximum weight constraint now works instead of breaking the model.