Modeling Supply and Demand in Public Transportation Systems