Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase «««12345

A Genetic Algorthm Sample in T-SQL Expand / Collapse
Posted Tuesday, March 16, 2010 12:14 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 9, 2011 8:17 AM
Points: 7, Visits: 47
I converted this into proper OO C# and it runs great. I was able to get a score of 490. I found that the DNA strand you provided in the TSQL for a score of 480 doesnt work as you would expect because of the random genes. What you have to output is the action path resulting from the DNA strand.

It is true that if you removed the random gene, you woudl get more consistant results, but if you think about the way that humans are, you would realize that you would be removing the human element form the system. Doing so may or may not be a good thing ;) I think that modifying this GA code in certain ways would benefit specific requirements and would not fit every solution.

I've already implemented walls and other items as well as robot memory with some very interesting results.


Programmers Unlimited
Post #884076
« Prev Topic | Next Topic »

Add to briefcase «««12345

Permissions Expand / Collapse