79207168

Date: 2024-11-20 12:21:38
Score: 1.5
Natty:
Report link

instead of adding a hard constraint you may first want to try a penalty of

cost += 10000* self.routing.solver().Max(used_vehicles)==self.routing.solver().Min(used_vehicles)

to see if the solver can find a feasible solution, or is there a bug in your program. It sometimes helps to relax the problem to help solver find initial feasible solution which might be difficult to reach in a more constrained original problem.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shivam Goyal