Description Usage Arguments Value
View source: R/testParameterOptimality.R
Function to return the optimality of a parameter vector for a breeding scheme given a simulation environment
1 2 | testParameterOptimality(sEnv = NULL, schemeFileName, parmList,
objectiveFunc, budget = 1000)
|
sEnv |
the environment that BSL functions operate in. This environment should be fresh from defineSpecies, defineVariances, and defineCosts. If NULL, the default |
schemeFileName |
source file that holds the script of the breeding scheme. The scheme should return a value to be maximized in a variable called |
parmList |
(preferably) named list with values of parameters characterizing the breeding scheme |
objectiveFunc |
a function that can be applied to a BSL simulation environment to return a value showing the realized performance of the breeding scheme |
budget |
the maximum budget that is allowed for the breeding scheme |
Two-object list: objective
is the objective function value of the breeding scheme given the simulation environment and the parameter vector and totalCost
is the budget used by the breeding scheme. If the parameter vector causes the scheme to exceed the given budget, objective
=NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.