毕业论文

打赏
当前位置: 毕业论文 > 电子通信 >

信号控制路网交通流动态分配研究(6)

时间:2017-02-20 21:21来源:毕业论文
x = Convert.ToInt32(P[i][y]); } } } for (i = 1; i = n; i++) { for (j = 1; j = n; j++) if (LL[i][j] != 0) { /*不相邻两点的流量设为0,不予输出*/ Console.WriteLine(The flow assigning of {0


                                x = Convert.ToInt32(P[i][y]);
                            }
                        }
                    }

            for (i = 1; i <= n; i++)
            {
                for (j = 1; j <= n; j++)
                    if (LL[i][j] != 0)
                    {   /*不相邻两点的流量设为0,不予输出*/
                        Console.WriteLine("The flow assigning of {0}-{1}  is   {2}", i, j, LL[i][j]);
                        /*输出各路段的流量分配*/
                        // Console.WriteLine();
                       if(i==2&&j==4)
                           road1=Convert.ToInt32(LL[2][4]);
                        if(i==3&&j==4)
                       road2 =Convert.ToInt32(LL[3][4]);

                    }
                    }
                }
            }
}
(2)    交通信号配置代码
int r1, r2, a;
            if (g1 == 0 || g2 == 0)
            {


                yellow1.Text = "yellow1:" + j.y1;
                yellow2.Text = "yellow2:" + j.y2;
                allred.Text = "allred:" + j.r;
                // p1 = g1; p2 = g2;  //统计绿灯时间
            }

            

                ah.PA[1][4] = 1; 信号控制路网交通流动态分配研究(6):http://www.youerw.com/tongxin/lunwen_3132.html
------分隔线----------------------------
推荐内容