Skip to content

MinClaims

cicada edited this page Dec 7, 2022 · 7 revisions

title: MinClaims permalink: /MinClaims/

discrete_alloc function, argument 8: MinClaims

definition

MinClaims is the eigth argument of the discrete_alloc function.

This argument needs to refer to a container with as subitems attributes for each land use type.

These attributes definethe minimal amount of land units that need to be allocated for the land use type per region.

The values unit for these attributes is the number of land units. The domain units of these attributes are the domain units of the regions for which the claims are available.

applies to

The values unit of the each MinClaim attribute with value type: uint32

conditions

The names of the MinClaims attributes need to match with the values of the TypeNames argument.

since version

5.15

example

container region {    unit p1: nrofrows = 1;    unit p2: nrofrows = 2; } container claim_source {    unit      Meter      := BaseUnit('m', float32);    unit      Ha         := 10000.0 * Meter * Meter;    parameter nrHaPerCel := 1[claim_sources/Ha];        container p1    {       attribute Nature_min (region/p1) : [12];       attribute Living_min (region/p1) :  [5];    }    container p2    {        attribute Working_min (regionMaps/p2): [6,2];    }  }  container claims_min: Using = "claim_source"  {     attribute Living  (region/p1) := uint32(p1/Living_min  / nrHaPerCel);     attribute Working (region/p2) := uint32(p2/Working_min / nrHaPerCel);     attribute Nature  (region/p1) := uint32(p1/Nature_min  / nrHaPerCel); }

Clone this wiki locally