Specify a range of percentages that are allowable for the stages. Function will sample within those percentages and generate a consistent scheme to test. For the stage that gets genotyped, the budget is forced to be the sum of the genotyping + trialling costs.

sampleEntryNumbers(bsp, targetBudget, percentRanges, nAttempts = 50)

Arguments

bsp

A list of objects to combine with the species and population parameters. bsp is short for breeding sheme parameters

targetBudget

Numeric value that you want the budget adjusted to

percentRanges

Numeric matrix with nStages+1 rows and two columns. Columns are min and max percentage of budget. Rows are costs for crossing, genotyping, trialing each stage.

nAttempts

Integer maximum number of attempts to sample percentages and have them follow the rules of stages becoming progressively smaller.

Value

A revised bsp with the sizes of the stages within the percentage ranges specified.

Details

Call this function after running specifyCosts.

Examples