Click here to Skip to main content
13,559,193 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Can someone give me an example of a genetic algorithm in VB.net? I'm confused on how to create a population, crossover, mutation and calculate a fitness value for each chromosome. I need an example of a genetic algorithm in vb.ne including the source code.
Thanks for your help! :)
Posted 18-Feb-11 0:29am
Updated 18-Feb-11 0:54am
v2
Comments
Sergey Alexandrovich Kryukov 18-Feb-11 11:10am
   
Your problem is VB.NET, I would suspect. To get access to serious works you may want to switch to C# and/or something else. I never knew serious developers taking any kind of Basic seriously. This is fact of life, not of opinions of relative benefits of different languages.
--SA

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

There's an article here on CP that is in C#, but might still be of interest to you to get some ideas:
A Simple C# Genetic Algorithm[^].

Here's an article on CP in VB.NET: Data Classification Using VB.NET and Genetic Algorithm[^].

Studying this should also give you some ideas: JGAP[^]. It is in java but nevertheless very informative.

There is even something in VB6.0 here: http://home.snu.edu/~brint/vbgalib/[^]

Cheers!
  Permalink  
v3
Comments
Dylan Morley 18-Feb-11 7:26am
   
Why was this marked down, looks like some good information

My 5
Sergey Alexandrovich Kryukov 18-Feb-11 11:16am
   
I think I know why, please see my comment :-)
--SA
Sergey Alexandrovich Kryukov 18-Feb-11 11:14am
   
Manfred, I know: somebody is voting "1" all the time; this is revenge!
This is because you called a poor guy an idiot -- I know you did!
This person proves that you were absolutely right about the level of her/his sanity, by voting "1".
This is indeed idiotic.

I find it quite appropriate to vote "5" for you answer.

Cheers,
--SA
Abdi tombang 18-Feb-11 21:38pm
   
Thanks :D
I'm vote 5 for your answer :)
7-Jan-15 4:46am
   
can you give me example source code for scheduling using genetic algorithm system in vb6.0?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web03 | 2.8.180515.1 | Last Updated 18 Feb 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100