//算法
q1 = ah.road1;
q2 = ah.road2;
Cm = (1.5 * j.L + 5) / (1 - (q1 / s1 + q2 / s2));
if (Cm<40+j.L)
{
Cm = 40 + j.L;
}
if (q1 == 0 && q2 == 0)
{
if (j.g1 < 20)
{
g1 = 20;
greentime1.Text = "greentime1:" + Convert.ToInt32(g1);
}
if (j.g2 < 20)
{
g2 = 20;
greentime2.Text = "greentime2:" + Convert.ToInt32(g2);
}
if (j.g1 >= 20&&j.g2 >= 20)
{
g1 = j.g1;
greentime1.Text = "greentime1:" + Convert.ToInt32(g1);
g2 = j.g2;
greentime2.Text = "greentime2:" + Convert.ToInt32(g2);
} 信号控制路网交通流动态分配研究(7):http://www.youerw.com/tongxin/lunwen_3132.html