oscar_colony.optimise.surplus_summary.create_surplus_summary#

oscar_colony.optimise.surplus_summary.create_surplus_summary(required_n_per_genotype, n_matings_per_scheme, offspring_per_scheme)[source]#

Create a summary of the total and surplus numbers for the given combination of breeding schemes.

Parameters:
  • required_n_per_genotype (dict[tuple[Genotype, ...], int | SexSplit]) – Required number of individuals per genotype. Each value is either an int (where male / female isn’t requested), or a SexSplit of (n_males, n_females).

  • n_matings_per_scheme (dict[BreedingScheme, int]) – Optimal number of matings per breeding scheme

  • offspring_per_scheme (dict[BreedingScheme, ExpectedOffspring]) – The estimated number of offspring produced per mating of each breeding scheme

Returns:

Summary of total and surplus numbers

Return type:

SurplusSummary

Raises:

ValueError – If the plan doesn’t reach the required number of individuals for any genotype - in total, or of males / females