⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaul.h

📁 http://gaul.sourceforge.net/ 这里大部分人讨论的是在Matlab里实现GA的toolbox.以上为一个GA的C语言的软件包.如果你想利用GA做优化算法,非常有用.而且有
💻 H
📖 第 1 页 / 共 3 页
字号:
FUNCPROTO void	ga_mutate_double_singlepoint_drift( population *pop,                                          entity *father, entity *son );FUNCPROTO void	ga_mutate_double_singlepoint_randomize( population *pop,                                              entity *father, entity *son );FUNCPROTO void	ga_mutate_double_multipoint(population *pop, entity *father, entity *son);FUNCPROTO void	ga_mutate_double_allpoint(population *pop, entity *father, entity *son);/* * Functions located in ga_seed.c: * (Genesis operators) */FUNCPROTO boolean	ga_seed_boolean_random(population *pop, entity *adam);FUNCPROTO boolean ga_seed_boolean_zero(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_integer_random(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_integer_zero(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_double_random(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_double_zero(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_double_random_unit_gaussian(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_char_random(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_printable_random(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_bitstring_random(population *pop, entity *adam);FUNCPROTO boolean	ga_seed_bitstring_zero(population *pop, entity *adam);/* * Functions located in ga_replace.c: * (Replacement operators) */FUNCPROTO void	ga_replace_by_fitness(population *pop, entity *child);/* * Functions located in ga_utility.c: * (Miscellaneous support functions) */FUNCPROTO void    ga_diagnostics( void ); FUNCPROTO int	ga_get_major_version( void );FUNCPROTO int	ga_get_minor_version( void );FUNCPROTO int	ga_get_patch_version( void );/* ga_genesis() is deprecated! Use ga_genesis_integer() instead. */FUNCPROTO population *ga_genesis( const int               population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );/* ga_genesis_int() is deprecated! Use ga_genesis_integer() instead. */FUNCPROTO population *ga_genesis_int( const int           population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO population *ga_genesis_integer( const int           population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO population *ga_genesis_boolean( const int               population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO population *ga_genesis_char( const int               population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO population *ga_genesis_double( const int               population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO population *ga_genesis_bitstring( const int               population_size,                        const int               num_chromo,                        const int               len_chromo,                        GAgeneration_hook       generation_hook,                        GAiteration_hook        iteration_hook,                        GAdata_destructor       data_destructor,                        GAdata_ref_incrementor  data_ref_incrementor,                        GAevaluate              evaluate,                        GAseed                  seed,                        GAadapt                 adapt,                        GAselect_one            select_one,                        GAselect_two            select_two,                        GAmutate                mutate,                        GAcrossover             crossover,                        GAreplace               replace,			vpointer		userdata );FUNCPROTO entity  *ga_allele_search(      population      *pop,                                const int       chromosomeid,                                const int       point,                                const int       min_val,                                 const int       max_val,                                 entity          *initial );FUNCPROTO void ga_population_dump(population *pop);FUNCPROTO void ga_entity_dump(population *pop, entity *john);/* * Functions located in ga_stats.c: * (Statistics functions) */FUNCPROTO boolean ga_fitness_mean( population *pop, double *average );FUNCPROTO boolean ga_fitness_mean_stddev( population *pop,                             double *average, double *stddev );FUNCPROTO boolean ga_fitness_stats( population *pop,                          double *max, double *min,                          double *mean, double *median,                          double *variance, double *stddev,                          double *kurtosis, double *skew );/* * Functions located in ga_compare.c: * (Entity comparison functions) */FUNCPROTO double ga_compare_char_hamming(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_char_euclidean(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_integer_hamming(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_integer_euclidean(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_double_hamming(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_double_euclidean(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_boolean_hamming(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_boolean_euclidean(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_bitstring_hamming(population *pop, entity *alpha, entity *beta);FUNCPROTO double ga_compare_bitstring_euclidean(population *pop, entity *alpha, entity *beta);/* * Functions located in ga_rank.c: * (Entity comparison functions) */FUNCPROTO int ga_rank_fitness(population *alphapop, entity *alpha, population *betapop, entity *beta);/********************************************************************** * Include remainder of this library's headers. * These should, mostly, contain private definitions etc. * But they currently contain almost everything. **********************************************************************/#include "gaul/ga_core.h"		/* Private aspects of GAUL. */#if HAVE_SLANG==1#include "gaul/ga_intrinsics.h"         /* GAUL's S-Lang interface. */#endif#endif	/* GAUL_H_INCLUDED */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -