winzip icon

Big Genetic Algorithm - Problemsolver

Submitted on: 2/18/2015 10:52:00 PM
By: Thierry (from psc cd)  
Level: Intermediate
User Rating: By 22 Users
Compatibility: VB 6.0
Views: 6062
     This is a complete Genetic Algorithm Class full with all the features you will ever need. If you are new to Genetic Algorithms you will find extensive documentation (both in code and in separate textfiles) to help you understand what it is and how it works. Just run the examples and make out for youself if you want to learn more. You can use this class in your own projects to help you solve many kinds of problems. I provide 5 different examples to help you on your way. These examples are : - find the values in a formula - draw the biggest circle - fill a 3x3 grid so that rows and columns have the same sum - 0/1 knapsack problem - And of course : The traveling salesman All examples are kept simple and have their own explanation-textfiles. The list of features : (don't worry if you don't understand this at first, full explanation is provided in code and in separate textfiles) Supported encoding types : Binary, Alphabetic, Long integer and Double (real numbers) Selection methods : Rank, Roulette Wheel or Tournament Crossover methods : One point, Two point, Uniform, Half-uniform or Edge recombination Mutation : can be Fixed or Adaptive, numerical encoding can have mutation happen the usual way it's done with numbers, or bit-like Reproduction methods : Replace weakest, replace parents or replace random. Two Social disasters : Judgement Day or Packing Also supports : Random-Offspring generation, Crossover and mutation on full-gene or anywhere in a gene (and this for all encoding types !!) Let the class create it's own population or provide your own... All these settings are easy to modify using the GA-control panel and can be saved/loaded from a file. Complete statistics can be kept during the generation cycles and saved to a file. The only thing you need to do is choose an encoding type and provide a fitness function, my class does the rest. I am open to questions, suggestions, remarks and constructive critisism. Thierry email :

winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.