Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

galsample.h

Go to the documentation of this file.
00001 
00009 /*
00010  * Example program for GALib - A simple C++ library for Genetic Algorithms
00011  * Arthur van Dam <dam@math.uu.nl>
00012  * $Id: galsample.h 474 2008-11-19 17:09:15Z anyzelma $
00013  */
00014 
00015 #include <iostream>
00016 #include <fstream>
00017 #include <cstring>
00018 #include <stdio.h>
00019 
00020 #include "galib.h"
00021 #include "MaxIntProblem.h"
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00034 struct paramstruct
00035 {
00036     int nrGenerations;          
00037     int nrMembers;              
00038     int len;                    
00039     char outputfilename[80];    
00040     int nrElite;                
00041     double mutationprob;        
00042     double crossoverprob;       
00043     int printgenerations;       
00044     int fprintgenerations;      
00045     int fprintobjvals;          
00046     double rmin;                
00047     double rmax;                
00048     int nrDim;                  
00049     int nrPoints;               
00050     int convergencethreshold;   
00051 };
00052 
00060 bool readParameters(paramstruct* parameters, int argc, char** argv);

Generated on Tue Oct 20 12:59:20 2009 for LabSci GALib optimisation by genetic algorithms, student version by  doxygen 1.3.9.1