• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:27
CEST 01:27
KST 08:27
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18Serral wins EWC 202549
Community News
Maestros of The Game—$20k event w/ live finals in Paris20Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195Weekly Cups (Jul 28-Aug 3): herO doubles up6
StarCraft 2
General
2v2 & SC: Evo Complete: Weekend Double Feature Geoff 'iNcontroL' Robinson has passed away What mix of new and old maps do you want in the next 1v1 ladder pool? (SC2) : The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament Monday Nights Weeklies Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
Custom Maps
External Content
Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below Mutation # 484 Magnetic Pull
Brood War
General
Joined effort New season has just come in ladder BW General Discussion Flash On His 2010 "God" Form, Mind Games, vs JD Flash Announces (and Retracts) Hiatus From ASL
Tourneys
BWCL Season 63 Announcement [CSLPRO] It's CSLAN Season! - Last Chance [ASL20] Ro24 Group A [ASL20] Ro24 Group C
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting Muta micro map competition
Other Games
General Games
Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV Path of Exile Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The year 2050 Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
High temperatures on bridge(s) Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment"
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Evil Gacha Games and the…
ffswowsucks
Breaking the Meta: Non-Stand…
TrAiDoS
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Sharpening the Filtration…
frozenclaw
ASL S20 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4838 users

Genetic Algorithm to evolve cars!

Forum Index > General Forum
Post a Reply
1 2 3 4 5 6 7 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-01-24 01:03:00
January 23 2011 23:59 GMT
#1
My friend found this link, which is really cool to look at. It is using genetic algorithm to tune the traits of the car.

The attributes of the car are:
Shapes of the car body
Location of the wheel
Size of the wheel

The body of the car is made up with triangles, and I imagine the algorithm looks for the best combination of triangles of certain sizes.

There are many ways to look for the best combination of these attributes, one silly way is to simply go through all possible combinations. However, this is impractical because there are so many different combinations. What genetic algorithm does is sample a generation of cars, rank them by how far they can travel, and let the high-ranking cars exchange traits (mating) to form the next generation, then repeat. So all in all, genetic algorithm is nothing special or mystical, it is merely a way of finding a good combination of traits in a space of huge number of combinations. So you can call genetic algorithm a kind of "heuristic guided search".

I'll try to explain "mutation rate" here, this is my understanding:
At each generation's end, we're at the verge of developing the next generation. What can we do? Well, we know so far we'd like to take some top-ranking cars, and cross-over their traits. But, this has the danger of getting stuck. For instance, suppose in an unlikely event all of your cars start off identical to each other, then by crossing-over their traits, you actually gets nowhere. What the mutation rate is, then, it means that after the crossing-over, we get a trait for our new car. We then keep 95% of those traits, and replace 5% with something completely random. An intuitive way to think of it is this: You are 50% like your mother and 45% like your father and 5% like yourself, completely independent of your mother and father. Another way to look at it is mutation is the opposite of retention, the more mutation, the more likely you are going to discover new shapes of cars, and more likely you are going to FORGET what has worked well before. A 0% mutation will stop evolution altogether, by not exploring the unknown, whereas a 100% mutation is going to be completely chaotic, by not remembering what it has learned in the past.

I ran the webpage on my computer over 2 days, just to see how far it can get, it seems to hit a plateau of performance after awhile, here's a screenshot:
[image loading]

Here's the link to the webpage:
http://megaswf.com/serve/102223/

If you follow the first few generations, these car evolve really freaking fast, good "car-like" robots start to form around generation 8 or so for me, alongside with many retard shape cars

So run the webpage, and shere some screenshots!!!
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
January 24 2011 00:14 GMT
#2
That is so cool, I'd love to see the code of this. But I don't really understand when the "test run" of a car stops. If they fall over it's ok to do a new run but sometimes it starts a new round for no reason.
gogogadgetflow
Profile Joined March 2010
United States2583 Posts
January 24 2011 00:15 GMT
#3
I think it starts a new round when it reaches a new best score or so. This is so cool I can't believe how fast it evolved to a "typical" car shape
Dacendoran
Profile Blog Joined June 2009
United States825 Posts
January 24 2011 00:18 GMT
#4
I was laughing my ass off at some of the terrible cars that came out of this thing, and my dad came in my room wondering what was so funny. Was a bit difficult to explain,
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-01-24 01:43:20
January 24 2011 00:22 GMT
#5
On January 24 2011 09:15 gogogadgetflow wrote:
I think it starts a new round when it reaches a new best score or so. This is so cool I can't believe how fast it evolved to a "typical" car shape


There are glitches of that program I think. It sometimes stop the test prematurely. It doesn't stop it when it reaches a new score because logically it's good to give the code more time to run so to attain an even higher score.
But yeah it evolves pretty fast haha

actually take it back. It stops as soon as it reach some high-score, i.e. we know for sure it is the best so far.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
Selth
Profile Blog Joined July 2010
United States469 Posts
January 24 2011 00:31 GMT
#6
I feel like I'm watching evolution fail dramatically. lol Still interesting regardless.
rawb
Profile Joined September 2010
United States252 Posts
Last Edited: 2011-01-24 00:38:00
January 24 2011 00:35 GMT
#7
I've been watching it non stop trying to catch the one baller car that goes like 400, but so far I've seen a lot of unicycles flipping over haha

Edit - yeah like the post under me says, the ones that evolve an arch to prevent getting stuck and a little thing on the back to stop them from flipping back are kicking ass. this is awesome :D
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
Last Edited: 2011-01-24 00:39:16
January 24 2011 00:36 GMT
#8
The funny thing is that these cars seem to develop a shape that prevents them from falling over.

Edit: Like this one [image loading]
betaben
Profile Blog Joined September 2007
681 Posts
January 24 2011 00:36 GMT
#9
the cause of the plateau on my box was a hill with a pinacle at distance 180; the cars needed a short wheelbase to get over the hill but a large wheel base to get there.
LittLeD
Profile Joined May 2010
Sweden7973 Posts
January 24 2011 00:36 GMT
#10
So, what does the mutation rate actually do?
☆Grubby ☆| Tod|DeMusliM|ThorZaiN|SaSe|Moon|Mana| ☆HerO ☆
type_d
Profile Joined January 2011
Australia20 Posts
January 24 2011 00:39 GMT
#11
Any idea what the mutation rate does?
betaben
Profile Blog Joined September 2007
681 Posts
January 24 2011 00:40 GMT
#12
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
January 24 2011 00:40 GMT
#13
I'd guess it changes how much or how fast the different parts are changed. How intense they mutate, if you will.

If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Kaasflipje
Profile Joined May 2010
Netherlands198 Posts
January 24 2011 00:40 GMT
#14
It doenst always evolve the same way. I have one window where it gets consistent ~175 after 6 generations and in the other one it still does retarded shit in generation 25.
Coutcha
Profile Joined November 2010
Canada519 Posts
January 24 2011 00:41 GMT
#15
Mutation rates?
This is what the world is for Making ELECTRICITY :D
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
January 24 2011 00:42 GMT
#16
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?


Probably changes how fast the parameters changes and how wildly they change.
https://twitter.com/SufficientStats
uNiGNoRe
Profile Blog Joined June 2007
Germany1115 Posts
January 24 2011 00:42 GMT
#17
On January 24 2011 09:40 betaben wrote:
Show nested quote +
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.

Which means that a higher mutation rate yields more random looking results but gives the evolution a chance to create a car that deviates from the properties of its ancestors.
type_d
Profile Joined January 2011
Australia20 Posts
Last Edited: 2011-01-24 00:46:22
January 24 2011 00:44 GMT
#18
Mine just went from 90+ to less than 10 in about 4 generations. Seems like it began to regress through some bad traits that just kept popping up. I guess my cars needed an ice age to reset things.

Edit: This was on 100% mutation rate.
Vain
Profile Blog Joined October 2009
Netherlands1115 Posts
Last Edited: 2011-01-24 00:48:00
January 24 2011 00:46 GMT
#19
On January 24 2011 09:42 uNiGNoRe wrote:
Show nested quote +
On January 24 2011 09:40 betaben wrote:
On January 24 2011 09:36 LittLeD wrote:
So, what does the mutation rate actually do?

it's a measure of how much random changes in the car design are put in between generations. It may even be the setting of how much the settings of each car are 'jumbled up' between the cars in the genetic algorithm.

Which means that a higher mutation rate yields more random looking results but gives the evolution a chance to create a car that deviates from the properties of its ancestors.


Jeah, if you set mutation to 0 and you have retard cars, you keep getting retard cars. That also works the other way around. So if you set it higher you have more chance of getting better/worser cars

Note: the chance of getting better cars is a bit higher becouse that's what the game selects on but with a higher mutation rate you also get a greater chance of getting worse cars
Battle.net 2.0 is a waiter and he's a dick
Coutcha
Profile Joined November 2010
Canada519 Posts
January 24 2011 00:47 GMT
#20
i do not understand the graphic and color o the car is there a meaning ?
This is what the world is for Making ELECTRICITY :D
1 2 3 4 5 6 7 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 10h 33m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech83
StarCraft: Brood War
ggaemo 43
NaDa 31
Dota 2
syndereN681
NeuroSwarm122
capcasts100
Counter-Strike
Stewie2K490
Heroes of the Storm
Grubby2996
Khaldor146
Other Games
tarik_tv16959
gofns10793
WinterStarcraft463
Trikslyr46
Organizations
Other Games
gamesdonequick1391
BasetradeTV89
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 80
• musti20045 44
• tFFMrPink 20
• davetesta19
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Azhi_Dahaki5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22045
League of Legends
• Doublelift3364
Counter-Strike
• Shiphtur227
Other Games
• imaqtpie1271
Upcoming Events
Sparkling Tuna Cup
10h 33m
SC Evo League
12h 33m
Chat StarLeague
16h 33m
Replay Cast
1d
Afreeca Starleague
1d 10h
Queen vs HyuN
EffOrt vs Calm
Wardi Open
1d 11h
RotterdaM Event
1d 15h
Replay Cast
2 days
Afreeca Starleague
2 days
Rush vs TBD
Jaedong vs Mong
Afreeca Starleague
3 days
herO vs TBD
Royal vs Barracks
[ Show More ]
Replay Cast
4 days
The PondCast
4 days
Replay Cast
5 days
LiuLi Cup
5 days
Cosmonarchy
5 days
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
BSL Team Wars
5 days
Team Hawk vs Team Dewalt
BSL Team Wars
5 days
Team Hawk vs Team Bonyth
SC Evo League
6 days
[BSL 2025] Weekly
6 days
Liquipedia Results

Completed

Jiahua Invitational
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 1
Acropolis #4 - TS1
CSLAN 3
SEL Season 2 Championship
WardiTV Summer 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL Season 18: Qualifier 2
CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.