Optimization and Linear Programming in Math Course

announcements l.w
1 / 32
Embed
Share

Explore the world of optimization and linear programming through assignments, announcements, and problem-solving in a mathematical course. Learn how to formulate diet problems, analyze cost contours, and solve linear program inequality forms with no constraints. Dive into topics like representation, graphical optimization, and more. Get ready for upcoming exams and assignments while delving into the complexities of integer programming and finding the optimal way to stay healthy with a balanced diet.

  • Math Course
  • Optimization
  • Linear Programming
  • Problem Solving
  • Diet Problem

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Announcements Assignments: HW4 (written) Due Tue 2/11, 10 pm P2: Optimization Due Thu 2/20, 10 pm (after the midterm) Midterm 1 Exam Mon 2/17, in class See Piazza for details

  2. AI: Representation and Problem Solving Integer Programming Instructors: Pat Virtue & Stephanie Rosenthal Slide credits: CMU AI, http://ai.berkeley.edu

  3. Linear Programming: What to eat? We are trying healthy by finding the optimal amount of food to purchase. We can choose the amount of stir-fry (ounce) and boba (fluid ounces). Healthy Squad Goals 2000 Calories 2500 Sugar 100 g Calcium 700 mg Food Cost Calories Sugar Calcium Stir-fry (per oz) 1 100 3 20 Boba (per fl oz) 0.5 50 4 70 What is the cheapest way to stay healthy with this menu? How much stir-fry (ounce) and boba (fluid ounces) should we buy?

  4. Optimization Formulation Diet Problem ??? min ? s.t. ?? ? Cost 1 ? = 0.5 Limit 2000 2500 100 700 Calorie min Calorie max Sugar Calcium 100 100 3 20 50 50 4 70 ? = ? =

  5. Representation & Problem Solving Problem Description Graphical Representation Optimization Representation ??? min ? s.t. ?? ?

  6. Cost Contours ? where will Given the cost vector ?1,?2 ??? = 0 ?

  7. Cost Contours ? where will Given the cost vector ?1,?2 ??? = 0 ? ??? = 1 ? ??? = 2 ? ??? = -1 ? ??? = -2 ?

  8. Piazza Poll 1 As the magnitude of ? increases, the distance between the contours lines of the objective ???: A) Increases B) Decreases

  9. Solving a Linear Program Inequality form, with no constraints ??? min ?.

  10. Solving a Linear Program Inequality form, with no constraints ??? min ?. s.t. ?1?1+ ?2?2 ?

  11. Piazza Poll 2 True or False: An minimizing LP with exactly on constraint, will always have a minimum objective at . ??? min ?. s.t. ?1?1+ ?2?2 ?

  12. Solving an LP Solutions are at feasible intersections of constraint boundaries!! Algorithms Check objective at all feasible intersections

  13. Solving an LP But, how do we find the intersection between boundaries? 100 100 Calorie min Calorie max Sugar Calcium 2000 2500 100 700 50 50 4 70 ??? min ? s.t. ?? ? ? = ? = 3 20

  14. Solving an LP Solutions are at feasible intersections of constraint boundaries!! Algorithms Check objective at all feasible intersections Simplex

  15. Solving an LP Solutions are at feasible intersections of constraint boundaries!! Algorithms Check objective at all feasible intersections Simplex Interior Point Figure 11.2 from Boyd and Vandenberghe, Convex Optimization

  16. What about higher dimensions? Problem Description Graphical Representation Optimization Representation ??? min ? s.t. ?? ?

  17. Marty, youre not thinking fourth-dimensionally

  18. Shapes in higher dimensions How do these linear shapes extend to 3-D, N-D? ?1 ?1+ ?2 ?2= ?1 ?1 ?1+ ?2 ?2 ?1 ?1,1 ?1+ ?1,2 ?2 ?1 ?2,1 ?1+ ?2,2 ?2 ?2 ?3,1 ?1+ ?3,2 ?2 ?3 ?4,1 ?1+ ?4,2 ?2 ?4

  19. What are intersections in higher dimensions? How do these linear shapes extend to 3-D, N-D? Calorie min Calorie max Sugar Calcium 2000 2500 100 700 100 100 3 20 50 50 4 70 ??? min ? s.t. ?? ? ? = ? =

  20. How do we find intersections in higher dimensions? Still looking at subsets of ? matrix Calorie min Calorie max Sugar Calcium 2000 2500 100 700 100 100 3 20 50 50 4 70 ??? min ? s.t. ?? ? ? = ? =

  21. Linear Programming We are trying healthy by finding the optimal amount of food to purchase. We can choose the amount of stir-fry (ounce) and boba (fluid ounces). Healthy Squad Goals 2000 Calories 2500 Sugar 100 g Calcium 700 mg Food Cost Calories Sugar Calcium Stir-fry (per oz) 1 100 3 20 Boba (per fl oz) 0.5 50 4 70 What is the cheapest way to stay healthy with this menu? How much stir-fry (ounce) and boba (fluid ounces) should we buy?

  22. Linear Programming Integer Programming We are trying healthy by finding the optimal amount of food to purchase. We can choose the amount of stir-fry (bowls) and boba (glasses). Healthy Squad Goals 2000 Calories 2500 Sugar 100 g Calcium 700 mg Food Cost Calories Sugar Calcium Stir-fry (per bowl) 1 100 3 20 Boba (per glass) 0.5 50 4 70 What is the cheapest way to stay healthy with this menu? How much stir-fry (ounce) and boba (fluid ounces) should we buy?

  23. Linear Programming vs Integer Programming Linear objective with linear constraints, but now with additional constraint that all values in ? must be integers ??? ??? min ?. s.t. ?? ? min ?. s.t. ?? ? ? ? We could also do: Even more constrained: Binary Integer Programming A hybrid: Mixed Integer Linear Programming Notation Alert!

  24. Integer Programming: Graphical Representation Just add a grid of integer points onto our LP representation ??? min ?. s.t. ?? ? ? ?

  25. Integer Programming: Cryptarithmetic How would we formulate this as a integer program? How would we could we solve it?

  26. Relaxation Relax IP to LP by dropping integer constraints ??? min ?. s.t. ?? ? Remember heuristics? ? ?

  27. Piazza Poll 3: be the optimal objective of an integer program ?. be an optimal point of an integer program ?. be the optimal objective of the LP-relaxed version of ?. be an optimal point of the LP-relaxed version of ?. Let ??? Let ??? Let ??? Let ??? Assume that ? is a minimization problem. = min ??? ??? s.t. ?. Which of the following are true? A) ??? B) ??? C) ??? ?? ? ? ? = ??? ??? ??? = min ??? ??? s.t. ?. ?? ?

  28. Piazza Poll 4: True/False: It is sufficient to consider the integer points around the corresponding LP solution?

  29. Solving an IP Branch and Bound algorithm Start with LP-relaxed version of IP If solution ??? Consider two branches with two different slightly more constrained LP problems: Left branch: Add constraint ?? ????? ?? Right branch: Add constraint ?? ???? ?? Recursion. Stop going deeper: When the LP returns a worse objective than the best feasible IP objective you have seen before (remember pruning!) When you hit an integer result from the LP When LP is infeasible has non-integer value at ??,

  30. Branch and Bound Example 15 10 5 10 15 20 25

  31. Branch and Bound Example 15 10 5 10 15 20 25 15 15 10 10 5 5 10 15 20 25 10 15 20 25

More Related Content