1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Optimization in Python

Connected

Exercise

Adjusting MILP

The gown and tuxedo firm have adjusted some aspects of their business and need you to optimize for profit based on the new structure.

The profit formula was \(545g + 330t\), where \(g\) are the gowns, and \(t\) are the tuxedos. The constraints are the same: \(6g+4t<=40\), \(3g+t<=20\)

The firm wants to increase their tuxedo profit by 10%, and Mr. S can now only work 30 hours per week.

milp, LinearConstraint and Bounds have been loaded for you.

Instructions 1/2

undefined XP
  • 1
    • Adjust the objective to reflect a 10% increase in the profit for tuxedos (33 is 10% of 330).
  • 2
    • Change Mr. S's hourly constraint to 30 hours.