With kind regards, Geoffrey De Smet
dmzpippo-dro...@yahoo.it schreef: > Hi Geoffrey, > > > 1) Do you have a StartingSolutionInitializer? > > I don't use StartingSolutionInitializer but I generete a XML file with > the initial solution. Is not the best way but it should not affect the > running time of the solver > > > 2) Are you using relativeSelection? > > I'm using relativeSelection and after your suggestion I set it to have a > step every 1 or 2 seconds > > But now I have another problem. If I didn't misunderstand, to select the > move at the step i the solver makes a move ->fires the rules to evaluate > the score -> makes the undo move. This happens with all moves and then > the decider selectes the best move it makes it and gets the associated > score. Turn on verifyUndoMoveIsUncorrupted, see https://jira.jboss.org/jira/browse/JBRULES-2391 > > The problem is that I have an object that modifies an attribute in the > mothod doMove (and with the undoMove I reset the attribute) but the same > object has other attributes those are modified in the rules... Score rules shouldn't modify the facts. They should only change the ConstraintOccurrence's and the scoreCalculator. The doMove method can change the facts, but the undoMove method should undo all those changes. Change = add, modify and/or delete > Not to change these attributes for any attempted move I think to modify > the execution of the solver thus > > * for every move > > o make a move (modify the first attribute) > o fire the rules (modify other attributes) > o make a undoMove (reset all attributes) > > * the decider selects a move, it makes it and re-fire the rules to > calculate the score and to modify consistently attributes > > I do not know an alternative way to achieve this goal because if I move > the amendment of all attributes in the method doMove I not have rules > any more in the DRL file. > > regards > Marco Caminiti > > > > ------------------------------------------------------------------------ > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users