<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">OptaPlanner now has it’s own google groups for discussions:<div><a href="http://www.optaplanner.org/community/forum.html">http://www.optaplanner.org/community/forum.html</a></div><div><br></div><div>Please use the correct group, to reduce the noise to signal ratio. </div><div><br></div><div>Also just a reminder this list has also moved to Google Groups:</div><div><a href="http://drools.org/community/forum.html">http://drools.org/community/forum.html</a></div><div><a href="https://groups.google.com/forum/#!forum/drools-usage">https://groups.google.com/forum/#!forum/drools-usage</a></div><div><br></div><div>Mark</div><div><br></div><div><br><div><div>On 20 Aug 2014, at 22:42, paavanm <<a href="mailto:paavan.mathur@clairvoyantsoft.com">paavan.mathur@clairvoyantsoft.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have a relatively simple question. How do I have OptaPlanner use my own<br>initialized solution as a starting point instead of having a construction<br>heuristic create one? Does this have to be done with a custom SolverPhase?<br><br>A little more detail on what I'm trying to do: I am scheduling a series of<br>classes and related activities on a calendar. Let's say I have some class<br>BA101 that occurs several times a week (these classes are immovable<br>entities). There are homeworks, exams etc. associated with these classes<br>which I need to schedule. E.g. on Feb 1st, a homework might be due, or on<br>Mar 1st, there might be an exam. So I need to schedule time to do the<br>homework or time to study for the exam. My initial solution for this would<br>be very simple: I would schedule the homework/study time at the same time of<br>the class itself, and let optaplanner move it around till it meets my hard &<br>soft constraints.<br><br>However, when I tried to do that (i.e. give my homework/study tasks an<br>actual start time instead of just leaving the start time as null),<br>OptaPlanner fell right through without actually making any moves to find the<br>best score. How do I do this? This is my config at the moment, pretty basic<br>(tried this with & without the construction heuristic; same result):<br><br><?xml version="1.0" encoding="UTF-8"?><br><solver><br><br><br><br><solutionClass>com.copilot.optaplanner.domain.ActivityScheduler</solutionClass><br><br><planningEntityClass>com.copilot.optaplanner.domain.Activity</planningEntityClass><br><br><br> <scoreDirectorFactory><br> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType><br><br><simpleScoreCalculatorClass>com.copilot.optaplanner.solver.score.ActivitySchedulingSimpleScoreCalculator</simpleScoreCalculatorClass><br> </scoreDirectorFactory><br><br><br> <termination><br> <maximumSecondsSpend>10</maximumSecondsSpend><br> </termination><br><br> <constructionHeuristic><br> <constructionHeuristicType>FIRST_FIT</constructionHeuristicType><br> </constructionHeuristic><br><br> <localSearch><br> <acceptor><br> <entityTabuSize>7</entityTabuSize><br> </acceptor><br> <forager><br> <acceptedCountLimit>1000</acceptedCountLimit><br> </forager><br> </localSearch><br><br></solver><br><br>Thanks for any assistance.<br><br><br><br>--<br>View this message in context: <a href="http://drools.46999.n3.nabble.com/Starting-optaplanner-with-your-own-initialized-solution-tp4030697.html">http://drools.46999.n3.nabble.com/Starting-optaplanner-with-your-own-initialized-solution-tp4030697.html</a><br>Sent from the Drools: User forum mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></div></body></html>