Kernel: SageMath 8.3
The Chicken Wing Problem
Problem: Determine the minimal cost for ordering wings using this restaurant's prices.
Below is a script for solving a generic integer programming problem.
In [1]:
Importing the price data.
In [2]:
Function that computes a minimal solution (there could be many).
In [3]:
An example.
In [9]:
Total wing count: 74
Optimal (min) value: 82.8
Order Size Count
------------ -------
6 wings 4
50 wings 1
In [10]:
Total wing count: 75
Optimal (min) value: 83.4
Order Size Count
------------ -------
25 wings 3
In [0]: