runWithBudget: runWithBudget function

View source: R/CostOptimization.R

runWithBudgetR Documentation

runWithBudget function

Description

Run one replication of the scheme with specified budget percentages These percentages have to be valid in terms of following rules NOTE: the statements between startValues <- ... and endValues <- define the breeding scheme that is being optimized

Usage

runWithBudget(percentages, bsd, returnBSD = F)

Arguments

percentages

Double vector 1 + nStages with budget percentages for the population improvement cycle and the variety development pipeline

bsd

List of breeding scheme data

returnBSD

Logical if you want to return bsd because this is a one-off rather than being called repeatedly for optimization

Details

Call this function to test out the response of different budgets

Value

Vector with initial and end means and variances

Examples

bsd <- runWithBudget(percentages, bsd)


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