Header And Logo

| The world's most advanced open source database.


geqo_copy.h File Reference

#include "optimizer/geqo.h"
Include dependency graph for geqo_copy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void geqo_copy (PlannerInfo *root, Chromosome *chromo1, Chromosome *chromo2, int string_length)

Function Documentation

void geqo_copy ( PlannerInfo root,
Chromosome chromo1,
Chromosome chromo2,
int  string_length 

Definition at line 45 of file geqo_copy.c.

References i, Chromosome::string, and Chromosome::worth.

Referenced by geqo_selection(), and spread_chromo().

    int         i;

    for (i = 0; i < string_length; i++)
        chromo1->string[i] = chromo2->string[i];

    chromo1->worth = chromo2->worth;