<div dir="ltr">Hey, folks -- I&#39;m trying to wrap my head around Optaplanner by extending the nurse-rostering example (for my wife, who&#39;s a nurse in a group that needs a rostering solution, as it happens).<div><br></div>

<div>I&#39;ve got a couple of approach/philosophy questions I haven&#39;t yet found addressed in the docs, and I&#39;m hoping someone could help direct me.</div><div><div><ul><li>How best to constrain a problem: Say I&#39;ve got six people to schedule and Employee A *must* work every Tuesday night and alternate Friday nights, while the other five people should fill in the remaining shifts as best they can with the other soft constraints I&#39;m specifying. From my initial reading, I&#39;m thinking the best approach will be to specify an &quot;only Tuesday and alt Fridays&quot; &lt;Contract&gt; in the scoreRules.xml (with an accompanying DRL rule to match whether or not the particular employee is working shifts other than those) and then specify it as a &quot;hard&quot; constraint for that particular employee. Do I have that right, or is there some way to remove those shifts entirely from the problem space, since we already know ahead of time how they&#39;ll be allocated?</li>

</ul><ul><ul><li>A similar question would come up around Christmas, New Years, Arbor Day, etc, to wit: if we know before the problem ever runs which employees are supposed to be working those, what&#39;s the recommended approach to pre-setting an employee into those particular shifts before trawling the solution space?</li>

</ul></ul></div>Apologies if these are naive questions -- I suppose I could/should have started with one of the easier examples, but, well, real world needs and all.</div><div><br></div><div>Thanks!</div><div><br></div><div>

Adam</div></div>