N-Wouda / ALNS

Adaptive large neighbourhood search (and more!) in Python.
https://alns.readthedocs.io/en/latest/
MIT License
442 stars 123 forks source link

Fix bug in example #147

Closed SleepyBag closed 1 year ago

SleepyBag commented 1 year ago

This PR:

The only change in code : ll = np.max(indices[preds[job]], initial=0) + 1 -> ll = np.max(indices[preds[job]], initial=-1) + 1

N-Wouda commented 1 year ago

@SleepyBag thanks for opening the issue and this PR. I'll have a look at it later tonight!

N-Wouda commented 1 year ago

Nice catch, and thanks for the PR @SleepyBag!