Docsity

Homework on Integer Programming - Discrete Math Model | MATH 381, Assignments of Mathematics

Toggle sidebar
bg1
Math 381 Chartier
Winter 2008
Homework on Integer Programming
Homework due Monday, March 10
1. There are six cities (cities 1-6) in Kilroy County. The county must determine where
to build fire stations. The county wants to build the minimum number of fire stations
needed to ensure that at least one fire station is within 15 minutes (driving time) of
each city. (That is, the driving time is less than or equal to 15 minutes.) The times (in
minutes) required to drive between the cities in Kilroy County are shown in the table
below. Formulate an IP that will tell Kilroy how many fire stations should be built
and where they should be located. Solve the IP using Excel and submit a printout of
the spreadsheet that contains your IP and the Answer Sheet produced by Excel. Your
write-up should include the IP that you formulated along with the solution.
To
From City 1 City 2 City 3 City 4 City 5 City 6
City 1 0 10 20 30 30 20
City 2 10 0 25 35 20 10
City 3 20 25 0 15 30 20
City 4 30 35 15 0 15 25
City 5 30 20 30 15 0 14
City 6 20 10 20 25 14 0
2. The following puzzle appears in the book Number Theory and Its History by Ore. It can
be solved using the Chinese Remainder Theorem. We will solve the puzzle using integer
programming. It is interesting to note that this puzzle originates from Brahma-Sphuta-
Siddhanta (Brahma’s Correct System) by Brahmagupta (born 598 AD). The puzzle is:
An old woman goes to market and a horse steps on her basket and crashes
the eggs. The rider offers to pay for the damages and asks her how many
eggs she had brought. She does not remember the exact number, but when
she had taken them out two at a time, there was one egg left. The same
happened when she picked them out three, four, five, and six at a time, but
when she took them seven at a time they came out even; that is, the eggs
were evenly split into groups of seven.
What is the smallest number of eggs she could have had?
In the written portion of your homework, write an IP that solves this puzzle and state the
solution. Solve the IP using Excel and submit a printout of the spreadsheet with your IP
and the Answer Sheet produced by Excel. You may also wish to solve this puzzle using
logic; however such a solution is not necessary while an IP solution is. Hint: Remember
that IP’s and LP’s can introduce decision variables that do not appear in the objective
function.

Partial preview of the text

Download Homework on Integer Programming - Discrete Math Model | MATH 381 and more Assignments Mathematics in PDF only on Docsity!

Math 381 Chartier Winter 2008

Homework on Integer Programming

Homework due Monday, March 10

  1. There are six cities (cities 1-6) in Kilroy County. The county must determine where to build fire stations. The county wants to build the minimum number of fire stations needed to ensure that at least one fire station is within 15 minutes (driving time) of each city. (That is, the driving time is less than or equal to 15 minutes.) The times (in minutes) required to drive between the cities in Kilroy County are shown in the table below. Formulate an IP that will tell Kilroy how many fire stations should be built and where they should be located. Solve the IP using Excel and submit a printout of the spreadsheet that contains your IP and the Answer Sheet produced by Excel. Your write-up should include the IP that you formulated along with the solution.

To From City 1 City 2 City 3 City 4 City 5 City 6 City 1 0 10 20 30 30 20 City 2 10 0 25 35 20 10 City 3 20 25 0 15 30 20 City 4 30 35 15 0 15 25 City 5 30 20 30 15 0 14 City 6 20 10 20 25 14 0

  1. The following puzzle appears in the book Number Theory and Its History by Ore. It can be solved using the Chinese Remainder Theorem. We will solve the puzzle using integer programming. It is interesting to note that this puzzle originates from Brahma-Sphuta- Siddhanta (Brahma’s Correct System) by Brahmagupta (born 598 AD). The puzzle is:

An old woman goes to market and a horse steps on her basket and crashes the eggs. The rider offers to pay for the damages and asks her how many eggs she had brought. She does not remember the exact number, but when she had taken them out two at a time, there was one egg left. The same happened when she picked them out three, four, five, and six at a time, but when she took them seven at a time they came out even; that is, the eggs were evenly split into groups of seven.

What is the smallest number of eggs she could have had?

In the written portion of your homework, write an IP that solves this puzzle and state the solution. Solve the IP using Excel and submit a printout of the spreadsheet with your IP and the Answer Sheet produced by Excel. You may also wish to solve this puzzle using logic; however such a solution is not necessary while an IP solution is. Hint: Remember that IP’s and LP’s can introduce decision variables that do not appear in the objective function.