These scenarios and many others can be represented as a mathematical optimization problem. They occur when we search for the fastest route home from work or attempt to balance cost and quality on a trip to the store, or even when we decide how to spend limited free time before bed. Our lives are a succession of optimization problems.