convert ANSI C to C#

  • Thread starter Thread starter valko
  • Start date Start date
thank you Iain for your kind response, it is some Genetic Algorithm, it has
some structures like that one for chromosome:
typedef struct{
allele_t *allele; fitness_t *fitness;}chromosome_t; and that one for
Population:typedef struct { int nochromosome; chromosome_t *chromosome;
int chromosome_length; allele_t minimum_allele_value; allele_t
maximum_allele_value; fitness_t *minimum_fitness; fitness_t
*total_fitness; chromosome_t *fittest_chromosome; chromosome_t
*fittest_acceptable_chromosome;}population_t;and some action like this
one:/**********************************************************************
* crossover
**********************************************************************/
inline int crossover( chromosome_t *young_a, chromosome_t *young_b,
const chromosome_t *male, const chromosome_t *female, const int
chromosome_length);cheersValko
 
Back
Top