optimizeAgReactivity(
map,
optimization_number = 1,
reactivity_stress_weighting = 1,
fixed_ag_reactivities = rep(NA, numAntigens(map)),
start_pars = rep(0, numAntigens(map)),
reoptimize = FALSE,
number_of_optimizations = 100,
options = list()
)
The acmap object
The optimization number for which to optimize antigen reactivity adjustments
The weighting to apply when calculating how much antigen reactivity changes should additionally contribute to stress in the optimization regime (see details).
A vector of fixed antigen reactivities, use NA values to distinguish the positions you would still like to be optimized.
A vector of starting parameters to use for the optimizer,
you can still supply starting parameters for antigens listed in
fixed_ag_reactivities
but they will be ignored.
Should the map be reoptimized from scratch (slower but more likely to explore other optima) when testing each reactivity adjustment or simply relaxed from it's current coordinates (default)
If reoptimizing from scratch, how many optimization runs should be performed each time.
A named list of additional options to pass to
RacOptimizer.options()
The acmap object is returned with antigen reactivity adjustments
set to the value calculated in the optimizer. This can be queried with
agReactivityAdjustments()
.