MILP Factory › Visualizing Mixed Integer Linear Programming
Michael BrenndoerferAugust 29, 20257 min read
Machine Learning from ScratchAll chapters Let's create visualizations to understand how MILP works in practice. We'll examine a simple factory optimization problem with two products and capacity constraints.
VisualizationsOut [3]Expand


Integer feasible solutions and their profits: (0, 0): Profit = 0 (0, 1): Profit = 2 (0, 2): Profit = 4 (0, 3): Profit = 6 (0, 4): Profit = 8 (1, 0): Profit = 3 (1, 1): Profit = 5 (1, 2): Profit = 7 (1, 3): Profit = 9 (2, 0): Profit = 6 (2, 1): Profit = 8 (2, 2): Profit = 10 (3, 0): Profit = 9 (3, 1): Profit = 11 (3, 2): Profit = 13 (4, 0): Profit = 12
Now let's visualize the branch-and-bound process that MILP solvers use:
VisualizationOut [4]Expand

Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!