Transition from using Cascading Update Shadow to PlanningList #1689
Replies: 1 comment 2 replies
-
Please take my input with a grain of salt, as I'm still in the process of learning Timefold.
Why would you do this? the recommendation API only uses Construction Heuristics so it won't scale well and I believe it can't change the values of already assigned entities, so it has no ability to create other solutions to check their quality(score).
Are you saying that each Order has a specific due-date, if yes then include it as a problem fact in the Order entity. You can use that information in a constraint to penalise the amount of gap between the arrival-time (which is what I believe you are trying to plan) and the due day (choose a specific time for end of working day). By doing this you can submit all the orders once and also let the solver make use of Local Search which is its super power. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am new to using timefold and I have been struggling with trying to move over from using CascadingUpdateShadowVariable on my arrivalTime variable because that only gives me specific availabilities although I want to try timeslots instead.
Possibly my model is not setup correctly, the goal of using timefold is to find the best time (or could be changed to timeslot) within a providers availability.
I started with Cascading because that was the easiest to get working and now my problem is that timefold is not able to select other available times because it either goes for the minStart, previous or next order, so just placing the order in different spots. I like the fact that I Have previous and next order but It seems that it is not supported if I transition to using timeslots ?
I want to score times based on my constraints. This is not that similar to the timestable sample because an order can go in providers tomorrow's schedule or a month from now. Each Day has its own solution but timefold can still move orders to other days.
I want to be able to recommend BEST (Least score with soft score) times or SOONEST (no hard score but date is closest to now) times.
Current Setup:
Now this solution works although I want to use possibleTimes (that generates when ProviderDaySchedule is constructed) AS WELL as the efficient times that my current updateArrivalTime (using previousOrder and nextOrder as time reference) method provides. I tried to use timeslots from other examples but that setup breaks my logic and it is difficult to apply.
Expected end result planning solution:
Any help is appreciated! Thank you
Beta Was this translation helpful? Give feedback.
All reactions