Computer Algorithms in Systems Engineering Spring 2010 Problem Set 8: Nonlinear optimization: Bus system design Due: 12 noon, Wednesday, May 12, 2010

Similar documents
Optimization Methods in Management Science

6.079/6.975 S. Boyd & P. Parrilo October 29 30, Midterm exam

Optimization Methods in Management Science

Optimization Methods in Management Science

Problem Set 3 September 25, 2009

Optimization Methods in Management Science

6.079/6.975 S. Boyd & P. Parrilo December 10 11, Final exam

Lesson

Exam 1 Review. IEA Section 2 2/5/2018 Section 3 2/5/2018

Homework Assignment 4 Root Finding Algorithms The Maximum Velocity of a Car Due: Friday, February 19, 2010 at 12noon

18.06 Quiz 2 April 7, 2010 Professor Strang

Calculator Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.

MTH 163, Sections 40 & 41 Precalculus I FALL 2015

Paradox and Infinity Problem Set 6: Ordinal Arithmetic

Statistics 253/317 Introduction to Probability Models. Winter Midterm Exam Friday, Feb 8, 2013

Page Points Score Total: 100

Announcements Wednesday, August 30

AS The Astronomical Universe. Prof. Merav Opher - Fall 2013

June Dear Future Algebra 2 Trig Student,

Announcements Wednesday, August 30

INTRODUCTION, FOUNDATIONS

Syllabus, Math 343 Linear Algebra. Summer 2005

Algebra III and Trigonometry Summer Assignment

June If you want, you may scan your assignment and convert it to a.pdf file and it to me.

Algorithms and Programming I. Lecture#1 Spring 2015

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that

Problem 1 (10 points)

SUMMER MATH PACKET. Geometry A COURSE 227

Review for Final Exam, MATH , Fall 2010

Inequalities. CK12 Editor. Say Thanks to the Authors Click (No sign in required)

1.4 Rewriting Equations

PHY131H1F Class 3. From Knight Chapter 1:

GRADUATE RECORD EXAMINATIONS. Math Review. Chapter 2: Algebra

56:171 Operations Research Fall 1998

Math Introduction to Operations Research

CS446: Machine Learning Spring Problem Set 4


Notice the minus sign on the adder: it indicates that the lower input is subtracted rather than added.

Quiz Discussion. IE417: Nonlinear Programming: Lecture 12. Motivation. Why do we care? Jeff Linderoth. 16th March 2006

Mars Attacked! 2011 ICTSA Programming Challenge

INTRODUCTION TO TRANSPORTATION SYSTEMS

Official GRE Quantitative Reasoning Practice Questions, Volume 1

Homework #7: Properties of Galaxies in the Hubble Deep Field Name: Due: Friday, October points Profs. Rieke

Homework Assignment 2 Modeling a Drivetrain Model Accuracy Due: Friday, September 16, 2005

MIT Manufacturing Systems Analysis Lecture 14-16

are topics that you have not covered yet. Just do the best you can.

Physics 141. Lecture 18. Frank L. H. Wolfs Department of Physics and Astronomy, University of Rochester, Lecture 18, Page 1

More on Lagrange multipliers

Welcome to Physics 161 Elements of Physics Fall 2018, Sept 4. Wim Kloet

Quinsigamond Community College School of Math and Science


Course Information Course Overview Study Skills Background Material. Introduction. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

Algebra 1 Winter Break Extra Credit Fall Semester 2013

Lecture 5. September 4, 2018 Math/CS 471: Introduction to Scientific Computing University of New Mexico

Alien Worlds. Astronomy 105. Spring 2011

Here is a sample problem that shows you how to use two different methods to add twodimensional

Homework 1 Solutions Probability, Maximum Likelihood Estimation (MLE), Bayes Rule, knn

Introduction to Operations Research Economics 172A Winter 2007 Some ground rules for home works and exams:

Unit 4 Study Guide Part I: Equations of Lines

CMPSCI 240: Reasoning about Uncertainty

3 7 x + 5 = 8. j + 1= 4. Write an algebraic expression for the phrase. Simplify the expression. Solve the equation.

Math 24 Spring 2012 Questions (mostly) from the Textbook

FINALS WEEK! MATH 34A TA: Jerry Luo Drop-in Session: TBA LAST UPDATED: 6:54PM, 12 December 2017

ArcGIS Online Routing and Network Analysis. Deelesh Mandloi Matt Crowder

Decision Mathematics Module D1

Supplementary Technical Details and Results

Msc Micro I exam. Lecturer: Todd Kaplan.

Section 8.1 & 8.2 Systems of Equations

Massachusetts Institute of Technology

16.07 Dynamics. Problem Set 3

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

Algebra II (Common Core) Summer Assignment Due: September 11, 2017 (First full day of classes) Ms. Vella


Honors Math 2 Unit 7: Modeling Advanced Functions

6.041/6.431 Fall 2010 Final Exam Wednesday, December 15, 9:00AM - 12:00noon.

CS145: Probability & Computing Lecture 11: Derived Distributions, Functions of Random Variables

Unit 3 Day 13 Review 1

Summer Math Packet for Students Entering 6th Grade. Please have your student complete this packet and return it to school on Tuesday, September 4.

Team Solutions. November 19, qr = (m + 2)(m 2)

Math 250B Midterm I Information Fall 2018

BROOKINGS May


Lecture 23. Random walks

California Urban Infill Trip Generation Study. Jim Daisa, P.E.

2016 ALGEBRA 2 HONORS SUMMER PACKET

This Session s Assignments. Once you have completed your Assignment:

18.02 Multivariable Calculus Fall 2007

POSITION VECTORS & FORCE VECTORS

CpE358/CS381. Switching Theory and Logical Design. Summer

Readings and Exercises

MITOCW MITRES18_005S10_DiffEqnsMotion_300k_512kb-mp4

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

ASSIGNMENT 1. Due on March 24, 2017 (23:59:59)

NP-Completeness Part II

Algebra I Summer Review Packet

Physics 121. Thursday, February 28, Department of Physics and Astronomy, University of Rochester

MITOCW watch?v=dztkqqy2jn4

Carnegie Mellon University Department of Computer Science /615 - Database Applications C. Faloutsos & A. Pavlo, Fall 2016

SCHOOL OF DISTANCE EDUCATION

Transcription:

Computer Algorithms in Systems Engineering Spring 2010 Problem Set 8: Nonlinear optimization: Bus system design Due: 12 noon, Wednesday, May 12, 2010 Problem statement The analytical equations in lecture 23 are approximate solutions of a system of nonlinear equations. In this homework we will obtain numerical solutions of these equations. We use Cartesian coordinates. We have a set of parallel bus routes operating in a region of uniform density. All trips are bound to or originate from a point beyond the region (typically a downtown area) that the bus routes serve. The bus routes are spaced a distance g apart, operate at a headway h and charge a fare f. Users are uniformly distributed in the area of dimension X times Y, and walk in a perpendicular direction to the nearest bus route. We ignore bus stop spacing along the routes, the dimensions of the street grid, etc. All of those issues can be handled but make the model more complex. Bus route Y g X (To downtown) Figure by MIT OpenCourseWare. To maximize profit, we maximize the difference of revenues minus costs. Revenue= TpXYf(a 0 -a 2 (kh +g/(4j))-a 4 f) Cost= 2XTcY/(ghv)

Variable name Value Definition Units p 3.59 Trip density Trips/mi 2 /day j 0.05 Walk speed Miles/minute k 0.4 Wait/headway ratio c 50 Bus operating cost Cents/minute T 1050 Length of day Minutes V 0.167 Bus speed Miles/minute a 0 0.41 Bus market share if service equal to auto a 2 0.0081 Bus wait time coefficient a 4 0.0014 Bus fare coefficient X 4.0 Width of analysis area Miles Y 6.0 Length of analysis area Miles The total number of trips by all modes of transport (bus, auto, etc.) is TpXY, or the trip density times the area and the time period. The number of bus trips is the bus market share times the total trips; the bus market share is a 0 -a 2 (kh +g/(4j))-a 4 f). This is a linear approximation to a logit demand model that estimates the market share as a function of the headway h, the route spacing g (which determines the average walking distance to the bus route), and the fare f. The bus revenue is the number of bus trips times the fare f. Note the demand coefficients a 2 and a 4 are positive; the negative signs for these are in the revenue and demand equations. The cost of the bus service is derived as: There are X/g routes, each operating T/h trips, each taking Y/v minutes to complete, multiplied by a round trip factor (2) and the operating cost per minute c. The fare f is in cents. The headway h is in minutes between bus departures. The route spacing g is in miles between routes. In this homework we will find the optimal values of route spacing g, headway h and fare f. To do so, we can take the derivative of the profit (deficit) function Q with respect to g, h and f. Q = TpXYf(a 0 -a 2 (kh +g/(4j))-a 4 f) - 2XTcY/(ghv) (0) Q/ g= -TpXYfa 2 /(4j) + 2XTcY/(vhg 2 ) = 0 (1) Q/ h= -TpXYfa 2 k + 2XTcY/(vgh 2 ) = 0 (2) Q/ f= TpXY(a 0 -a 2 (kh +g/(4j))-2a 4 f) = 0 (3) Note that T, X and Y drop out of all the equations. Also note that equations (1) and (2) are very similar and yield a linear relationship between route spacing g and headway h: h= g/(4jk) (4) Use (4) to eliminate h from (1):

Q/ g= -pfa 2 /(4j) + 8jkc/(vg 3 ) = 0 (5) Use (4) to eliminate h from (3): Q/ f= a 0 -a 2 g/(2j)-2a 4 f = 0 (6) We can solve (5) and (6) analytically, approximately, to obtain: g= (64j 2 ka 4 c/ (pva 0 a 2 )) 1/3 (7) f= a0/(2a 4 ) (kca 2 2 )/(ja 4 2 pva 0 )) 1/3 (8) By using (4) we can also find an approximate solution for headway h: h= (a 4 c/ (pa 0 a 2 k 2 jv)) 1/3 (9) The approximate solutions (7)-(9) have errors. They are usable for initial analysis, but if exact answers are needed, we may need to solve equations (1)-(3) numerically. Since (2) and (3) are linearly dependent, we only need to solve equations (5) and (6), and can then use (4) to obtain the optimal headway h. The system of two nonlinear equations which are the first order conditions is: -pfa 2 /(4j) + 8jkc/(vg 3 ) = 0 (10) a 0 -a 2 g/(2j)-2a 4 f = 0 (11) Let the equations be numbered 0 and 1. Let the variables g be x 0 and f be x 1. Rewrite (10) and (11) using x 0 and x 1, and simplify coefficients: f 0 (x 0,x 1 )= -0.25pa 2 x 1 /j + 8jkc/(vx 0 3 ) = 0 (12) f 1 (x 0,x 1 )= a 0-0.5a 2 x 0 /j - 2a 4 x 1 = 0 (13) Assignment Do three of the following four parts. You may do the fourth for extra credit. 1. Use Newton s method to solve the system (12) and (13). Newton s method requires the derivatives of each equation with respect to each variable. f 0 / x 0 = -24jkc/(vx 0 4 ) (14) f 0 / x 1 = -0.25pa 2 /j (15) f 1 / x 0 = -0.5a 2 /j (16)

f 1 / x 1 = -2a 4 (17) The equations (12) and (13) can be solved with Newton s method, using the derivatives (14)-(17). You will need a good first guess. 2. Use the amoeba to solve this system. The amoeba requires only the function (equation 0) to be maximized. (Amoeba.java from lecture notes minimizes, so reverse signs.) You will need a good first guess. 3. Implement the convex combinations example from lecture 18 in Java. You don t have a linear programming module to use, but minimizing the linear objective function with only two variables and simple constraints can be implemented by looking at the signs of the coefficients in the objective function, and selecting whether to put the variable at its upper or lower bound. Implement the line search rather than using the closed form expression for alpha. You may find it helpful to do this step before doing part 4, since you will have a worked-out test case to follow. 4. Use convex combinations (lecture 18) to solve the bus route/fare problem, with the constraints that the maximum fare f must be $2 or less and the maximum spacing between routes g must be 1 mile or less. Considerations: a. The expression for z/ α is messy but not significantly worse than the lecture 18 example from Sheffi. One term in the expression will have (y[0]-x[0]) in the numerator and denominator; don t evaluate this term when y[0]=x[0]. b. Plot (or just print out) the objective function surface first to understand its shape. It is well behaved except near g= 0, where you should not go. c. This is a maximization problem, not a minimization problem like part 3. Be careful to change signs and/or inequalities in the linear program and line search methods so you re looking for a maximum and not a minimum. Turn In 1. Place a comment with your full name, Stellar username, and assignment number at the beginning of all.java files in your solution. 2. Place all of the files in your solution in a single zip file. a. Do not turn in electronic or printed copies of compiled byte code (.class files) or backup source code (.java~ files) b. Do not turn in printed copies of your solution. 3. Submit this single zip file on the 1.204 Web site under the appropriate problem set number. For directions see How To: Submit Homework on the 1.204 Web site. 4. Your solution is due at noon. Your uploaded files should have a timestamp of no later than noon on the due date. 5. After you submit your solution, please recheck that you submitted your.java file. If you submitted your.class file, you will receive zero credit.

Penalties 30 points off if you turn in your problem set after Wednesday (May 12) noon but before noon on Friday (May 14). You have two no-penalty two-day (48 hrs) late submissions per term. No credit if you turn in your problem set after noon on Friday. Substitution for Quiz 2 This homework may be substituted for quiz 2, or you may take quiz 2. We will ask on Monday May 10 how many of you will be taking quiz 2 to know how many copies to print. If you change your mind after that point, please email me. If you submit this homework, it will be counted equally with the other 7 homework sets, all of them making up a total of 85 of the 100 total points for the term. Quiz 1 will be the remaining 15 points.

MIT OpenCourseWare http://ocw.mit.edu 1.204 Computer Algorithms in Systems Engineering Spring 2010 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.