fieldopt-core 0.2.0

Field-survey design under real field cost: travel matrices, GRASP routing of field work (TSP/VRP), spatially balanced sampling (local pivotal method), Horvitz-Thompson estimation with local-mean variance, and cost-aware allocation. Pure Rust, no dependencies.
Documentation

fieldopt-core

Field-survey design under real field cost, in pure Rust with no dependencies:

  • Travel matrices from coordinates (great-circle or Euclidean), or supplied by the user from a road network (for example OSRM).
  • Routing of field work with GRASP (randomised greedy construction, 2-opt and Or-opt local search) for one tour or several routes under a maximum length and number of stops (optimal split of the giant tour, Prins 2004), with a lower bound and the gap to it.
  • Spatially balanced sampling with the local pivotal method (Grafström, Lundström and Schelin 2012) and size-proportional inclusion probabilities.
  • Design-based estimation: Horvitz-Thompson total with the local-mean variance estimator (Grafström and Schelin 2014) and the simple-random-sampling variance as a reference.
  • Cost-aware allocation across strata or frames: minimum cost for a target variance, or minimum variance for a budget (Cochran 1977).

Every randomised step is reproducible from a seed. The crate is the engine of the R package fieldopt (CAST Lab, Universidade Federal de Pernambuco) and can be used on its own.

[dependencies]
fieldopt-core = "0.1"

See the crate documentation for an end-to-end example (select segments, route the field work, estimate).

Version 0.2 adds the pieces an area-frame or dual-frame survey needs:

  • spatial: order of units along a Hilbert curve and systematic PPS sampling along it, as independent interpenetrating replicates for design-based variance estimation.
  • dualframe: Hartley's dual-frame allocation (area + list with overlap): cost-optimal sample sizes in each frame and the optimal mixing weight theta, or the screening design (theta = 0), for a target variance or a budget, with design effects.
  • twostage: Cochran's two-stage allocation with the cost function c1 n + c2 n m: optimal secondary units per primary unit and the number of primary units for a target variance or a budget.

License

GPL-3.0-or-later. © CAST Lab, Universidade Federal de Pernambuco.