# prioritizr 4.0.2.6 Unreleased

• Fix bug the feature_representation function that caused the “amount_held” column to have NA values instead of the correct values. This bug only affected problems with multiple zones.

# prioritizr 4.0.2.5 Unreleased

• Fix bug in argument validation code for the category_layer function that it this function to incorrectly throw an error claiming that the input argument to x was invalid when it was in fact valid. This bug is encountered when different layers the argument to x have non-NA values in different cells.

# prioritizr 4.0.2.4 Unreleased

• Update instructions for activating Gurobi licenses on remote machines (#98).

# prioritizr 4.0.2.3 Unreleased

• The add_contiguity_constraints function now uses sparse matrix formats internally for single-zone problems. This means that the constraints can be applied to single-zoned problem with many more planning units.

# prioritizr 4.0.2.2 Unreleased

• The add_connectivity_penalties function now uses sparse matrix formats internally for single-zone problems. This means that connectivity penalties can be applied to single-zoned problem with many more planning units.

# prioritizr 4.0.2.1 Unreleased

• Update warning text when compiling problems that contain (i) objective functions that do not use targets and (ii) targets (#93).
• Update documentation for the add_max_utility_objective and add_max_cover_objective functions to make it clearer that they do not use targets (#94).

# prioritizr 4.0.2 (released) 2018-06-28

• Release candidate for CRAN.

# prioritizr 4.0.1.6 Unreleased

• Fix bug in add_locked_in_constraints and add_locked_out_constraints that incorrectly threw an error when using logical locked data (i.e. TRUE/FALSE) because it incorrectly thought that valid inputs were invalid.
• Fix bug in add_locked_in_constraints, add_locked_out_constraints, and add_manual_locked_constraints where solving the same problem object twice resulted in incorrect planning units being locked in or out of the solution (#92).
• Added unit tests for objectives, constraints, decisions, targets, and penalties to ensure that solving problems twice does not result in different solutions.

# prioritizr 4.0.1.5 Unreleased

• Fix bug in feature_abundances that caused the solve function to throw an error when attempting to solve problems with a single feature.
• Fix bug in add_cuts_portfolio that caused the portfolio to return solutions that were not within the specified optimality gap when using the Gurobi solver.
• Add the ability to specify the search pool method and number of solutions to the add_pool_portfolio function.

# prioritizr 4.0.1.4 Unreleased

• The feature_representation function now allows numeric solutions with attributes (e.g. when output by the solve function) when calculating representation statistics for problems with numeric planning unit data (#91).
• The add_manual_targets function threw a warning when some features had targets equal to zero. This resulted in an excessive amount of warnings. Now, warnings are thrown for targets that are less then zero.
• The problem function sometimes incorrectly threw a warning that feature data had negative values when the data actually did not contain negative values. This has now been addressed.

# prioritizr 4.0.1.3 Unreleased

• The problem function now allows negative values in the cost and feature data (and throws a warning if such data are detected).
• The add_absolute_targets and add_manual_targets functions now allow negative targets (but throw a warning if such targets are specified).
• The compile function throws an error if a problem is compiled using the expanded formulation with negative feature data.
• The add_absolute_targets function now throws an warning—instead of an error—if the specified targets are greater than the feature abundances in planning units to accommodate negative values in feature data.

# prioritizr 4.0.1.2 Unreleased

• Fix add_max_cover_objective in prioritizr vignette (#90).

# prioritizr 4.0.1.1 Unreleased

• The add_relative_targets documentation now makes it clear that locked out planning units are included in the calculations for setting targets (#89).
• The add_loglinear_targets function now includes a feature_abundances parameter for specifying the total amount of each feature to use when calculating the targets (#89).

# prioritizr 4.0.1 (released) 2018-05-26

• Release candidate for CRAN.

# prioritizr 4.0.0.12 Unreleased

• New feature_abundances function to calculate the total amount of each feature in the planning units (#86).

# prioritizr 4.0.0.11 Unreleased

• Fix some equations in the documentation (#83).

# prioritizr 4.0.0.10 Unreleased

• Add version requirements for assertthat and tibble (#82).

# prioritizr 4.0.0.9 Unreleased

• Fix minor typos in the Gurobi Installation Guide and update the Management Zones tutorial.

# prioritizr 4.0.0.8 Unreleased

• Add instructions for setting up the Gurobi Academic license on a computer that it is not connected to a university computer network using a computer that is on an academic network (#81). For example, these instructions could be used to set up Gurobi on a cloud-based system using a laptop computer that is connected a university’s wireless network.

# prioritizr 4.0.0.7 Unreleased

• The add_cuts_portfolio function uses the Gurobi solution pool to generate unique solutions within a specified gap of optimality when tasked with solving problems with Gurobi (version 8.0.0+; #80).

# prioritizr 4.0.0.6 Unreleased

• New add_pool_portfolio function to generate a portfolio of solutions using the Gurobi solution pool (#77).

# prioritizr 4.0.0.5 Unreleased

• The boundary_matrix function now has the experimental functionality to use GEOS STR trees to speed up processing (#74).
• Solutions obtained from Gurobi that contain binary-type decisions are explicitly rounded to the nearest integer. This is because Gurobi can output solutions to binary problems that contain values which not exactly zero or one (e.g. 0.9999997 using default settings; #78).

# prioritizr 4.0.0.4 Unreleased

• New feature_representation function to how well features are represented in solutions (#73).

# prioritizr 4.0.0.3 Unreleased

• The prioritizrdata package has been listed under Suggests.
• The vignettes in the prioritizrdata package have been moved to this package to make them easier to find.

# prioritizr 4.0.0.2 Unreleased

• Fix issue with the solve function printing superfluous text (#75).

# prioritizr 4.0.0.1 Unreleased

• Minor improvements to the documentation for the problem function.

# prioritizr 4.0.0.0 Unreleased

• Added functionality to build and solve problems with multiple management zones (#14).
• New built-in data sets sim_pu_zones_stack, sim_pu_zones_polygons, and sim_features_zones for exploring conservation problems with multiple management zones.
• New zones function and Zones class to organize data with multiple zones.
• The problem function now accepts Zone objects as arguments for feature to create problems with multiple zones.
• The add_relative_targets and add_absolute_targets functions for adding targets to problems can be used to specify targets for each feature in each zone.
• New add_manual_targets function for creating targets that pertain to multiple management zones.
• The solve function now returns a list of solutions when generating a portfolio of solutions.
• The add_locked_in_constraints and add_locked_out_constraints functions for specifying which planning units are locked in or out now accept matrix arguments for specifying which zones are locked in or out.
• New add_manual_locked_constraints function to manually specify which planning units should or shouldn’t be allocated to specific zones in solutions.
• All functions for adding constraints and penalties now have parameters that specify how they should treat planning units allocate to different zones (using the zones parameter) and specify how they they should be applied (using the data parameter. All of these functions have default arguments that mean that problems with a single zone should have the same optimal solution as problems created in the earlier version of the package.
• The add_feature_weights function can be used to weight different the representation of each feature in each zone.
• The binary_stack, category_layer, and category_vector functions have been provided to help work with data for multiple management zones.
• New Management zones vignette on building and solving problems with multiple management zones.
• Added mention of zones functionality to package DESCRIPTION, summary (in ?prioritizr), and README.
• The Quick Start Guide and Prioritizr Basics vignettes have been consolidated into the prioritizr vignette.
• The marxan_problem has been updated with more comprehensive documentation and to provide more helpful error messages. For clarity, it will now only work with tabular data in the standard Marxan format.

# prioritizr 3.0.3.6 Unreleased

• Fix typo in README and update documentation for add_boundary_penalties (#62).

# prioritizr 3.0.3.5 Unreleased

• Fix bug where add_locked_in_constraints and add_locked_out_constraints throw an exception when used with semi-continuous-type decisions (#59).
• Exception in compile thrown when the same planning unit is locked in and locked out now prints the planning unit indices in a readable format.

# prioritizr 3.0.3.4 Unreleased

• Fix bug where add_locked_in_constraints and add_locked_out_constraints are ignored when using proportion-type decisions (#58).

# prioritizr 3.0.3.3 Unreleased

• Fix bug in predefined_optimization_problem which incorrectly recognized some inputs as invalid when they were in fact valid.
• Addressed NOTE in R CMD check related to proto in Depends.

# prioritizr 3.0.3.2 Unreleased

• Moved proto package from Imports to Depends in DESCRIPTION

# prioritizr 3.0.3.1 Unreleased

• Depends on R version 3.4.0 (avoids ‘patchlevel 0’ NOTE/WARNING in checks)

# prioritizr 3.0.3 (released) 2017-11-22

• Release candidate for CRAN.

# prioritizr 3.0.2.3 Unreleased

• Unit tests that fail when using lpsymphony due to a bug in lpsymphony are now skipped (partially addressing #40).

# prioritizr 3.0.2.2 Unreleased

• add_lpsymphony_solver now throws warnings to alert users to potentially incorrect solutions (partially addressing #40).

# prioritizr 3.0.2.1 Unreleased

• Vignette sizes have been reduced.

# prioritizr 3.0.2 Unreleased

• Release candidate for CRAN. Release postponed due issues on Travis CI.

# prioritizr 3.0.1.1 Unreleased

• Unit tests for add_*_objectives now pass when executed with slow solvers (partially addressing #40).
• compile now works when no solvers are installed (#41).
• Gap arguments in add_*_solvers are now unbounded and can accept values larger than 1 (#44).

# prioritizr 3.0.1 (released) 2017-11-08

• Release candidate for CRAN.

# prioritizr 3.0.0.0 Unreleased

• The add_max_cover_objective function has been renamed to the add_max_utility_objective, because the formulation does not follow the historical formulation of the maximum coverage reserve selection problem (#38).
• The add_max_cover_objective function now follows the historical maximum coverage objective. This fundamentally changes add_max_cover_objective function and breaks compatibility with previous version of prioritizr (#38).
• Modify lpsymphony examples and tests to skip on Linux operating systems.
• Add tests to unit tests that were being skipped in new version of testthat.

# prioritizr 2.0.4.1 Unreleased

• Fix bug with add_lpsymphony_solver causing error when attempting to solve problems.

# prioritizr 2.0.4 Unreleased

• Release candidate for CRAN. Release postponed due to bug report.

# prioritizr 2.0.3.1 Unreleased

• Fix bug when solving problems with numeric vector data that caused an error.
• Fix bug in compiling problems with numeric vector input with rij data containing NA values.
• Added unit tests for solving problems with various input formats.
• Updated package sizes reported in cran-comments.

# prioritizr 2.0.3 Unreleased

• Initial release candidate for CRAN. Release postponed due to bug report.

# prioritizr 2.0.2.9 Unreleased

• Added vignette to record publications that use prioritizr (#35).

# prioritizr 2.0.2.8 Unreleased

• Unit tests now compatible with development version of testthat (#34).

# prioritizr 2.0.2.7 Unreleased

• Fix bug in apply_boundary_penalties and add_connectivity_penalties causing the function to throw an error when the number of boundaries/edges is less than the number of planning units.

# prioritizr 2.0.2.6 Unreleased

• Makevars now compatible with Mac OSX Sierra (#33).

# prioritizr 2.0.2.5 Unreleased

• Fix bug in boundary_matrix calculations (#30).

# prioritizr 2.0.2.4 Unreleased

• Minor tweaks to vignettes.

# prioritizr 2.0.2.2 Unreleased

• Fix documentation for add_max_phylo_objective (#24).
• Update Gurobi Installation vignette.
• Remove prioritizrdata from package Suggests.
• Add shiny and xtable to Suggests for rendering parameters.
• Added code for ScalarParameter and ArrayParameter prototypes to check t that functions for generating widgets have their dependencies installed.
• URLs for lpsymphony on Bioconductor now use the package’s DOI.
• Add more comprehensive tests to portfolios.
• Fix bug when numeric planning unit data and portfolios that caused the solve to throw an error.
• Remove R-devel from AppVeyor testing because it fails for unreproducible reasons.

# prioritizr 2.0.2.1 Unreleased

• Removed shiny functions for now to prep for CRAN release.
• Rebuilt website and documentation.

# prioritizr 2.0.2.0 Unreleased

• Included vignette on Gurobi solver installation and testing.

# prioritizr 2.0.1.0 Unreleased

• Fixed bug where Spatial*DataFrame input to marxan_problem would always use the first column in the attribute table for the cost data. This bug is serious so analysis that used Spatial*DataFrame inputs in marxan_problem should be rerun.
• Added functionality to use feature abundance/occurrence data stored as columns in the planning unit data when constructing problem objects.

# prioritizr 2.0.0.2 Unreleased

• Skip add_cuts_portfolio on Travis.

# prioritizr 2.0.0.1 Unreleased

• Skip add_cuts_portfolio and add_shuffle_portfolio tests on CRAN.

# prioritizr 2.0.0.0 Unreleased

• This version breaks compatibility with previous releases because solutions in data.frame and Spatial*DataFrame objects are now stored in columns named “solution_*" (e.g. “solution_1”) to store multiple solutions.
• Added support for multiple solutions (#23).
• Solutions now contain additional information in stored in the object’s attributes (#24). See README.Rmd for examples on accessing this information.
• Add logical verbose argument to all solvers. This replaces the verbosity argument in add_lpsymphony_solver and add_rsymphony_solver.
• The verbosity of information presented when solving problems using add_lpsymphony_solver and add_rsymphony_solver is reduced.
• Assorted spelling mistakes have been fixed.

# prioritizr 1.0.1.3 Unreleased

• Fix bugs add_absolute_targets and add_relative_targets related to their standardGeneric being incorrectly defined
• Reduce installation size using Dirk Eddelbuettel’s awesome advice: http://dirk.eddelbuettel.com/blog/2017/08/14#009_compact_shared_libraries
• Fix bug in add_corridor_targets when argument connectivities is a list. The elements in the list are assumed to be dsCMatrix objects (aka symmetric sparse matrices in a compressed format) and are coerced to dgCMatrix objects to reduce computational burden. There was a typo, however, and so the objects were coerced to dgCmatrix and not dgCMatrix. This evidently was ok in earlier versions of the RcppArmadillo and/or Matrix packages but not in the most recent versions.

# prioritizr 1.0.1.1 Unreleased

• Add roxygen2 to package SUGGESTS for building vignettes.

# prioritizr 1.0.1.0 Unreleased

• Fix issue where parallel::detectCores() returns NA on some systems preventing users from using the Gurobi solver–even when one thread is specified.

# prioritizr 1.0.0.5 Unreleased

• Fix building issue due to incorrect file order in DESCRIPTION.

# prioritizr 1.0.0.4 Unreleased

• Compatibility with R 3.4.0.
• Replace structure(NULL, ...) with structure(list(), ...).
• Register compiled library files.
• Remove duplicate definition of new_waiver from internal.R.
• Tests check if prioritizrdata package not installed and skip if it isn’t.

# prioritizr 1.0.0.3 Unreleased

• Fix missing links in documentation
• Fix typos in roxygen2 parameters
• Move add_default_decisions and add_default_solver to own help file
• Make add_default_objectives and add_default_targets private functions

# prioritizr 1.0.0.1 Unreleased

• Fix #8.
• Fix bug in add_corridor_constraints that fails to actually add the constraints with argument to connectivity is a list.
• Fix bug in make install` command so that it now actually installs the package.
• Fix link to Joe’s website in the package’s website.

# prioritizr 1.0.0.0 Unreleased

• R interface fully functional.

# prioritizr 0.1.2.9 Unreleased

• Package re-implementation.

# prioritizr 0.1.2 2016-12-01

• Prepare for CRAN submission.