question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Time limit not working with HFCVRP

See original GitHub issue

I set up a VehicleRoutingProblem with mixed fleet and load capacity parameters, I also added a time limit (to prob.solve) equals to 1 minute. Nevertheless, the solver does not stop. In other cases, for example in the CVRP with resource constraints, it works just fine and stops iterations once the time has been reached.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
YueCastillocommented, Jul 12, 2022

Ok, I’ll try with 1 and 2 since prob.solve(heuristic_only=True) returns ValueError: Clarke & Wright heuristic not compatible with time windows, pickup and delivery, simultaneous distribution and collection, mixed fleet, frequencies. and I’m working with mixed fleet.

0reactions
YueCastillocommented, Sep 6, 2022

Hi there, @Kuifje02 I’m closing this. I got to understand that the issue occurs if the floats in the distance or time matrix have a decimal part different to zero, so after rounding all of my floats (meaning I use 25.00 instead of 25.2687) it works just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 6 Methods to Fix Screen Time Limits Not Working 2023
Screen Time Limits Not Working, Here are the Real Fixes · Method 1. Set a Screen Time Passcode · Method 2. Toggle ON...
Read more >
Vehicle Routing Problems — VRPy 0.1.0 documentation
In the capacitated vehicle routing problem (CVRP), a fleet of vehicles ... and setting the duration attribute to the maximum amount of time...
Read more >
Screen time limits not working - Apple Support Communities
Screen time limits not working. My daughters screentime is limited to 2 hours all apps and categories per day. However she manages to...
Read more >
Fix screen time limits not working - Microsoft Support
If you set up screen time but it isn't working as expected, here are a few things you can try: Set up one...
Read more >
Screen Time Not Working on iPhone/Android? [How to Fix]
Most android devices have a parental control app that lets the parents set a time limit for their children to use the device....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found