-
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
I need to remove shifts[0]["end"]["location"] without removing shifts[0]["end"]["latest"]
Background
- The Logistic Company "X" already has an established structure with many branches, and one of the roles they have is called a “Planner.”
- Each branch’s Planner has their own preferences or definition of what constitutes an optimal solution. From the pattern we've observed, their preference for an optimal solution is to complete all jobs (i.e., visit all job locations) in a single trip. They do not want the cargo to "revisit" any "missed jobs" on the return to the depot.
Issue
- So, my idea was to modify our current strategy by removing the "shift.end.location" field to simulate a one-way trip.
- However, since the "end" field must either be null or—if it’s an object—contain both "location" and "latest" attributes, I decided to set the entire "end" to null.
The sampling
- This approach has worked for the five samples I tested.
Challenge
- However, our solution for the client also includes the ability to configure a custom time constraint for the driver's working hours.
Summary, Question
So, I need to remove shifts[0]["end"]["location"] without removing shifts[0]["end"]["latest"].
Is that possible? Or is it too hacky?
Is there a cleaner or more correct way to achieve this?
Thank you!!
Metadata
Metadata
Assignees
Labels
No labels