| sdleiF | ||
| int fitfun0 .. 1 (false/true) default=0 | Scale fitness?Enables fitness scaling. | |
| float fitm0 .. 10 default=2.0 | Shift coefficientLower threshold: how many standard deviations below average? (avg - n * stddev) - used for fitness shifting | |
| float fitma1 .. 10 default=2.0 | Scaling coefficientThe best genotype is as many times better than the average one. | |
| multiline string fitness | Fitness formula(For advanced users) | |
| string fitness_allowed_objs | Fitness formula allowed objectsFor advanced users: a list of comma-separated names of object classes allowed in the fitness formula. Empty list means that there are no restrictions and all object classes are allowed. | |
| int fitness_is_valid RO0 .. 1 (false/true) | Fitness formula is valid(valid means can be compiled) | |
| int fitness_step_limit0 .. 1000000000 default=0 | Fitness formula step limit(For advanced users) | |
| float fitness_time_limit0 .. 1e+09 default=0.0 | Fitness formula time limit(For advanced users) | |
| int genotype_instances RO | Total number of genotype instancesA sum of Genotype.instances values of all Genotypes in this gene pool. | |
| int index RO | gene pool index | |
| object iterator RO | iterator | |
| string name | Group name | |
| int size RO | Number of genotypesIn standard.expdef, this is equivalent to the number of unique genotypes. Standard experiment definition uses the Genotype.instances field to indicate that some genotypes exist in multiple instances despite having only one item in the group. Other experiment definitions may create multiple copies of the same genotype. | |
| int totalpop RO | Total number of genotype instancesPlease use 'genotype_instances' instead of this field. | |
| snoitcnuF | ||
| function add(untyped Geno_object_or_string_genotype)returns Genotype | Add a genotypeCreates a new Genotype from the supplied Geno or string. Returns the created Genotype. | |
| function addGeno(Geno)returns Genotype | Make a Genotype from GenoCreates a new Genotype from the supplied Geno object. Returns the created Genotype. Deprecated. Use the more versatile GenePool.add() instead of this function. | |
| function best()returns Genotype | Returns the genotype object having the highest fitness. Unrated genotypes (with instances=0) are ranked lower than those having at least one instance. | |
| function clear()doesn't return a value | Delete all genotypes. GenePools[group].clear() is equivalent to GenePools.clearGroup(group) | |
| function createFromGeno(Geno)returns Genotype | same as addGeno (to comply with createFrom... convention) Deprecated. Use the more versatile GenePool.add() instead of this function. | |
| function createFromString(string genotype)returns Genotype | Uses the supplied string argument. Deprecated. Use the more versatile GenePool.add() instead of this function. | |
| function delete(untyped genotype_object_or_index)doesn't return a value | Deletes a genotype. | |
| function deleteOne(untyped genotype_object_or_index)doesn't return a value | Deletes one individual, i.e. decreases its 'instances' and deletes the genotype if the 'instances' goes to 0. | |
| function findGeno(Geno)returns int | Find a Genotype indexFinds the Genotype whose genes are identical to the supplied Geno object. Returns the Genotype index or -1 if not found. Deprecated. Use the more versatile GenePool.findGenotype() instead of this function. | |
| function findGenotype(untyped Genotype_object_or_Geno_object_or_string_genotype)returns Genotype | Find a GenotypeFinds the Genotype whose genes are identical to the supplied Genotype object, Geno object, or genotype string. Returns the Genotype object or null if not found. | |
| function findUID(string uid)returns int | Find a Genotype by UID | |
| function get(int index)returns Genotype | Get a Genotype object | |
| function getStatsAvg(string field_name)returns float | get stats averageRetrieves data from stats.* object. Can only be used for fields covered by stats.* (subset of Genotype fields). | |
| function getStatsMax(string field_name)returns float | get stats maximumRetrieves data from stats.* object. Can only be used for fields covered by stats.* (subset of Genotype fields). | |
| function getStatsMin(string field_name)returns float | get stats minimumRetrieves data from stats.* object. Can only be used for fields covered by stats.* (subset of Genotype fields). | |
| function mergeInstances()doesn't return a value | Merge instancesMerges instances of the same genotype. | |
| function random()returns Genotype | Returns a random genotype object disregarding fitness value, but taking into account 'instances'. Unrated genotypes (with instances=0) are treated as if they had instances=1. | |
| function randomLikeGeno(float minimum_similarity, Geno target)returns Genotype | Returns a random genotype index similar to the target genotype. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. Read about details: http://www.framsticks.com/bib/Komosinski-et-al-2001 http://www.framsticks.com/bib/Komosinski-and-Kubiak-2011 http://www.framsticks.com/bib/Komosinski-2016 | |
| function refreshGUI()doesn't return a value | Refresh GUINotify list content changed | |
| function revroulette()returns Genotype | Returns a randomly selected, reverse fitness-proportional genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. | |
| function roulette()returns Genotype | Returns a randomly selected, fitness-proportional genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. | |
| function rouletteLikeGeno(float minimum_similarity, Geno target)returns Genotype | Returns a random genotype similar to the target genotype, fitness-proportional. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. Read about details: http://www.framsticks.com/node/795 http://www.framsticks.com/bib/Komosinski-and-Kubiak-2011 http://www.framsticks.com/bib/Komosinski-2016 | |
| function splitInstances()doesn't return a value | Split instancesSplits genotype instances. | |
| function tournament(int genotypes_in_tournament)returns Genotype | Returns a tournament winner genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. | |
| function worst()returns Genotype | Returns the genotype object having the lowest fitness. Unrated genotypes (with instances=0) are ranked lower than those having at least one instance. | |
| Global context |