Modeling #4 - The Cab Control Problem The speed-of-approach algorithm employs:
Modeling - The Cab Control Problem Start as before with the equation for the velocity of the leading car A: Again use the numerical approach:
Modeling - The Cab Control Problem Then repeat for the trailing car B: 1. Calculate the acceleration an from the speed-of-approach algorithm 2. Calculate the velocity vn+1 3. Calculate the distance yn+1
Modeling - The Cab Control Problem 4. Calculate the relative speed: then compute the new acceleration from the speed of approach algorithm. 5. Increment the time, and repeat all of the calculations for both cab A and cab B
Modeling - The Cab Control Problem Note: Once again, you must limit the accelerations With “if” statements, or some other approach, you must stop the acceleration from exceeding the two limits (amax and -dmax)