I am working on a Project which has a Battery Operated Vehicles. As we know they can only travel a limited distance. We are using those vehicle to Pick the packets from Customers. The Algo is working fine and giving results which vehicle can go and Pick from which customer. We are using road distance and calculated the matrix in VRP as our customer location is fixed. Our problem is We require the Vehicle to return for re-charge before it takes next shipment. Our Vehicle can travel 80 KM in one recharge. So this will become hard constraint. How can we make Capacity and Maximum distance traveled by vehicle as hard constraint.
We are not able to get that done. If we check the Distance traveled at every addition of the customer in vehicle . then the system slows down as most of the Routes are not feasible between customers. We have put 9999 distance in our customer where the road distance is not feasible.
Please help in getting the right Constraint set.