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

lapjv solver #94

Open
berhane opened this issue Dec 7, 2018 · 0 comments
Open

lapjv solver #94

berhane opened this issue Dec 7, 2018 · 0 comments

Comments

@berhane
Copy link

berhane commented Dec 7, 2018

I'm trying to solve a simple 4x4 assignment problem using lapjv,

import numpy as np
from centrosome import lapjv
size=4
matrix=np.random.random((size,size))
assignment=lapjv.lapjv(size,size,matrix)

but keep getting an error message saying the dimensions of i,j don't match those of the cost matrix even though they do.

Traceback
(most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.7/site-packages/centrosome/lapjv.py", line 42, in lapjv
assert len(i) == len(costs), "costs must be the same length as i"
AssertionError: costs must be the same length as i

What am I missing? I'm using

python 3.7.1
numpy-1.15.4
centrosome 1.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant