<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.&nbsp;</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 &lt;<a href="mailto:paavan.mathur@clairvoyantsoft.com">paavan.mathur@clairvoyantsoft.com</a>&gt; 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 &amp;<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 &amp; without the construction heuristic; same result):<br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;solver&gt;<br><br><br><br>&lt;solutionClass&gt;com.copilot.optaplanner.domain.ActivityScheduler&lt;/solutionClass&gt;<br><br>&lt;planningEntityClass&gt;com.copilot.optaplanner.domain.Activity&lt;/planningEntityClass&gt;<br><br><br> &nbsp;&nbsp;&nbsp;&lt;scoreDirectorFactory&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;scoreDefinitionType&gt;HARD_SOFT&lt;/scoreDefinitionType&gt;<br><br>&lt;simpleScoreCalculatorClass&gt;com.copilot.optaplanner.solver.score.ActivitySchedulingSimpleScoreCalculator&lt;/simpleScoreCalculatorClass&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/scoreDirectorFactory&gt;<br><br><br> &nbsp;&nbsp;&nbsp;&lt;termination&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;maximumSecondsSpend&gt;10&lt;/maximumSecondsSpend&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/termination&gt;<br><br> &nbsp;&nbsp;&nbsp;&lt;constructionHeuristic&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;constructionHeuristicType&gt;FIRST_FIT&lt;/constructionHeuristicType&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/constructionHeuristic&gt;<br><br> &nbsp;&nbsp;&nbsp;&lt;localSearch&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;acceptor&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;entityTabuSize&gt;7&lt;/entityTabuSize&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/acceptor&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;forager&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;acceptedCountLimit&gt;1000&lt;/acceptedCountLimit&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/forager&gt;<br> &nbsp;&nbsp;&nbsp;&lt;/localSearch&gt;<br><br>&lt;/solver&gt;<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>