Result of Spatex.Region.random_region/2: one random partition of the areas.
labels- region of each area,0..n_regions-1in construction order;nilwhen the request was infeasible.regions- the areas (0-based positions) of each region, in the order spopt lists them (construction order; area order inside a region is not meaningful).[]when infeasible.n_regions- number of regions (0when infeasible).feasible-falsewhen no contiguous solution was found inmaxiterattempts (spopt'sfeasible = False, with emptyregions).attempts- attempts used (always1without a graph).seed- the seed used.
Summary
Types
@type t() :: %Spatex.Region.RandomRegion{ attempts: pos_integer(), feasible: boolean(), labels: [non_neg_integer()] | nil, n_regions: non_neg_integer(), regions: [[non_neg_integer()]], seed: non_neg_integer() }