tailieunhanh - Cellular Automata (CA) in transportation

Mời bạn đọc cùng tham khảo Cellular Automata (CA) in transportation sau đây. Tài liệu hữu ích cho kỹ sư cầu đường, những ai quan tâm đến vấn đề giao thông đường bộ. | Cellular Automata CA in transportation Fl i rectiftrt df tntwe me lit I t T t 1 Acceleration DecceleradoiD Randojnization if iamd pb Keeping velocity Q vélodỊy o the váhide ar the bs zincing of ihds lane tsp Súb-ĩí pl Súb-ĩtep2 Check Lane-dbsngỆBg Conditions wtrides applying rule ofNaSch mode Q velocity of ihe véhic je al tile begmmcg of this CIDS step vetfldes ạpptyĩig rale of hce-dncgbs EHBiel Input - An array 2 x 500 moi cell dai 5 m rong 4m - Every cell can either be empty of occupied by one car with velocity V 0 1 Vmax 5 cells time-step - Each time step is 1 s Phat sinh xe tu le trai cho toc do den X s tuc la 5 xe trong 100s phat sinh 1 so ngau nhien r tu 0 den 1 khoang cach thoi gian khi phat sinh moi xe tinh - ln 1 - r z x theo cong thuc x ------------ s X Khi xe den cell cuoi cung cua le phai cell 500 o hang 1 va hang 2 se bien mat. Run time steps s Xet 1 xe bat ky trong he thong ta co 4 buoc sau Step 1 Chuyen lan change lane If ggap Vn 1 ggap0 Vn 1 and go back Vmax and phat sinh ngau nhien mot so nguyen tu 0 den 9 neu so do nho hon 5 thi moi chuyen lan then Vn increases Vn Ũ min Vn 1 Vmax Step 2 Tang toc If Vn Vmax va gn Vn 1 then Vn increases Vn Ũ min Vn 1 Vmax Step 3 Giam toc If gn Vmax then Vn decreases Vn Ũ min Vn gn -1 Step 4 Ngau nhien Random 1 so nguyen tu 0 den 9 neu so nguyen nay nho hon 5 thi lam lenh duoi day con neu ko thi ko lam gi het. If Vn 0 then Vn decreases Vn Ũ max 0 Vn -1 Step 5 Xe chuyen dong Di chuye xe den vi tri moi update Xn Ũ X Vn Xuat ket qua 1 Xuat giao dien do hoa 2 Xuat quan he nhu sau space road time .