Skip to content
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

Locked constraints with multi-zone problem and planning units with NA values in some but not all zones #96

Open
jeffreyhanson opened this issue Jul 19, 2018 · 0 comments
Assignees

Comments

@jeffreyhanson
Copy link
Contributor

The add_locked_in_constraints and add_locked_out_constraints will fail--and ungracefully--when locking planning units in a multi-zone problem where some cells have NA values in a given zone and non-NA values in a different zone. The current fix is to simply set "real" planning units to have finite values for cost and manually lock in and lock out planning units using the locked in and locked out constraints. This is not ideal, and users should be able to simply supply locked in constraints and planning unit data where some planning units have NAs in some zones and non-NAs in other cells. Additionally, the documentation for add_locked_in_constraints and add_locked_out_constraints is not very clear about how the locked data should be specified in such cases.

@jeffreyhanson jeffreyhanson self-assigned this Jul 19, 2018
@jeffreyhanson jeffreyhanson changed the title Locked constraints with multi-zone problem and NA values Locked constraints with multi-zone problem and planning units with NA values in some but not all zones Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant