Skip to content

solve b410#411

Merged
jGaboardi merged 1 commit into
pysal:mainfrom
ljwolf:main
Dec 2, 2023
Merged

solve b410#411
jGaboardi merged 1 commit into
pysal:mainfrom
ljwolf:main

Conversation

@ljwolf

@ljwolf ljwolf commented Dec 2, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
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