Skip to main content
Result of Schedule.solve. Feasibility-only solves return hard-feasible assignments when one is found, but they do not optimize objectives or compute objective-derived metadata. Cost is therefore only produced for optimized solves.

Properties

ShiftAssignment[]
required
Shift assignments (empty when infeasible, invalid, or no solution).
cost?: CostBreakdown
Cost breakdown for optimized solves when cost rules are used and a solution is found.
"invalid" | "optimal" | "feasible" | "infeasible" | "no_solution"
required
Outcome of the solve attempt.

Methods

explain()

Returns the deterministic schedule explanation for this solve result. Returns: ScheduleExplanation