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

solve b410 #411

Merged
merged 1 commit into from
Dec 2, 2023
Merged

solve b410 #411

merged 1 commit into from
Dec 2, 2023

Conversation

ljwolf
Copy link
Member

@ljwolf ljwolf commented Dec 2, 2023

Bug #410 means that no capacitated LSCP will ever be solvable through from_geodataframe(). The check requires that demand weight is less than capacity, but transposes the capacity and demand arrays. So, all cases where capacity is greater than demand have an error raised saying that there is not enough capacity, while all cases where capacity is less than demand proceed to solve and return infeasible.

This fixes the transposition.

@jGaboardi jGaboardi self-requested a review December 2, 2023 18:55
@jGaboardi jGaboardi added bug Something isn't working locate labels Dec 2, 2023
@jGaboardi
Copy link
Member

Looks like no tests are affected by this. Probably means we need better tests for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working locate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants