[rules-users] [planner] How to initialize LocalSearchSolverScope ?
Geoffrey De Smet
ge0ffrey.spam at gmail.com
Tue May 10 03:26:57 EDT 2011
Hi Filipebr,
Did you use
solver.setStartingSolution(myStartingSolution);
before calling
solver.solve()?
(See reference manual)
The startingSolution doesn't need to be initialized on the planning part
(for example Lecture), but of course,
it needs to be initialized on the facts part (for example Teacher, Room,
...).
Where are you encountering LocalSearchSolverScope btw? That's internal
API (~ use at your own risk).
Op 09-05-11 21:50, felipebr schreef:
> Hi, I´m trying to create a timetabling solver and I developed a Start
> Solution as in examples but when I try to
> localSearchSolverScope.getWorkingSolution() it returns a null object.
>
> I tryed to find how it is made in the examples but my code looks right.
>
> Any ideas of what is wrong please ?
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/How-to-initialize-LocalSearchSolverScope-tp2920207p2920207.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
--
With kind regards,
Geoffrey De Smet
More information about the rules-users
mailing list