Thread 'main' panicked - intermittent error
Hi - thanks one more time for an amazing solution!
I thought it might be useful to report an issue that happens intermittently, and I am unfortunately not able to reproduce it consistently. It happens with different datasets / parameters, and if I run the exact same optimization after the panic, it works fine.
Hopefully, at least the position will help ascertain the possible cause.
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', vrp-core/src/solver/heuristic.rs:188:103
If I can do anything else to help pinpoint the issue, happy to do so!
Kind regards!
Hi, thanks for feedback!
Looks like an interesting issue, never seen it so far. Seems some solutions are added to the population in an invalid state: either init_weights is not called (https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/solver/heuristic.rs#L167) or solution state is cleaned without recalculating weights, but why it is not happening consistently?.. Need to think a bit.
Can you try to reproduce it in debug build and give me a full call stack when it crashes? Also do you use some specific features when the issue is reproduced?