Replies: 1 comment
-
|
I found the problem. By changing scoreDirector.beforeListVariableChanged(resource, taskListVar, 0, taskList.size()); to scoreDirector.beforeListVariableChanged(resource, taskListVar, resource.getPinToIndex(), taskList.size());, the issue was resolved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone:
Is there an example of using @PlanningPinToIndex in combination with a Custom solver phase? I encountered an error while using the Custom solver phase:
"Attempting to change list variable (%s) on an entity (%s) in range [%d, %d), which is partially or entirely pinned.
This is most likely a bug in a move.
Maybe you are using an improperly implemented custom move?"
However, the result is correct when using Timefold's default Construction Heuristic phase. I suspect there might be an issue with my Custom solver phase implementation. Could you please provide relevant example code for reference?
Beta Was this translation helpful? Give feedback.
All reactions