0

I have a long running solver that I wish to periodically update with new planning entities (incoming orders). Below is the sequence in the ProblemFactChange that I have pieced together. Is this the correct sequence? I could not find an example for this.

solution = scoreDirector.getWorkingSolution();
scoreDirector.beforeEntityAdded(order);
solution.getOrderList().add(order);
scoreDirector.triggerVariableListeners();
scoreDirector.afterEntityAdded(order);
Mitch
  • 989
  • 1
  • 9
  • 25

1 Answers1

0

Yes, see also the new task assigning example which does that.

Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120