This is an archive of a previous version of Sodarace.

Please visit http://sodarace.net for the latest version.

forum  |  »» sodaplay
 
»» forums  »» artificial intelligence forum

subject: Ameobas created with a genetic algorithm

87 replies on 6 pages. most recent reply: 11-Jun-07 20:14 by Demosthenes2k7

»» back to topic list  

This topic has 87 replies on 6 pages [ « | 1 2 3 4 5 6 | » ]
»» previous topic   »» next topic  


wwan

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 18-Dec-03 10:00   »» 
what do you mean by custom racer. I want to use the one and only soda racer. But for breeding I do not need a GUI.
Can you please explain in more details what you did and how. I am rally interested.

jbrownlee

»» models

Re: Ameobas created with a genetic algorithm   posted: 18-Dec-03 11:33   »» 
“Customer racer” is self explanatory. It’s a simple java class for executing a race using the same physics engine soda race/constructor use. If I provide instruction on how to do this it would be the same as releasing the source code. I do not want to get banned from this site, or undermine the people that wrote the software.

klamdogg06

»» models

Re: Ameobas created with a genetic algorithm   posted: 14-Mar-04 05:10   »» 
whwnever i click to download a race or anything on this site, my computer tells me it cn run it because it doesnt know what program created it. What do i do!?

guest
Re: Ameobas created with a genetic algorithm   posted: 22-Mar-04 14:43   »» 
> whwnever i click to download a race or anything on
> this site, my computer tells me it cn run it because
> it doesnt know what program created it. What do i
> do!?



i got the same problem



Chirag

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 22-Mar-04 22:30   »» 
copy and paste the link into java webstart. webstart comes with the latest version of the java available from java.sun.com

zthanatos

»» models

Re: Ameobas created with a genetic algorithm   posted: 23-May-04 20:42   »» 
Question for Chirag:

I have downloaded your app GA Wizard. On execution of the batch file 'start', it opens the screen that it should. But none of the buttons or slider move or do anything. What am I doing wrong?

crazynate1

»» models

Re: Ameobas created with a genetic algorithm   posted: 27-May-04 20:23   »» 
YEs very interested in programming in ai but the only language i know that could make an xml file would be php and i still dont know that very well

what are these "ameoba makers" ur talking about where are they

tommyboy03110

»» models

Re: Ameobas created with a genetic algorithm   posted: 09-Jun-04 21:36   »» 
how do i create a population of randomly genarated amoebas

kuja55

»» models

Re: Ameobas created with a genetic algorithm   posted: 26-Jul-04 05:37   »» 
how do i see ur race thing all i get up on my screen is a program typed out. i cant read those well...

kuja55

»» models

Re: Ameobas created with a genetic algorithm   posted: 26-Jul-04 05:39   »» 
not to mention i dont no wat im doing.

srry 4 the dbbl poast.

~~kuja*~

guest
Re: Ameobas created with a genetic algorithm   posted: 29-Aug-04 14:31   »» 
I see intelligent people O.o

mathchamp

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 13-Oct-04 21:50   »» 
> We are planning to make a website about how we did
> this but here's a a quick explanation.
> The algorithm we used is generally called a 'genetic
> algorithm'. They allow you to find
> optimum solutions to problems that have a large
> search space. In this case it allowed us
> to find the best amoeba from the huge number of
> amoeba variations that exist.
> evilgoatfiend you pointed out that the best amoebas
> are the simplest. That is true but you
> had to figure that out in your head. The genetic
> algorithm we used found this out for us and
> the final amoeba it produced reflected this. when we
> wrote the algorithm we didnt know anything
> at all about what makes a fast amoeba. The point of
> the algorithm was for it to find this for us.
>
> We chose to start off with amoebas on flat terrain
> because it was simple to see to code
> and to see how it works. Our next step would be to
> use terrain and try to evolve more complex
> models.
>
> For those interested in knowing more about the
> technique we used i found this site quite handy
> as a good introduction
> http://cs.felk.cvut.cz/~xobitko/ga/ .
>
> If you've read that or already know a little bit
> about genetic algorithms i'll go into more detail
> about what we specifically did.
>
> Encoding of a chromosome (in this case what defines
> an amoeba)
> This involved finding a way to represent an amoeba as
> a set of parameters. Just like the blueprint
> for making humans is in our DNA we needed to find a
> suitable representation for our amoeba. We decided
> that each ameoba can be represented simply by the
> number of masses it has and the distance between the
> centre
> and one of the masses on the outer ring. These two
> numbers define what the amoeba looks like. The other
> 6 numbers
> we need to include are the three settings for the
> wave (amplitude , phase , speed) and the three
> settings for
> the environment (gravity , friction , springyness).
> they have to be included because they affect how well
> the ameobas moves.
> We coded a class that takes in these parameters and
> creates an amoeba, giving back the XML string
> representation
> that can be passed to the race app. this is similar
> to existing ameoba creators already out where you
> enter the
> numbers and it gives you an amoeba in xml form. our
> representation allows us to easily breed (cross-over)
> an amoeba from two models
> and also perform mutation. Cross-over involves taking
> two amoebas and randomly picking parameters from
> each. for example You may
> take the number of masses from one amoeba and the
> radius the other amoeba. Once we have crossed-over
> all the parameters
> we can create a new amoeba with our amoeba factory.
> This is step 4 of the algorithm below. step 5, the
> mutation simply
> involves taking the parameters of an amoeba and
> randomly changing them by some amount. The mutation
> encourages
> genetic variation and ensures that a wider range of
> amoebas are created.
>
> Main algorithm steps:
>
> with encoding of the chromosome out they way we can
> proceed with the main algorithm process which goes as
> follows.
>
> 1. create a population of 100 amoebas by passing
> random numbers into our amoeba factory class.
> 2. test the speed of all amoebas in the population
> saving the results.
> 3. Pick two amoebas with some selection method that
> favours better performing amoebas.
> 4. Cross-over the parameters of the amoebas.
> 5. Mutate the parameters.
> 6. Test the fitness of this amoeba and compare it to
> the population. If it is faster than any in the
> popultion
> than add it in and throw out the slowest. Go to step
> 3.
>
> This carries on until some condition is met, such as
> an amoeba of sufficient fitness has been produced or
> the fitness
> of the best amoeba hasnt changed for the last 1000
> iterations or so.
>
> As you can see even with this simple example of
> creating amoebas there are a significant number of
> steps involved. As i
> mentioned before we will be making a website to give
> proper explanations, and make our source code
> available to those
> interested.
>
> The fastest amoeba that our algorithm produced
> actually does this race in a mere 36 frames (see the
> race). But it "cheats". The algorithm
> eventually learns that setting gravity and friction
> to close to zero the amoeba can "fly" across the
> screen without
> touching the ground. i had to restrain the the
> parameters gravity and friction to minimum values so
> the amoebas always
> use the terrain.
>
> just to answer wwans questions:
> The initial amoebas didnt even finish. They all timed
> out. It was through mutation that an amoeba that
> finished was produced.
> first of which finished in about 2000 seconds i
> think.
> The total number of amoebas tested was around the
> 50,000 mark (500 generations with a population of
> 100) at which point a memory leak in the race app
> caused it to crash. i believe they fixed one of these
> memory leaks but another still exists.
>
>
> race:
> http://sodarace.net/upload/Chirag/superAmoeba.jnlp

I have added one of my AI amoebas and I also added a terrain and beat 'superAmoeba'



race: http://sodarace.net/upload/mathchamp/LoserAmoeba.jnlp

mathchamp

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 13-Oct-04 22:00   »» 
> Hi,
> Im part of a team from queen mary university and
> and this is our ameoba created using a genetic
> algorithm. Here's how we did it:
>
> using an "AmeobaFactory" class that takes in a set of
> parameters and generates an ameoba, our algorithm
> does the following
>
> 1. Create a population of randomly generated
> ameobas.
>
> 2. Test the fitness of each ameoba.
>
> 3. Select two ameobas from this population
> (favouring the fastest ones) and perform a crossover
> of the parameters to create a new ameoba.
>
> 4. Mutate the parameters of the newly created
> ameoba.
>
> 5. test the fitness of this ameoba. If it turns out
> to be faster than any of the ameobas in the
> population. Throw out the slowest ameoba and add this
> one to the population. Go to step 3
>
> The crossover basically works by taking parameters
> from 2 ameobas and combining them to make a new
> ameoba.
>
> The mutation just changes a parameter by some random
> amount.
>
> Ok i admit this all may seem a bit confusing., but
> hopefully we'll have a website up soon so we can
> explain how we did this properly plus make our source
> code available to anyone needing help in creating
> there own intelligent modellers.
>
> In the meanwhile try beat this one... this race is
> for ameobas only!
>
>
>
>
> race:
> http://sodarace.net/upload/Chirag/AIAmeobaRace.jnlp

But if you add a terrain your amoeba just flops around and mines (made from xml) wins.

Watch me win!!!

race: http://sodarace.net/upload/mathchamp/Better_Slope.jnlp

simay

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 14-Oct-04 02:52   »» 
mathchamp, his amoeba was evolved to get the fastest time on ONE SPECIFIC terrain. as soon as you change the terrains, the amoeba will not have the correct settings.
you 'won,' but most people would not say that you won

mathchamp

»» models
»» homepage

Re: Ameobas created with a genetic algorithm   posted: 14-Oct-04 22:53   »» 
But it is more fair to race on a terrain slope. Flat land is not much of a challenge.



This topic has 87 replies on 6 pages [ « | 1 2 3 4 5 6 | » ]


»» previous topic   »» next topic  

»» back to topic list  »» top of the page  

PLEASE READ THE FORUM GUIDELINES AND ALWAYS PREVIEW TO CHECK MESSAGES BEFORE POSTING...
...Help keep our forums creative and constructive. Thank you.


»» forum home