Colored Planes Linear Programming Demo

Colored Planes Linear Programming Demo
Loading the math board and drawing, please wait…
2023-10-30 22:07
In collections Nível 2
This GeoGebra example visualizes linear programming through colored planes and lines, illustrating the feasible region and optimal solution. Core mathematical concepts include linear programming, feasible domains, objective function optimization, and the geometric interpretation of matrix operations. Construction employs lines (l1, l2, l3, l18), text labels (texto1–texto3), color-coded sheets (BlueSheet, RedSheet, etc.), and 16 table objects (table1–table16) for tracking constraints and solutions. It is suitable for high school mathematics extension and university operations research introduction, aiding intuitive understanding of the geometric meaning of linear programming.

GeoGebra Commands & Parameters

  1. {Segment[(0.8, -1.7000000000000002), (0.8, 2.3)], Segment[(1.8, 2.3), (1.8, -1.7000000000000002)], Segment[(2.8, 2.3), (2.8, -1.7000000000000002)], Segment[(3.8, 1.2999999999999998), (-0.2, 1.29999999
  2. {Polygon[(-0.2, -1.7000000000000002), (-0.2, 2.2999999999999985), (3.7999999999999994, 2.2999999999999985), (3.7999999999999994, -1.7000000000000002)]}
  3. {Polygon[(2.400000000000001, 3.0000000000000027), (2.400000000000001, 3.500000000000005), (2.9000000000000012, 3.500000000000005), (2.9000000000000012, 3.0000000000000027)]}
  4. {Polygon[(1.9000000000000004, 3.0000000000000027), (1.9000000000000004, 3.500000000000005), (2.400000000000001, 3.500000000000005), (2.400000000000001, 3.0000000000000027)]}
  5. {Polygon[(1.4000000000000001, 3.0000000000000027), (1.4000000000000001, 3.500000000000005), (1.9000000000000004, 3.500000000000005), (1.9000000000000004, 3.0000000000000027)]}
  6. {Polygon[(0.8999999999999999, 3.500000000000003), (0.8999999999999999, 4.000000000000005), (1.4000000000000001, 4.000000000000005), (1.4000000000000001, 3.500000000000003)]}
  7. {Polygon[(1.4000000000000001, 3.500000000000003), (1.4000000000000001, 4.000000000000005), (1.9000000000000004, 4.000000000000005), (1.9000000000000004, 3.500000000000003)]}
  8. {Polygon[(1.9000000000000004, 3.500000000000003), (1.9000000000000004, 4.000000000000005), (2.400000000000001, 4.000000000000005), (2.400000000000001, 3.500000000000003)]}
  9. {Polygon[(1.4000000000000001, 4.500000000000002), (1.4000000000000001, 5.000000000000002), (1.9000000000000004, 5.000000000000002), (1.9000000000000004, 4.500000000000002)]}
  10. {Polygon[(1.4000000000000001, 4.0000000000000036), (1.4000000000000001, 4.5000000000000036), (1.9000000000000004, 4.5000000000000036), (1.9000000000000004, 4.0000000000000036)]}
  11. {Polygon[(0.8999999999999999, 4.500000000000002), (0.8999999999999999, 5.000000000000002), (1.4000000000000001, 5.000000000000002), (1.4000000000000001, 4.500000000000002)]}
  12. {Polygon[(0.8999999999999999, 4.0000000000000036), (0.8999999999999999, 4.5000000000000036), (1.4000000000000001, 4.5000000000000036), (1.4000000000000001, 4.0000000000000036)]}
  13. {Polygon[(0.8999999999999999, 3.0000000000000027), (0.8999999999999999, 3.500000000000005), (1.4000000000000001, 3.500000000000005), (1.4000000000000001, 3.0000000000000027)]}
  14. {Polygon[(2.400000000000001, 4.500000000000002), (2.400000000000001, 5.000000000000002), (2.9000000000000012, 5.000000000000002), (2.9000000000000012, 4.500000000000002)]}
  15. {Polygon[(1.9000000000000004, 4.500000000000002), (1.9000000000000004, 5.000000000000002), (2.400000000000001, 5.000000000000002), (2.400000000000001, 4.500000000000002)]}
  16. {Polygon[(2.400000000000001, 4.0000000000000036), (2.400000000000001, 4.5000000000000036), (2.9000000000000012, 4.5000000000000036), (2.9000000000000012, 4.0000000000000036)]}
  17. {Polygon[(1.9000000000000004, 4.0000000000000036), (1.9000000000000004, 4.5000000000000036), (2.400000000000001, 4.5000000000000036), (2.400000000000001, 4.0000000000000036)]}
  18. {Polygon[(2.400000000000001, 3.500000000000003), (2.400000000000001, 4.000000000000005), (2.9000000000000012, 4.000000000000005), (2.9000000000000012, 3.500000000000003)]}
  19. Point Blue(5.02, 3.02)
  20. {Blue, Polygon[Blue, Blue + (2, 0), Blue + (2, 2), Blue + (0, 2)]}
  21. (7.5, 3)
  22. {Red, Polygon[Red, Red + (2, 0), Red + (2, 2), Red + (0, 2)]}
  23. (10, 3)
  24. (5, 0.5)
  25. (7.5, 0.5)
  26. (10, 0.5)
  27. (6.25, -2)
  28. (8.75, -2)
  29. {Purple, Polygon[Purple, Purple + (2, 0), Purple + (2, 2), Purple + (0, 2)]}
  30. {Brown, Polygon[Brown, Brown + (2, 0), Brown + (2, 2), Brown + (0, 2)]}
  31. {Green, Polygon[Green, Green + (2, 0), Green + (2, 2), Green + (0, 2)]}
  32. {Yellow, Polygon[Yellow, Yellow + (2, 0), Yellow + (2, 2), Yellow + (0, 2)]}
  33. {Orange, Polygon[Orange, Orange + (2, 0), Orange + (2, 2), Orange + (0, 2)]}
  34. {Pink, Polygon[Pink, Pink + (2, 0), Pink + (2, 2), Pink + (0, 2)]}
  35. {Polygon[(0.9, 3), (0.9, 5), (2.9, 5), (2.9, 3)]}
  36. {Segment[(1.4, 3), (1.4, 5)], Segment[(1.9, 5), (1.9, 3)], Segment[(2.4, 5), (2.4, 3)], Segment[(0.9, 3.5), (2.9, 3.5)], Segment[(0.9, 4), (2.9, 4)], Segment[(0.9, 4.5), (2.9, 4.5)]}
  37. NaN

AI Drawing Prompt Reference

This is a linear programming demonstration diagram, featuring a large rectangle representing the feasible region and multiple small rectangles as constraints. There are points marked such as (7.5, 3), (10, 3), (5, 0.5), (7.5, 0.5), (10, 0.5), (6.25, -2), and (8.75, -2). Additionally, there are color-coded rectangles like blue, red, purple, brown, green, yellow, orange, and pink. The diagram also includes some line segments. The construction order is to first draw the feasible region, then the constraints, and finally add points, rectangles, and line segments.
The prompt above was compiled from the original drawing commands and is for reference only.