Imagine a small workshop that builds tables and chairs. Each table earns more profit than a chair, but it also hogs more wood and more hours at the saw. You have a fixed amount of wood and a fixed number of work hours each week. How many of each should you build to make the most money?
This is a linear program. There is a goal you want to push as high as possible (profit), and that goal grows in a straight line with how much you make. There are limits â wood, hours â and each limit is also a straight line: use too much and you cross it.
Almost every "do the best you can within the rules" question has this shape: cheapest diet that still meets your vitamins, the airline schedule that burns the least fuel, the blend of crude oils that yields the most gasoline. They all boil down to pushing one linear goal as far as it will go inside a region carved out by linear constraints.
Comments
Loading comments...