Decision Support Tools
Why use prioritizr?
Systematic conservation planning requires sophisticated decision support tools to identify where conservation actions will be most effective. With limited resources and competing demands on land and sea, planners need software that can optimise complex trade-offs between biodiversity protection, cost-effectiveness, connectivity, climate resilience, and human use. The choice of decision support tool fundamentally shapes the quality, feasibility, and defensibility of spatial plans.
The prioritizr R package is our foundation for systematic conservation planning. We use prioritizr because it combines mathematical rigour with practical flexibility: it uses exact algorithms to guarantee optimal solutions, offers unprecedented flexibility in problem formulation through mixed-integer linear programming, can solve problems extremely fast (often in seconds), and provides advanced features like connectivity penalties and the ability to generate solutions within a specified optimality gap. Its R package format allows seamless integration with our broader analytical workflows, custom data processing pipelines, and the interactive shinyplanr application we deploy with partners worldwide.
The mathematical advantage: Exact optimisation vs heuristics
The fundamental distinction between prioritizr and other conservation planning tools lies in its mathematical approach. prioritizr formulates conservation problems as mixed-integer linear programs (MILP), which are solved using exact mathematical algorithms. This stands in contrast to tools like Marxan that rely on simulated annealing, a heuristic search method.
What this means in practice:
Guaranteed optimality: When prioritizr solves a problem to completion, the solution is mathematically proven to be optimal—no better solution exists given the specified objectives and constraints. Heuristic methods like simulated annealing can only guarantee that they’ve found a “good” solution, but cannot prove whether a better one exists.
Quantified optimality gap: prioritizr allows you to specify an acceptable optimality gap (e.g., 0% for the absolute best solution, or 5% to allow solutions within 5% of optimal). The solver then works systematically to find a solution meeting this criterion. This provides scientific transparency and allows planners to balance solution quality against computation time for large problems.
Reproducibility: Exact algorithms produce the same solution every time for a given problem formulation, enhancing scientific reproducibility and transparency in decision-making. Heuristic methods produce different solutions on each run, requiring multiple runs and careful interpretation of result variability.
No parameter tuning: Simulated annealing and other heuristics require careful tuning of algorithmic parameters (cooling schedules, iteration counts, etc.) to achieve feasible solutions. prioritizr’s MILP solvers require no such tuning—the mathematical formulation directly ensures feasibility when solutions exist.
This mathematical rigour is particularly important when spatial plans must withstand scientific scrutiny, legal challenges, or international review processes. The ability to demonstrate that a solution is provably optimal—or quantify exactly how close it is to optimal—provides a level of defensibility that heuristic approaches cannot match.
Speed and scalability
Despite the mathematical complexity of exact optimisation, prioritizr is remarkably fast. Modern MILP solvers (particularly commercial solvers like Gurobi and CPLEX, which prioritizr supports alongside open-source alternatives) employ sophisticated algorithms that can solve large-scale conservation problems in seconds to minutes.
Flexibility and advanced features
prioritizr offers exceptional flexibility in problem formulation, going well beyond the capabilities of traditional conservation planning software:
1. Multiple problem types and objectives:
- Minimum set problems (minimise cost while meeting targets)
- Maximum coverage problems (maximise coverage within a budget)
- Maximum utility problems (maximise overall benefit)
- Maximum features problems (protect maximum number of features)
- Minimum largest shortfall problems (minimise the largest target shortfall)
This flexibility allows planners to frame questions differently depending on the context: “What’s the cheapest way to meet our targets?” versus “What’s the most biodiversity we can protect with this budget?”
2. Explicit connectivity and spatial structure:
- Built-in penalties for boundary length (favouring compact, connected solutions)
- Explicit connectivity constraints that can link planning units based on functional connectivity, larval dispersal, or species movement patterns
- Support for asymmetric connectivity (e.g., directional ocean currents)
These features are essential for our climate-smart planning work, where we design protected area networks that account for species movement and shifts under climate change (Buenafe et al. 2023, Brito-Morales et al. 2022).
3. Multiple zones and allocation:
- Native support for zoning problems where planning units can be assigned to different management categories (e.g., no-take reserves, sustainable use areas, fishing zones)
- This is critical for our multiple-use planning work, where we balance conservation with economic activities like fisheries, tourism, and renewable energy
4. Advanced constraints:
- Locked in/out constraints for existing protected areas or excluded areas
- Neighbour constraints
- Feature contiguity requirements
- Linear/nonlinear constraints on objectives
5. Integration with other analyses:
As an R package, prioritizr integrates seamlessly with other workflows including:
- Spatial data processing (sf, terra)
- Climate data analysis (hotrstuff)
- Economic valuation of ecosystem services
- Our own spatialplanr package for streamlined access to global datasets
This integration enables our team to develop sophisticated, data-driven planning workflows that would be impossible with standalone, closed-source software.
6. Transparency and trust:
- Clear mathematical formulation makes objectives and trade-offs explicit
- Results are reproducible and defensible
- Stakeholders can understand what drives the solution (which features or constraints are most influential)
