Homework I

Due Wednesday, February 26

Problem A

This problem will involve the SimPy discrete-event simulation library, which relies heavily on the Python generator construct. Here are the details:

Important note regarding credit:

This is a difficult assignment. For that reason, I've made some changes from the original version:

Hints for the full version:

Normally I frown on the practice by some instructors of providing students with code outlines in the problem specs. I make plenty of help available to those who need it, but only after they've spent a goodly amount of time trying to devise a code strategy.

In this case, though, due to the difficulty of the problem, I will give extensive hints here:

For partial credit:

If you are willing to have a maximum grade of B+ on this assignment, you may do a scaled-down version:

Why is this considered "scaled-down"? First, of course, it's easier. But second, it is much less general. For example, it obviates our ability to model more sophisticated arrival schemes, such as balking, in which an arriving passenger sees a long line for the elevator and thus opts to take the stairs instead.

Problem B