Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Ant Colony Simulator

  1. #1
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Smile Ant Colony Simulator

    Here's the link, check it out if you feel like it: Ant Colony Simulation

    As a final project in my AI class, I developed a program that hopefully introduces non-programmers to the artificial intelligence principle of emergence in ant colony optimization.

    Basically, the program models how real-life ants cooperate to find food. Even though each individual ant is pretty dumb, the colony as a whole shows intelligent behavior. Through pheromones and some very simple rules, ants work together to respond to dynamic environments (which you can change on the fly).

    spiral.jpg

    The program's source is available, and it might serve as a base for another programmer to implement something more game-like. This could be the beginnings of a tower defense game, or just a better version of the open environment I've started here.

    I'm submitting this later today, so any feedback on stuff that isn't obvious is appreciated. Also, if anybody using a mac could do a quick "this works", I'd appreciate it. My professor uses a mac, but I don't have one to test on.

    I've also posted this here and here.
    Last edited by KevinWorkman; December 14th, 2011 at 08:14 AM.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Ant Colony Simulator

    This is brilliant Kevin I really like it! I will enjoy taking a look at the source code shortly

    The ant colony optimization wiki is a very interesting read.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Ant Colony Simulator

    Quote Originally Posted by JavaPF View Post
    This is brilliant Kevin I really like it! I will enjoy taking a look at the source code shortly
    Haha thanks, although I'm not sure the source code is going to be all that enjoyable. This program definitely suffered from feature creep, so the code is not as organized as it could be. But it works! Hopefully my professor likes it too, since this is 30% of my grade...
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Ant Colony Simulator

    Pretty cool. I tested it on my mac earlier this morning and it definitely runs smoother on a PC (at least the applet). Not sure there's much you can do about it though - I just noticed a minor flicker here and there. I've definitely found it so beneficial to write gui's such as this to demonstrate, understand, and debug algorithms.

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Ant Colony Simulator

    Quote Originally Posted by copeg View Post
    Pretty cool. I tested it on my mac earlier this morning and it definitely runs smoother on a PC (at least the applet). Not sure there's much you can do about it though - I just noticed a minor flicker here and there. I've definitely found it so beneficial to write gui's such as this to demonstrate, understand, and debug algorithms.
    Thanks. I'm not surprised if you see some slowdown or flickering, I am definitely not doing things optimally. I'm just glad it works!
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Parking Ticket Simulator Help (Almost done, few errors)
    By TitanVex in forum Object Oriented Programming
    Replies: 7
    Last Post: December 5th, 2011, 05:06 PM
  2. Java TreeMap Simulator
    By giga97 in forum Collections and Generics
    Replies: 2
    Last Post: October 18th, 2011, 09:46 AM
  3. AI Search Simulator Assistance
    By GeekWarth in forum What's Wrong With My Code?
    Replies: 12
    Last Post: September 17th, 2011, 03:40 PM
  4. Creating a Simulator
    By william in forum Java Theory & Questions
    Replies: 4
    Last Post: June 16th, 2011, 10:11 AM
  5. JAVA simulator
    By YAS218 in forum Java Theory & Questions
    Replies: 8
    Last Post: July 20th, 2009, 09:57 AM