repeatSim: repeatSim function

Description Usage Arguments Details

View source: R/OptimizeByLOESS.R

Description

Utility function for optimizeByLOESS Run a simulation in the vicinity of a previous simulation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
repeatSim(
  parmRow,
  replication,
  radius = 0.02,
  initializeFunc,
  productPipeline,
  populationImprovement,
  targetBudget,
  bsp,
  seed = NULL
)

Arguments

parmRow

Vector resulting from getParmsResponse and that contains parameters for the simulation to be repeated

replication

Integer replication

radius

Real radius around which to sample the budget so it's not an _exact_ repeat

initializeFunc

Function for runBreedingScheme

productPipeline

Function for runBreedingScheme

populationImprovement

Function for runBreedingScheme

targetBudget

Real how much to spend total. See CostControlFile

bsp

List breeding scheme parameters

seed=NULL

Integer seed to initialize pseudo-random number generator

Details

Sample the budget and run a simulation close to a previous one. Useful to rerun where the prediction is particularly high (we need to know if that prediction is for real) or where the standard error is particularly high (we need more info in that vicinity)


jeanlucj/AlfSimHlpR documentation built on Nov. 7, 2021, 5:10 p.m.