473,394 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

artificiall, agent, movement

hi
i'm working on some simulation project . i'm going to simulate traffic
of a city.
this simulation has cars , passengers , non-movable objects and
Traffic signals .
i've made cars as intelligent agent . it has thinking method ,
changing states agents ...
the main problem is i have problem to move my agents in world .
it would be possible to add some method to agent which move agent in
random destination .
but i'm trying to find some patterns which is designed for this
problems .
is there any sample source code in python or links, docs to help me ?
thanks for your attention .
Jun 27 '08 #1
3 967
Many city travel surveys collect source destination trip-start data;
you might be able to find one of these studies.

I think each car in your simulation should have a destination. Then
the simulation needs a route-finder, and cars can progress along their
routes as traffic permits -- or even change routes if traffic seems
too slow.

I think if you start with a very small city -- perhaps just a 5 by 5
grid, and generate sources and destinations at intersections randomly
along the perimeter, you'll have enough to prototype all of the
building blocks.

Gerry
On May 12, 6:37 am, Iman <iman.dar...@gmail.comwrote:
hi
i'm working on some simulation project . i'm going to simulate traffic
of a city.
this simulation has cars , passengers , non-movable objects and
Traffic signals .
i've made cars as intelligent agent . it has thinking method ,
changing states agents ...
the main problem is i have problem to move my agents in world .
it would be possible to add some method to agent which move agent in
random destination .
but i'm trying to find some patterns which is designed for this
problems .
is there any sample source code in python or links, docs to help me ?
thanks for your attention .
Jun 27 '08 #2
On May 12, 5:37*am, Iman <iman.dar...@gmail.comwrote:
is there any sample source code in python or links, docs to help me ?
*thanks for your attention .
I've used SimPy in the past to implement a factory simulation. The
SimPy web site claims that it has been used for traffic simulation,
but does not give any links.

http://simpy.sourceforge.net/index.html

I found it to be a very neat discrete event simulator, making good use
of Python language features (especially generators).

HTH,
-- Paul
Jun 27 '08 #3
On May 12, 4:50*pm, Gerry <gerard.bl...@gmail.comwrote:
Many city travel surveys collect source destination trip-start data;
you might be able to find one of these studies.

I think each car in your simulation should have a destination. *Then
the simulation needs a route-finder, and cars can progress along their
routes as traffic permits -- or even change routes if traffic seems
too slow.
yes, we should have destinations for cars. but my goal is my
agents(cars) can recognize non-movable objects ( for example ) so
change it's path or stop when light is red.
i can add lots of if-then-else in my code to action in these
situations but thought maybe there are some patterns or books which is
talking about these topics...
>
I think if you start with a very small city -- perhaps just a 5 by 5
grid, and generate sources and destinations at intersections randomly
along the perimeter, you'll have enough to prototype all of the
building blocks.
>
Gerry

On May 12, 6:37 am, Iman <iman.dar...@gmail.comwrote:
hi
i'm working on some simulation project . i'm going to simulate traffic
of a city.
this simulation has cars , passengers , non-movable objects and
Traffic signals *.
i've made cars as intelligentagent. it has thinking method ,
changing states agents ...
the main problem is i have problem to move my agents in world .
it would be possible to add some method toagentwhich move *agentin
random *destination .
but i'm trying to find some patterns which is designed *for this
problems .
is there any sample source code in python or links, docs to help me ?
*thanks for your attention .
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
Hello I am running a SP from the SQL Server Agent, the job has one step that looks like this. exec q_spr_inlevextsystem This job fails with the following message Job 'AutoInlev' : Step...
3
by: Martin Pinner | last post by:
I have a temporary table that I want to read, update another table with the information the delete the record from the Temp table every hour or so. (The reason for doing this is we have an...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
6
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database...
13
by: gavino | last post by:
This seems easy but I have been asking tcl and python IRC chat all day and no one gave an answer. I have 100 servers which need a new backup server added to a text file, and then the backup agent...
1
by: sircool | last post by:
hi guys, the problemm is that you have a horse on the chess board.You should write a function that calculate the horse's movement.I mean how many movement later you can go every point on the board.I...
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
5
by: hurricane_number_one | last post by:
I am creating a simple server application, that will listen for incoming mouse coordinates and then move the mouse accordingly. So basically it's like a very simple VNC server without and screen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.