# 3.3.3. Genetic inheritance

Both functional and neutral loci follow Mendelian inheritance under sexual reproduction. Reproduction is panmictic, which means that all sexually mature individuals can contribute to mating pairs of parents irrespective of their location and phenotype. When a new school is created during the breeding season (see section Reproduction), its two parents are randomly drawn from a multinomial distribution \(M(2, p(t'))\) for 2 trials with a probability vector \(p(t')\) composed of as many elements \(p_i(t')\) as there are schools in the population. The \(i^{th}\) element of \(p_i(t')\) is defined as the relative fecundity of school \(i\) in the population at the initial time step of the breeding season \(t\):

with \(N_{eggs}(i, t)\) the fecundity of school \(i\) and \(\sum_{j \lor s(j) = s(i)} N_{eggs(j, t')}\) the total fecundity of the species \(s(i)\) population at the initial time step of the breeding season \(t\).

For each selected parental school, haploid gametes are assembled by randomly drawing one of the two alleles at each locus to represent allelic segregation during meiosis. This is done under the assumption of no linkage between loci, i.e. independence between loci, so that alleles recombine freely. New schools receive at each functional and neutral locus one allele from both chosen parents by randomly picking a haploid gamete for each of them.