MoveListFactory | Real time planning

Skip to first unread message

Patrick Ondreovici

Dec 23, 2022, 8:45:50 AM12/23/22
to OptaPlanner development
It is possible to use MoveListFactory with real time planning ?
How to notify MoveListFactory when a new entity is added ?

Radovan Synek

Jan 2, 2023, 2:37:49 AM1/2/23
Hello Patrick,

after the Solver processes a ProblemFact, it internally restarts solving. As a part of this restart, the MoveListFactory is asked to create the move list. At that point, the working solution should already contain the new entity.

While it is possible to use the MoveListFactory with real-time planning, I would advise against doing that. For the reason I described above, with every ProblemFact the MoveListFactory has to recreate the entire move list and that might be a performance problem.

Please see the MoveIteratorFactory to generate custom moves just in time:


You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit


Radovan Synek

Principal Software Engineer, Business Automation

Red Hat EMEA

Brno, Czech Republic

Reply all
Reply to author
0 new messages