Mutate the given chromosome using the mutation method described in the given parameters.
DLL_EXPORT void mutateChromosome( struct parameters * params, struct chromosome * chromo )
Stores general evolutionary and chromosome parameters used by the CGP-Library.
struct parameters
Displays the given chromosome to the terminal / command prompt in a human readable format.
DLL_EXPORT void printChromosome( struct chromosome * chromo, int weights )
Prints the input output pairs held by a dataSet structure to the terminal.
DLL_EXPORT void printDataSet( struct dataSet * data )
Prints the given parameters to the screen in a human readable format.
DLL_EXPORT void printParameters( struct parameters * params )
Removes all of the inactive nodes from the given chromosome.
DLL_EXPORT void removeInactiveNodes( struct chromosome * chromo )
Repeatedly applies CGP to the given task.
DLL_EXPORT struct results* repeatCGP( struct parameters * params, struct dataSet * data, int numGens, int numRuns )
Resets all of the chromosome nodes to output zero.
DLL_EXPORT void resetChromosome( struct chromosome * chromo )
Stores the best chromosome found on each run when using repeatCGP
struct results
Applies CGP to the given task.
DLL_EXPORT struct chromosome* runCGP( struct parameters * params, struct dataSet * data, int numGens )
Saves the given chromosome to a file which can used to initialise new chromosomes.
DLL_EXPORT void saveChromosome( struct chromosome * chromo, char const * fileName )
Saves the given chromosome to a graphviz .dot file.
DLL_EXPORT void saveChromosomeDot( struct chromosome * chromo, int weights, char const * fileName )
Saves the given chromosome to a latex .tex file for visulisation and inclusion in written workes.
DLL_EXPORT void saveChromosomeLatex( struct chromosome * chromo, int weights, char const * fileName )
Saves the given dataSet to a file which can be read using initialiseDataSetFromFile.
DLL_EXPORT void saveDataSet( struct dataSet * data, char const * fileName )
Saves the given results to a csv file.
DLL_EXPORT void saveResults( struct results * rels, char const * fileName )
Sets the arity of the chromosome nodes in the given parameters.
DLL_EXPORT void setArity( struct parameters * params, int arity )
Sets the fitness of the chromosome using the fitness function given in the parameters
DLL_EXPORT void setChromosomeFitness( struct parameters * params, struct chromosome * chromo, struct dataSet * data )
Sets the connection weight range in the given parameters.
DLL_EXPORT void setConnectionWeightRange( struct parameters * params, double weightRange )
Set custom fitness function.
DLL_EXPORT void setCustomFitnessFunction( struct parameters * params, double (*fitnessFunction)(struct parameters *params, struct chromosome *chromo, struct dataSet *data), char const * fitnessFunctionName )
Sets custom reproduction scheme.
DLL_EXPORT void setCustomReproductionScheme( struct parameters * params, void (*reproductionScheme)(struct parameters *params, struct chromosome **parents, struct chromosome **children, int numParents, int numChildren), char const * reproductionSchemeName )
Sets custom selection scheme.
DLL_EXPORT void setCustomSelectionScheme( struct parameters * params, void (*selectionScheme)(struct parameters *params, struct chromosome **parents, struct chromosome **candidateChromos, int numParents, int numCandidateChromos), char const * selectionSchemeName )
Sets the evolutionary strategy in the given parameters.
DLL_EXPORT void setEvolutionaryStrategy( struct parameters * params, char evolutionaryStrategy )
Sets the lambda value in the given parameters.
DLL_EXPORT void setLambda( struct parameters * params, int lambda )
Sets the mu value in the given parameters.
DLL_EXPORT void setMu( struct parameters * params, int mu )
Sets the mutation rate in the given parameters.
DLL_EXPORT void setMutationRate( struct parameters * params, double mutationRate )
Sets the mutation method used when mutating chromosomes.
DLL_EXPORT void setMutationType( struct parameters * params, char const * mutationType )
Sets the number of chromosome inputs in the given parameters.
DLL_EXPORT void setNumInputs( struct parameters * params, int numInputs )
Sets the number of chromosome nodes in the given parameters.
DLL_EXPORT void setNumNodes( struct parameters * params, int numNodes )
Sets the number of chromosome outputs in the given parameters.
DLL_EXPORT void setNumOutputs( struct parameters * params, int numOutputs )
Sets the number of threads in the given parameters.
DLL_EXPORT void setNumThreads( struct parameters * params, int numThreads )
Sets the seed used by the random number generator in CGP-Library.
DLL_EXPORT void setRandomNumberSeed( unsigned int seed )
Sets the recurrent connection probability in the given parameters.
DLL_EXPORT void setRecurrentConnectionProbability( struct parameters * params, double recurrentConnectionProbability )
Sets whether shortcut connections are used in the given parameters.
DLL_EXPORT void setShortcutConnections( struct parameters * params, int shortcutConnections )
Sets the target fitness used when running CGP.
DLL_EXPORT void setTargetFitness( struct parameters * params, double targetFitness )
Sets the frequency of the updates to the user when using runCGP.
DLL_EXPORT void setUpdateFrequency( struct parameters * params, int updateFrequency )