Wraps the DEoptim fit that was previously written inline in LandMine.Rmd. Defaults reproduce that fit exactly.

landmine_optim_calibrate(
  pixelSize = 240,
  n = 1000L,
  file = tempfile(fileext = ".tif"),
  fireSizesHa = c(50, 200, 600, 1500, 3000),
  fireSizes = NULL,
  desiredPerimeterArea = 0.003,
  lower = c(-2, -3, -3, -3, 1, 3.5, 0.75),
  upper = c(-0.1, -0.5, -0.5, -1, 3.5, 5, 1),
  NP = NULL,
  itermax = 200L,
  VTR = 0.001,
  strategy = 6L,
  cl = NULL,
  nodes = NULL,
  seed = NULL,
  objective = c("andison", "sn"),
  crnSeed = 1L,
  replicates = 1L,
  paramsFile = NULL
)

Arguments

pixelSize, n, file

Passed to landmine_optim_landscape().

fireSizesHa

Target fire sizes in hectares, converted to pixels for the current pixelSize by landmine_optim_fireSizes(). Defaults sit inside the 10–3,000 ha range Andison fitted.

fireSizes

Target fire sizes in pixels. Normally NULL; supply it only to reproduce a historical fit that was specified in pixels, and note that a pixel-count vector means a different physical fire at each resolution.

desiredPerimeterArea

Target perimeter-to-area ratio (m/m^2); objective = "sn" only.

lower, upper

Search bounds for the 7 parameters.

NP

DEoptim population size. Defaults to the number of cluster nodes.

itermax, VTR, strategy

Passed to DEoptim::DEoptim.control().

cl

An existing cluster, or NULL to build one from nodes.

nodes

Node specification for landmine_optim_clusterSetup().

seed

Optional integer seed, set before cluster creation so the per-worker RNG streams are reproducible. Note that reproducibility also requires NP to be held fixed, since the stream count follows the number of workers.

objective

Which objective to optimise. "andison" (default) uses landmine_optim_fitAndison(), which fits the shape-vs-area relationship and the remnant island fractions Andison (1996) reported. "sn" uses the original landmine_optim_fitSN(), retained so historical fits can be reproduced.

crnSeed

Passed to landmine_optim_fitAndison() as common random numbers. Strongly recommended: the objective is stochastic, and without it the optimiser compares parameter vectors evaluated against different random draws.

replicates

Passed to landmine_optim_fitAndison(): evaluations to average per fire size. The island statistic is highly variable between draws, so replicates > 1 buys discrimination at linear cost. objective = "andison" only.

paramsFile

Optional path to a calibration CSV; if given, the best parameters found are appended to it.

Value

The DEoptim result object.

Note

The objective is stochastic, so treat any single fit as one draw rather than a point estimate, and pass crnSeed. The original objective (landmine_optim_fitSN()) did not identify the parameters at all: in 43 repeat fits recorded in LandMine_DEoptim_params.csv, four of seven scattered over more than 90% of their search interval, and repeat solutions proved statistically indistinguishable from one another – and from some randomly drawn parameter vectors. objective = "andison" adds constraints to address that; verify identifiability again after any change to the objective rather than assuming it.