New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obtain multiple solutions from the solution pool #77

Closed
jeffreyhanson opened this Issue Apr 25, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@jeffreyhanson
Copy link
Contributor

jeffreyhanson commented Apr 25, 2018

The R package distributed with Gurobi version 8 now lets R users extract solutions from the solution pool (http://www.gurobi.com/documentation/8.0/refman/gurobi.html). I think it would be great if we could add this functionality to prioritizr.

I see two potential ways for adding this functionality:

  1. We could add a logical pool parameter to the add_gurobi_solver function. If TRUE, then multiple solutions are returned. I'm not sure if I like this approach because currently all functionality for creating/handling multiple solutions is specified in the portfolio functions.
  2. We could add a add_pool_portfolio function to specify that solutions should be returned from the solution pool. I think this approach is more consistent with the current approach. However, this portfolio function would only work when the Gurobi solver is specified.

What do people think?

@ricschuster

This comment has been minimized.

Copy link
Member

ricschuster commented Apr 26, 2018

This would be a great addition.
I'm for option 2. We can just note in the documentation that this function only works with Gurobi.

Thanks Jeff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment