Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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