[rules-users] Drools Planner changing problem fact

Garf JonGarfunkel at gmail.com
Tue Jul 17 14:54:52 EDT 2012


last month, Ralph wrote: /All the examples in the drools-planner-examples
seem to have a fixed list of problem facts (rooms, teachers, timeslots)
which only should be combined optimally./

Just to address this one unanswered point.
The Cloud Balancing example does support changing the problem facts,
specifically by removing computers (bins).

The last section of the planner documentation (section 12.4) addresses
realtime planning, through the Solver.addProblemFactChange() API. This works
whether you are removing problem facts (as the example shows) or modifying
their contents.

This generally restarts the Solver -- but, if you are relatively optimized,
the adjustment is found relatively fast. (I'm curious, though -- does the
Solver expressly prioritize doing moves associated with those problem facts
that were just changed?)

--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-changing-problem-fact-tp4018087p4018742.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list