optaplanner - Putting breaks within a shift -
i solving problem close nurse rostering 1 examples. besides default shiftassignment (planning entity) -> employee(planning variable) have small assignments within shift divide shift in n equal parts. shiftassignment connected n different smallassignment planning entity instances have planning variable “skill” because part of planning must skill employee assigned smallassignment instances not having option unassigned , there must skill or break.
so thing needs planned breaks can take place of m different small assignments m between 1 , number smaller n. break not fixed starting time , length that’s why needs planned.
what best way deal problem?
- creating custom move set value of variable “skill” in m different small assignment instances special value part of valuerange .
- make break fixed creating n different shiftassignment instances there can break possibilities 1 each break possibility , not creating connected smallassignment instances span time break is.
- making break placement @ end either last phase or separate solver
- considering different option