add deployment strategy to maintain consistent seeding density #17
+148
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main method added is
match_density
.The method essentially varies the number of locations, and proportion of location area seeding to find a combination that yields are density close to the target. It does not return combinations that would force grid resizes.
Unfortunately, this can also yield unexpected combinations.
Suppose we maintain the same target density whilst increasing the number of corals to be seeded. Intuitively, we might expect the suggested number of locations used in the deployment area to increase. However, we may find a larger proportion of location to be seeded that yields a density closer to our target density the including more locations in the deployment.
For example:
Choosing the top 5 locations with a seeding proportion area of 0.4 may yield a close seeding density to our target then choosing the top 20 locations with a seeding area of 0.1.
To avoid this behaviour and force more locations to be selected as the number of corals to be deployed increase lower the parameter
max_prop