1 /********************************************************************** 2 ga_intrinsics.h 3 ********************************************************************** 4 5 ga_intrinsics - Genetic algorithm routine intrinsics. 6 Copyright ©2002-2003, Stewart Adcock <stewart@linux-domain.com> 7 All rights reserved. 8 9 The latest version of this program should be available at: 10 http://gaul.sourceforge.net/ 11 12 This program is free software; you can redistribute it and/or modify 13 it under the terms of the GNU General Public License as published by 14 the Free Software Foundation; either version 2 of the License, or 15 (at your option) any later version. Alternatively, if your project 16 is incompatible with the GPL, I will probably agree to requests 17 for permission to use the terms of any other license. 18 19 This program is distributed in the hope that it will be useful, but 20 WITHOUT ANY WARRANTY WHATSOEVER. 21 22 A full copy of the GNU General Public License should be in the file 23 "COPYING" provided with this distribution; if not, see: 24 http://www.gnu.org/ 25 26 ********************************************************************** 27 28 Synopsis: Wrappers around the routines for handling populations 29 and performing GA operations. 30 31 **********************************************************************/ 32 33 #ifndef GA_INTRINSICS_H_INCLUDED 34 #define GA_INTRINSICS_H_INCLUDED 35 36 /* 37 * Includes 38 */ 39 #include "gaul.h" 40 41 #if HAVE_SLANG == 1 42 #include <slang.h> 43 #endif 44 45 /* 46 * Function prototypes. 47 */ 48 49 /* 50 boolean ga_slang_seed(population *pop, entity *adam); 51 boolean ga_slang_select_one(population *pop, entity **mother); 52 boolean ga_slang_select_two(population *pop, entity **mother, entity **father); 53 entity *ga_slang_adapt(population *pop, entity *child); 54 void ga_slang_crossover(population *pop, entity *father, entity *mother, entity *daughter, entity *son); 55 void ga_slang_mutate(population *pop, entity *father, entity *son); 56 void ga_slang_replace(population *pop, entity *child); 57 */ 58 boolean ga_intrinsic_sladd(void); 59 60 #endif /* GA_INTRINSICS_H_INCLUDED */ 61 62