Compute region of positive fitness. This will be the values where fitness is approximately zero.

viable_fitness(bounds, p, x = NULL, log_scale = TRUE, dx = 1)

Arguments

bounds

Matrix of bounds; two columns corresponding to the lower and upper limits, each row corresponds to a trait (the name will be used).

p

Parameters object to use. Importantly, the strategy_default element gets used here.

x

Initial value - If not given, then the value from the default strategy within p is used.

log_scale

Is the parameter naturally on a log scale? If so, this will greatly speed things up. Can be a vector of length `nrow(bounds)`

dx

Amount to step the trait. If log_scale is TRUE, this is on a log scale.

Author

Rich FitzJohn