oigele
oigele

Reputation: 11

Composite Tasks using OptaPlanner

I am trying to build Pools of Workers in a chained TWVRP scenario with multiple anchors. One Composite Task will be split into multiple smaller Task and distributed onto the chains in an optimal manner. Now, how can I ensure that all tasks that belong to the same composite task have the same start time? Can I solve this using custom moves or is using Drools to model this behaviour my only option?

I studied the documentation on custom moves but I just couldn't figure out how to use them in this case... Does anyone have a hint for me?

Upvotes: 1

Views: 75

Answers (1)

Geoffrey De Smet
Geoffrey De Smet

Reputation: 27312

Make the startTime of a single Task a shadow variable that is the maximum previousTaskEndTime of all the single tasks that belong to the same CompositeTask.

Upvotes: 1

Related Questions