Replies: 1 comment 10 replies
-
|
I think I got the cause now. It's similar to the discussion #1958. For a ProductionLine, its JobList may not have changed at all, but because the predecessor job of a Job on that ProductionLine has changed, the end time has changed, and this change has not been detected, so a Score Corruption has occurred. If that's the case, how should I implement this constraint? That is, I want workers on each production line to finish work and be off duty at the same time as much as possible. For example, workers on production line 1 work all day, while workers on production line 2 take a break in the morning. Therefore, I want to assign more work to production line 1 so that they can leave at the same time. |
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.
-
Hi, everyone.
I'm working on a JobShop scheduling case where it assigns jobs to appropriate production lines. One of the constraints is to ensure that the finish times of jobs across all production lines are as similar as possible(identical is perfect).
The constraint is:
The approach is to use the number of minutes between the end time of a production line (the end time of the last job) and 00:00:00 on 2025-01-01 as the production line minutes, obtain the maximum production line minutes in the constraints using the ConstraintCollectors.max method, and use that number of minutes as the penalty score.
However, it triggered a Score Corruption exception. Does anyone know why?
P.S.: Due to the Predecessor/Successor job, I used DSV.
The following is the complete code
https://github.com/kentbill/dsv-testing.git
Thank you in advanced!
Beta Was this translation helpful? Give feedback.
All reactions