Multi-Agent Simulator Program

Hi All,
I'm working on a multi-agent simulator in which agents learn an environment while moving through it. Being somewhat new to Java, I'm looking for suggestions on what data structure to use for storing an agents associative memory. To give you an idea, I'm currently using an array for the agent's exploratory memory (a buffer), then when the agent finds food the path used to find food is then copied to the agent's associative memory and the exploratory memory is whiped clean. The problem I'm encountering is I don't want just a bunch of paths to be stored in the agent's associative memory - exsecially paths that have exact subpaths. For example, if an agent moves North, North, East, then South, and finds food, that path will be stored in associative memory - in case the agent finds itself on that same path it can use it's associative memory to find food. The problem is what if the agent does find itself on that same path, but moved South then West prior to finding the above path. My current logic updates associative memory with the full path taken to reach food. Therefore I would have two paths in my associative memory but one path would be a subpath of another. I guess I'm looking for a data structure that can store full paths as well as parts of paths that connect to full paths. Also, the agents don't know where the food is, they only know paths to food. I can't make a matrix for the agent mapping the environment. I was considering storing full paths and using an emotional context, but wouldn't that be inefficient to store all full paths when some paths are subpaths of other paths?
Any suggestions?
Thanks

The agents must store paths to food. Right now the agents move acorrding to their schema. If they get stuck a random set of moves is generated for that agent. The idea of the simulation is for agents to learn the environment (paths to food) through the use of their inborn schema and associative memory. For example, when an agent finds food, that path is stored in it's associative memory. The agent is then placed in a random location in the environment. That agent will then use its schema and associative memory to find food, meaning when the agent moves it will check it's associative memory for a move that matches the current move - if no match is found it will move according to its inborn schema (default move pattern).

Similar Messages

  • Multi-threaded server programming

    Hello, I meet a problem and don't know how to solve it: I have created a multi-threaded server program which receives multiple users from their own PCs. The server program receives users'commands and echo it back to all users who are currently connecting to my server. I store every clientSocket connecting to my server into a vector. My question is: how the server broadcasts a user command to other users? And how the server knows to which user he will echo the command to since the hostName and port number are the same to every user currently connecting to my server? Thanks a lot.

    You should look at extending the Socket class to encorporate user details. Either use what peter suggested or make the user pass a username (or something) when they connect.
    When you want to broadcast to all users just enumerate through your vector and send each one the command. If you mean the user performs a task on their application and you want to produce the same results in all the other users apps then its down to you to code it. When user1 clicks on a button the app must send a command (eg. a string) to the server which sends the same string to all other users. When the user receives this string it performs some task.
    Is that what you mean?
    Ted.

  • NiScope EX Multi Record vi program

    Hi,
    I have a question in niScope EX Multi Record.vi program. I was not explaining it well in my previous mail. That is why people can not answer my question. This time, I will explain clear.
    Attached "abc" is my prgram with niScope EX Multi Record.vi prgram.  This is my question. How come I can not get the waveform when I do the same action in the seond time? Here is how my prgram work. First, I press "reset"  push button, the light will go off and press it again the light turn off. The prgram do nothing, just reset the value of the voltmeter and current meter. Second, I press the "enable" button, the voltmeter and current meter get reading since I have a subprgram under timeout in the event structure. Then, I press the "enable button" again to turn on the light. Third, I press the "bark button", my hardware will be shocked and output waveform, since I have a subprogram, niScope EX Multi Record.vi, I set the right parameter, I will get the "shock pulse waveform".
    Everything looks good and working. Then I press the "bark" push button again to turn the light off. I want to do the same action the second time to see if the waveform of niScope EX Multi Record will generate again because normally I tried the same action the second time. the waveform will generate again. Here I am talking about I use the niScope EX Multi Record.vi prgram without anything and event structure and I did the same action as what I said in the above procedure. But, I did the same action in the second time in this "abc" vi program with niScope EX Multi Record. vi prgram, I could not get a new waveform, I don't understand why? could you please tell me what I did wrong? my niscope EX Multi Record.vi prgram is out of the event structure, what I see is like this prgram is alone just like the one I tried without event structure before. I am not sure if this single prgram mixed with event structure, it will be what? will it be different like I put two subprgrams in one block diagram even though I tried two subprgram put it together and it will work what it suppose to do. I am not very sure if ni scope EX Multi Record.vi prgram mixed with other prgrams with event struturem, what will happen? Will it be the same like two subprgram put it together? Could you please tell me exactly what if I put niScope EX multi record.vi with event structure including another program, what will happen? I would like to understand.
    Attachments:
    abc.vi ‏227 KB

    Hi Nyborn,
    The changes of the graph color are controlled by the Waveform Graph property node on your block diagram. In the niScope EX Multi Record.vi  example the Plot.Fill/PtColor value of the waveform graph property node is connected to a random generating number which changes the color on every execution. If you want to assign just one color, remove the random number vi and just wire a acii constant for the color you'd like. You can find listing of all acii color codes here.
    I hope this helps.
    Regards,
    Natasa

  • Implementing Multi-agent system ..??

    Hello,
    I have to build a multi agent system for information retrieval from a blog portal.. now the problem is that i'm not able to decide which agent library should i go for.. there are so many of them available ..jatlite, jade, aglets etc..what do u think is fine?
    pls reply.
    thanks

    please can any one help me?

  • Build Multi agent system with JADE

    Hi,
    I want to build a multi agent system,i find a framework jade but it is complex.
    are there any totrial how can halp me please?
    Thnks in advance

    please can any one help me?

  • Multi currency payment program

    Hi Experts,
    how to implement multi currency payment program for international payroll. and also how to implement multi currency offcycle payments.
    give me some brief procedure, right now my client doing only one currency, upgrading to multi currency payments.
    your suggestions highly appreciated
    Thanks
    Sunny

    hi
    multi currency can be paid at pay sclae type and level
    plz correct me
    madhu

  • Running the simulation program in RTX

    Hi,
    My simulation program runs fine with windows. Now I am trying to run it with RTX Eval version but the results which I get are not correct. There is no I/O interface in my system. I am giving fixed control inputs and want to view the plots on the screen. I have used Labview 8.0 and simulation module 2.0. Does the simulation module work fine with RTX?
    Also, how to view the data on screen from the program running on the RTX? I am checking only the final value presently to verify my results.
    thanks and regards,
    Rashmi

    Rashmi,
    Sorry this has taken so long to get a response, but I am going to need some more information before I can fully help you.
    Just to verify, the results on the Windows system are correct, but they become incorrect when ran on the RTX?
    What exactly is incorrect about the results?
    Have you tried some LabVIEW examples on the RTX to make sure the output is what was expected?
    from the main LV screen>>Find examples >> browse >> toolkits and modules >> control and simulation >> simulation
    Chris Van Horn
    Applications Engineer

  • RVO Multiple agents simulation via Alchemy

    Hi all,
    I use RVO C++ library with alchemy. Here is an early test, fps is not so bad for 150 agents :
    http://www.visualiser.fr/blog/index.php?q=content/multiple-agent-simulation-as3c-alchemy-0 5-rvo-library
    (need latest fp 11.2).
    Samuel

    new test using starling, my alchemy rvo port  is more optimzed (400 agents follow cursor at 60fps), use of memUser to directly acces agent properties
    http://www.visualiser.fr/starlingRvo/Starling_RVO.html

  • ESX24 as Multi and possible program change!?

    Hi Forum
    I allow myself a daft question... Can ESX24 behave as an Multi
    say armed with 16 different instruments/Sounds like KONTAKT ?
    and/or is it possible to send a program change message to ESX24!?
    yours
    Bo Lundby-Jaeger
    yours
    Bo Lundby-Jaeger
    yours in advance
    Bo Lundby Jaeger
    QUAD 4 X 2,5 GHz G5
    4.5 GB DDR2 SDram
    MacOSX 10.4.10
    MOTU 896HD
    Samsung ML-1720
    Brother DCP-4020c
    programs and hardware
    Logic pro 7.2.0
    Motu 896 HD

    No - the EXS24 is monotimbral.
    If you want 14 parts, open 14 EXS24's. If you want 34, then... you get the picture. You are not limited by MIDI channels, and each has it's own audio channel object.
    The EXS24 does not respond to program changes afaicr - you can use the channel strip performances to do something similar, but generally speaking live program changes in a song is not a good idea, for performance reasons.

  • Simulator program

    hi all,
    can any one share me the code,to control my device using PC,
    just like a simulator.
    thanks
    mraj

    The agents must store paths to food. Right now the agents move acorrding to their schema. If they get stuck a random set of moves is generated for that agent. The idea of the simulation is for agents to learn the environment (paths to food) through the use of their inborn schema and associative memory. For example, when an agent finds food, that path is stored in it's associative memory. The agent is then placed in a random location in the environment. That agent will then use its schema and associative memory to find food, meaning when the agent moves it will check it's associative memory for a move that matches the current move - if no match is found it will move according to its inborn schema (default move pattern).

  • Multi User game programming

    Hi All,
    Hey now i am trying to make some games, I want to design a game with multi users.
    If u have any tutorials, books or links related to this type of code, please forward me for this or my mail id - swamy.webdesigner at gmail.
    Thanks,
    K Swamy Vishnubhatla,
    webdeginer.blogspot.com,
    http://www.vishnubhatla.ueuo.com.

    bump
    I wouldn't mind knowing why RMI isn't good idea for this as well.
    Is there a monster in RMI that new people like me don't quite fully understand? It seems like a nice little tool for creating very cool networked programs??

  • Hercules DJ Console Rainbow Multi Coloured Disc Program Freezing Up

    Hi
    I recently purchased a MAC to use in conjuction with the Hercules DJ mixing console as i am a full time professional DJ. On the whole i find that the MAC meets all my needs however i am having a slight technical issues which have disrupted two of my recent gigs and caused me to revert to a cd back up system.
    What is basically happening is that whilst i am using the Hercules mixing system which is powered via USB2, within the software there is a facility to search for music which guests may request during a gig. This is in the form of a search bar and results appear on the screen, it can be used whilst using the mixing software.
    However, on both occasions, whilst searching for music requested by guests, the multi coloured disc has appeared and the software has frozen which has resulted in me having to force quit the software which is not ideal during an event.
    I have also experienced this happen with several other programs on the MAC (Even Mail).
    Has anyone experienced this or does anyone know why this is happening and a solution to the problem as i have lost a bit of confidence now in the MAC and may revert to another brand if i dont resolve the problem. Thanx in advance for any help.

    Welcome to Apple Discussions:
    Since you say this happens with mail, and other apps, it's probably not related to your Hercules system directly.
    When you run the Mac by itself, with everything else unplugged, do you get the spinning beachball much?
    You may need to run the disk utility and repair the HD and the permissions.
    It's also possible that some 3rd party SW you may have installed is causing the problem. Be sure all 3rd party SW is fully compatible with Leopard and has been tested with the latest versions.
    Check your console logs for information about this, and also run the Activity Monitor to see if something is taking up a lot of CPU ticks.

  • Multi-core threaded program pauses

    I tried to exercise two of my quad cores using timed loops, but when I set the times down to 10 and 20 msec then the display pauses and LabView becomes non-responsive.  I have a DELL Precision 7500, so these are Intel processors.  Is the graphics causing the program to pause or something else?
    Attachments:
    Testing Labview Timed Loops w Cores.vi ‏37 KB

    As an experiment, I converted the timed loops to standard while ones.  The application ran much faster with no pauses.  Task Manager showed spikes on cores 3 and 7.  I increased the number of while loops to 5 and hit 32% processor capacity, but Task Manager showed the majority of the load still be carried by 3 and 7 but the others were starting to come up.  I wonder how NI implemented the timed loop because apparently it cannot lock down a core, but rather goes to Windows and requests run each iteration of a loop as a single thread.  The pauses could be caused by waiting for system interrupts, but that doesn't explain why it effects the other Windows applications like Task Manager.

  • Multi-lingual Java program/problem

    Hi,
    The following program from the Sun books, is supposed to work with different languages. Except it doesn't!
    It has a problem finding the Properties files (?)
    It gives the following Exception:
    Exception in thread "main" java.util.MissingResourceException: Can't find bundle
    for base name MessagesBundle, locale en_GB
    here is the Sun program:
    import java.util.*;
    public class I18NSample {
    static public void main(String[] args) {
    String language;
    String country;
    if (args.length != 2) {
    language = new String("en");
    country = new String("GB");
    } else {
    language = new String(args[0]);
    country = new String(args[1]);
    Locale currentLocale;
    ResourceBundle messages;
    currentLocale = new Locale(language, country);
    messages =ResourceBundle.getBundle("MessagesBundle",currentLocale);
    System.out.println(messages.getString("greetings"));
    System.out.println(messages.getString("inquiry"));
    System.out.println(messages.getString("farewell"));
    and I have created several properties file (English, French, German, Arabic) as text files. Maybe I have problems with the properties files.
    I have followed the steps from the Java Tutorial book from Sun.
    Any help would be most welcome.
    Akz

    First save a java file "MessageBundle.java" in your current directory, for the moment. Then save java files "MessagesBundle_en_GB.java", "MessagesBundle_fr_FR", "MessagesBundle_de_DE" or "MessagesBundle_ar_EG" for example. Compile them to class files.
    Then try using your code with various locales.

  • Multi-Agent Voicemail Management

    Hi, small business here. We have several agents remotely operating our Skype customer service line (only one number), but we are experiencing difficulty in keeping a synchronized voicemail/call log; i.e. when opened on different computers (Mac and PC), Skype does not present the same call log or list of voicemails, and thus makes it difficult for us to effectively coordinate responses. Does anyone have advice on how we can set up a centralized voicemail inbox/call log that is consistent for all of our operators? 

    I suggest you to use PrettyMay Call Center for Skype which is perfect for small business to set up Skype based phone system, with it, you can set up a centralized voicemail inbox/call log as well as a lot more, and only one main Skype account/Skype online number required.
    Check out more at: http://www.prettymay.net
    Want to record Skype calls, check out at:
    hereandhere

Maybe you are looking for

  • Can i have a check box in the hierarchical tree in the icons place, urgent!!! please

    Hi, I'am working on the Hierarchical Tree structure which should have three levels, I need to have a check box in the place of the icon & if i select a node that node & the child nodes should get selected. After this when i say move selected ( i'am t

  • ERROR while activating the Business Content of Sales Cube 0SD_C03

    Hi, iam facing an error, iam getting the  error while activating the Business Content sales info cube and Inventory info cube with the collection option DATA FLOW BEFORE. In my system the service pack was 14, what shall be the approach. Here iam gett

  • MythTV Program Guide Slow/No Composite Effects On Dual Monitor

    Hello all, I am not entirely sure where this would belong, so I put it here. I am running Arch64 with an NVidia 8600GTS and dual monitors as seperate X screens. The second monitor is actually a TV not a monitor, and is using the S-Video output on the

  • Manager field in AD is not populating

    Hi guys, I have installed AD connector in OIM 11gR2 and provisioning is working fine. But the manager field is not getting populated. Please let me know how to populate manager field also in AD.

  • Custom installation of PSE 10

    Dear all, is there any possiblity to install only a subset of components from the PSE10 DVD on Windows XP? I was a bit shocked to see that the installation needs more than 5GB, which probably includes a lot of stuff I don't need anyway... and is slig