- Sep 10, 2001
- 12,348
- 1
- 81
Last night I was driving home around 10 p.m. I spent so much time sitting at traffic lights on my five mile drive that I actually had time to develop and solve a closed-form solution for the position of a car with time given some very mild assumptions. I therefore cannot comprehend why I am sitting at these traffic lights knowing that there are engineers who get paid good money just to time lights. Anyway, I'll give my simple model, then you guys can tell me why it's wrong or if I'm on the right track.
The basic idea I had is that a car that is stopped at one light should be able to accelerate to the speed limit at some constant acceleration, then maintain the speed limit until he reaches the end of the road. The driver should not have to stop at any other lights on that road, much less EVERY light on that road (as is generally the case here in St. Louis). The model is for a straight road where no one is turning or doing anything other than driving straight down the road. I know that these things would complicate the model, but I'll worry about that later.
So, without further ado, the assumed form of the acceleration is
a(t)={0, t<t0
{a_1, t0<=t<=t1
{0, t>t1
where a_1 is some specified acceleration (e.g. 1 mi/hr/s), t0 is the time the light changes, and t1 is the time at which the car achieves the speed limit (which turns out to be v_l/a_1, where v_l is the speed limit).
Solving the equations of motion is very straightforward, since they are separable. Generally, they have the form d^2(x)/dt^2=a(t), where x is the position of the front of the car at time t. Thus, the solution has the form
x(t)={0, t<t0
{a_1*t^2/2, t0<=t<=t1
{v_l*t(i)-v_l^2/(2*a_1), t>t1.
This gives a velocity v(t)=dx/dt with the form
v(t)={0, t<t0
{a_1*t, t0<=t<=t1
{v_l, t>t1.
I have also extended this to the case where a line of cars is parked at a light when the light changes, though this took a little longer than I spent sitting at the lights. So am I really missing something, or is it really just that easy to predict light timings on major roads where you can't make any turns (such as the road I took home last night)?
The basic idea I had is that a car that is stopped at one light should be able to accelerate to the speed limit at some constant acceleration, then maintain the speed limit until he reaches the end of the road. The driver should not have to stop at any other lights on that road, much less EVERY light on that road (as is generally the case here in St. Louis). The model is for a straight road where no one is turning or doing anything other than driving straight down the road. I know that these things would complicate the model, but I'll worry about that later.
So, without further ado, the assumed form of the acceleration is
a(t)={0, t<t0
{a_1, t0<=t<=t1
{0, t>t1
where a_1 is some specified acceleration (e.g. 1 mi/hr/s), t0 is the time the light changes, and t1 is the time at which the car achieves the speed limit (which turns out to be v_l/a_1, where v_l is the speed limit).
Solving the equations of motion is very straightforward, since they are separable. Generally, they have the form d^2(x)/dt^2=a(t), where x is the position of the front of the car at time t. Thus, the solution has the form
x(t)={0, t<t0
{a_1*t^2/2, t0<=t<=t1
{v_l*t(i)-v_l^2/(2*a_1), t>t1.
This gives a velocity v(t)=dx/dt with the form
v(t)={0, t<t0
{a_1*t, t0<=t<=t1
{v_l, t>t1.
I have also extended this to the case where a line of cars is parked at a light when the light changes, though this took a little longer than I spent sitting at the lights. So am I really missing something, or is it really just that easy to predict light timings on major roads where you can't make any turns (such as the road I took home last night)?
