Comments (7)
Hi @BrunoCartu,
Thanks for reaching out! I'll take a look at this and see what I can do.
from prioritizr.
Could you do me a favour and post your session information after loading prioritizr? Specifically, the output from library(prioritizr);sessionInfo()
?
from prioritizr.
Hi @jeffreyhanson, here is my session info:
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] cluster_2.1.0 vegan_2.6-4 lattice_0.20-41 permute_0.9-7 prioritizr_7.2.2
[6] proto_1.0.0 sf_0.9-6 prioritizrdata_0.2.4 raster_3.5-2 sp_1.4-4
loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 plyr_1.8.6 compiler_4.0.2 pillar_1.4.6 libgeos_3.11.0-2
[6] class_7.3-17 remotes_2.3.0 tools_4.0.2 uuid_1.1-0 nlme_3.1-148
[11] lifecycle_0.2.0 tibble_3.0.3 mgcv_1.8-31 pkgconfig_2.0.3 rlang_0.4.11
[16] Matrix_1.2-18 cli_2.0.2 DBI_1.1.0 rstudioapi_0.11 rgdal_1.5-18
[21] parallel_4.0.2 e1071_1.7-4 terra_1.4-11 exactextractr_0.9.0 dplyr_1.0.2
[26] geos_0.2.1 rgeos_0.5-5 generics_0.0.2 vctrs_0.3.4 classInt_0.4-3
[31] grid_4.0.2 tidyselect_1.1.0 glue_1.4.2 R6_2.4.1 fansi_0.4.1
[36] purrr_0.3.4 magrittr_2.0.3 rcbc_0.1.0.9001 splines_4.0.2 MASS_7.3-51.6
[41] codetools_0.2-16 ellipsis_0.3.1 units_0.6-7 assertthat_0.2.1 fasterize_1.0.3
[46] utf8_1.1.4 KernSmooth_2.23-17 wk_0.7.0 crayon_1.3.4
from prioritizr.
Thanks! Could you please try installing the latest version of Matrix and running the example again? My guess is that you might be using a version of the Matrix package which is too old. Looking at the changelog for the Matrix package and changes to the sparseMatrix function, it seems prioritizr might need Matrix >= 1.3-0.
from prioritizr.
It works! Sorry, the computation took a lot of time (I ended up setting number_solutions = 10). Thanks @jeffreyhanson :-)
from prioritizr.
Awesome - thanks for letting me know! I'll update the package version dependencies so that people don't run into this issue in the future. Also, if speed is an issue, I'd recommend installing the latest version of R and updating all the dependencies - it seems like some of your packages might be a bit old so updating them might help performance?
from prioritizr.
Yes, I should indeed, and I will. Cheers.
from prioritizr.
Related Issues (20)
- Get Solution cost/quality/objective value HOT 4
- Remaining tasks for version 8 HOT 2
- Boundary penalty & sensitivity analysis HOT 5
- weighting disturbance features for a restoration problem HOT 9
- solve() fails with new highs version
- Solving using cbc HOT 8
- Solver Issues HOT 3
- New presolve check warning: more features are needed on previously feasible problem HOT 3
- Error solving problem HOT 6
- please change check in `add_manual_locked_constraints()` HOT 10
- Assertion on 'log_to_console' failed: Must be of type 'logical', not 'integer'. HOT 3
- rij_matrix can return empty matrix when memory = TRUE HOT 2
- installation of cplexAPI package + re-scaling features data HOT 17
- Overly zealous assert causes spurious failure on problem(), breaking valid prioritizr 7.1.1 scripts HOT 2
- high boundary penalties, but solution has weird hole HOT 1
- Error while solving the problem HOT 10
- package overview manual entry
- Add linear constraints for multiple zones HOT 3
- lexicographic (hierachical) multi-objective optimization HOT 5
- Add max area threshold for zone and dealing with fragmented zones HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prioritizr.