Skip to main content
Options for Schedule.solve and Schedule.compile.

Properties

dateRange
object
required
The date range to schedule.
pinned
pinned?: ShiftAssignment[]
Fixed assignments from a prior solve (e.g., rolling schedule). These are injected as fixed variables in the solver.Not yet implemented. Providing pinned assignments throws an error.
strategy
strategy?: SolveStrategy
Strategy used by the solver.{ type: "optimize" } optimizes objectives and soft constraints. { type: "feasibility-only" } finds any hard-feasible solution, ignoring objectives, soft-constraint penalties, and objective-derived metadata such as cost.
timeLimitSeconds
timeLimitSeconds?: number
Solver time limit in seconds.