budgetToScheme: budgetToScheme function

View source: R/CostOptimization.R

budgetToSchemeR Documentation

budgetToScheme function

Description

Given breeding scheme budget percentages, return numbers of crosses and plots The percentages are for PIC and for allocation to each VDP stage Rules: 1. For PIC, nBreedingProg has to be at least minNBreedingProg 2. Each stage has to have fewer entries than the previous stage If the percentages break the rules budgetToScheme returns a failure The total budget allowed is given by bsd$budget minus location maintenance

Usage

budgetToScheme(percentages, bsd)

Arguments

percentages

Numeric vector with nStages+1 cells which are alloction for PIC and for each stage.

bsd

List of breeding scheme data

Details

Call this function after running specifyCosts.

Value

A revised bsd with the sizes of the stages fitting the percentages

Examples

Assume stages of CET, PYT, UYT, so percentRanges needs 4 rows
The first stage needs more budget because of genotyping and development costs
percentages <- c(0.50, 0.30, 0.10, 0.10)
bsd <- budgetToScheme(percentages=percentages, bsd)


jeanlucj/BreedSimCost documentation built on July 21, 2023, 1:59 a.m.