Function to initialize the simulation. Read the founder genetic architecture and population genetic parameters. Create simulation data structures.

initializeProgram(founderFile, schemeFile, costFile, optimizationFile)

Arguments

founderFile

String name of the text file with parameters governing the founders and the genetic architecture

schemeFile

String name of the text file with parameters governing the variety development pipeline and selection functions

Value

Named list containing the `AlphaSimR` SP file, breedingPop the breeding population, varietyCand an empty pop for variety candidates, phenoRecords an empty tibble for phenotype records

Details

Call this function at the beginning of the simulation

Examples

bsd <- initializeProgram("FounderCtrlFile.txt", "SchemeCtrlFile.txt", "CostsCtrlFile.txt", "OptimizationCtrlFile.txt")
#> Warning: cannot open file 'FounderCtrlFile.txt': No such file or directory
#> Error in file(con, "r"): cannot open the connection