Before we travel we always have the dilemma which items to take as there are always more than we have room for. This is frustrating, because it means that we need to make some tradeoffs again. Since we can't take everything that we want, moving can become uncomfortable.

The suitcase we use to pack the items has certain physical dimensions. For instance, if it is 67cm high, 45cm wide and 29cm deep, this means that its maximal theoretical volume would be 0.087435m^{3} assuming it has the form of a rectangular parallelepiped. Therefore, one of the restrictions that we have is regarding the volume of the objects we can put inside. Another restriction is their weight. Typically we cannot bring too much weight into the luggage compartment of a public vehicle, regardless of whether it is a bus or an airplane. We may be able to take only up to 20kg, where each additional kilogram either won't be allowed or would add an exorbitant cost.

How do we decide then which items to take and which to leave?

This is an instance of the knapsack problem. We could proceed by trying to fill our suitcase with the items that show the best estimated price/weight ratio, in reversed sorted order, until we either can't put another item or we have to choose one of smaller weight.

But such a definition doesn't consider the volume constraint. Some items are lightweight, but quite voluminous (e.g. toilet paper), so we may exhaust our available volume before we reach the maximal weight bound. Other items, like dumbbells, are smaller in volume, but quite heavy. This means that we need to have a balanced mix of items in our luggage.

Additionally, we may have trouble to determine the relative worth of the objects we want to carry. Some of them might have lost some of their value (hardware) or may have an added sentimental value (mementos). Some of them may be more beautiful than others.

Given all these factors that could influence our choice, we could divide them into two categories: 1) value adding and 2) constraint inducing. In each category we could multiply the numbers we can assign to each factor and divide the result for the first category by the result of the second, repeating for each item we could potentially pack. This will give us comparable numbers since we apply the same process to all items in the same way. Optionally, we could normalize the values by dividing by the maximal number in the column to work with values in the interval [0, 1]. The larger the final value, the more important this object is to be included in our luggage. This value can determine the packing order of the items, where the normalization step doesn't affect it.

Here is a sample data we would like to analyze this way:

Item | Estimated price | Perceived value | Volume (m^{3}) | Weight (kg) |
---|---|---|---|---|

Diaries | 1 | 150 | 0.008 | 1.5 |

Laptop | 990 | 400 | 0.006 | 2.4 |

Clock | 10 | 15 | 0.0005 | 0.15 |

USB stick | 30 | 45 | 0.0001 | 0.02 |

Netmag issues | 150 | 80 | 0.014 | 2.6 |

Sunglasses | 20 | 10 | 0.0007 | 0.12 |

Towel | 25 | 20 | 0.004 | 0.48 |

Sweater | 35 | 25 | 0.002 | 0.3 |

Socks | 5 | 6 | 0.0003 | 0.02 |

WiFi router | 170 | 35 | 0.002 | 0.55 |

T-shirts | 55 | 10 | 0.004 | 0.45 |

Can opener | 5 | 2 | 0.00025 | 0.1 |

City map | 15 | 18 | 0.0004 | 0.24 |

Digital camera | 620 | 280 | 0.0003 | 0.3 |

Trousers | 45 | 15 | 0.007 | 0.8 |

Underwear | 20 | 10 | 0.0006 | 0.35 |

Casualwear | 90 | 20 | 0.009 | 1.3 |

Blanket | 40 | 5 | 0.022 | 2.2 |

Sheets | 20 | 6 | 0.0005 | 0.55 |

Graphic tablet | 320 | 30 | 0.0007 | 0.4 |

External HDD | 200 | 70 | 0.0002 | 0.45 |

Dictionary | 25 | 10 | 0.0003 | 0.3 |

Cookbook | 20 | 3 | 0.001 | 0.5 |

Batteries | 10 | 0.5 | 0.00015 | 0.1 |

Shower gel | 5 | 3 | 0.0002 | 0.25 |

Shaving foam | 10 | 6 | 0.0003 | 0.3 |

Conference ticket | 80 | 35 | 0.0001 | 0.01 |

Desk lamp | 25 | 15 | 0.008 | 0.6 |

GSM adapter | 15 | 5 | 0.0002 | 0.18 |

Pencils | 5 | 2 | 0.00015 | 0.05 |

Paper | 8 | 4 | 0.001 | 0.85 |

Based on this table and the calculation mentioned above, we can compute the order in which we need to pack the items — Conference ticket, Digital camera, USB stick, External HDD, Graphic tablet, Laptop, WiFi router, Socks, City map, Dictionary, Sunglasses, GSM adapter, Clock, Sweater, Pencils, Underwear, Shaving foam, Sheets, Can opener, Batteries, Netmag issues, T-shirts, Shower gel, Towel, Casualwear, Trousers, Cookbook, Desk lamp, Paper, Diaries, Blanket. The total weight is 18.42kg (within bounds), while the volume is 0.09385m^{3} (outside the bounds mentioned above). This means that we'll have to take out some items. If we remove the last item on the list, the volume becomes 0.07195m^{3}, which is now within bounds as well. We can only hope that the place we'll go to will have a blanket.