Optimizing sweaters