@teamkeel/solver 0.0.0-stage → 0.508.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.cjs +6878 -0
  2. package/dist/index.d.cts +9 -0
  3. package/dist/index.d.ts +9 -0
  4. package/dist/index.js +6850 -0
  5. package/dist/internal.cjs +17244 -0
  6. package/dist/internal.d.cts +1275 -0
  7. package/dist/internal.d.ts +1275 -0
  8. package/dist/internal.js +17164 -0
  9. package/dist/layout-ZQ45Tlkb.d.cts +2111 -0
  10. package/dist/layout-efr1Ke_2.d.ts +2111 -0
  11. package/dist/layout.cjs +19 -0
  12. package/dist/layout.d.cts +2 -0
  13. package/dist/layout.d.ts +2 -0
  14. package/dist/layout.js +1 -0
  15. package/dist/record-results-BWnJIpkK.d.ts +222 -0
  16. package/dist/record-results-DPczGZWH.d.cts +222 -0
  17. package/dist/types-DIFPlxBZ.d.cts +1865 -0
  18. package/dist/types-DIFPlxBZ.d.ts +1865 -0
  19. package/fixtures/operation/bakery/operation.json +350 -0
  20. package/fixtures/operation/bakery/plan.json +872 -0
  21. package/fixtures/operation/bakery/readback.json +114 -0
  22. package/fixtures/operation/bakery/score.json +1520 -0
  23. package/fixtures/operation/bakery/timeline.json +2376 -0
  24. package/fixtures/operation/clinic/operation.json +223 -0
  25. package/fixtures/operation/clinic/plan.json +383 -0
  26. package/fixtures/operation/clinic/readback.json +83 -0
  27. package/fixtures/operation/clinic/score.json +1305 -0
  28. package/fixtures/operation/clinic/timeline.json +2283 -0
  29. package/fixtures/operation/field-service/operation.json +194 -0
  30. package/fixtures/operation/field-service/plan.json +172 -0
  31. package/fixtures/operation/field-service/readback.json +73 -0
  32. package/fixtures/operation/field-service/score.json +585 -0
  33. package/fixtures/operation/field-service/timeline.json +661 -0
  34. package/fixtures/operation/filling/operation.json +245 -0
  35. package/fixtures/operation/filling/plan.json +525 -0
  36. package/fixtures/operation/filling/readback.json +87 -0
  37. package/fixtures/operation/filling/score.json +756 -0
  38. package/fixtures/operation/filling/timeline.json +1322 -0
  39. package/fixtures/operation/shop/operation.json +320 -0
  40. package/fixtures/operation/shop/plan.json +664 -0
  41. package/fixtures/operation/shop/readback.json +130 -0
  42. package/fixtures/operation/shop/score.json +1106 -0
  43. package/fixtures/operation/shop/timeline.json +2734 -0
  44. package/fixtures/operation/warehouse-day/operation.json +517 -0
  45. package/fixtures/operation/warehouse-day/plan.json +477 -0
  46. package/fixtures/operation/warehouse-day/readback.json +207 -0
  47. package/fixtures/operation/warehouse-day/score.json +979 -0
  48. package/fixtures/operation/warehouse-day/timeline.json +1420 -0
  49. package/package.json +63 -4
  50. package/README.md +0 -3
@@ -0,0 +1,756 @@
1
+ {
2
+ "schema": "keel.solver.score/1",
3
+ "run": "run-filling-1",
4
+ "build": "sha256:4fd1831de9446762fac862a80458cb17030d50619d4b5b294cc2145d3d281906",
5
+ "says": "All 7 hard rules kept. 1 of 8 batches finishes late (13 minutes in total).",
6
+ "hard": {
7
+ "kept": true,
8
+ "broken": 0,
9
+ "rules": []
10
+ },
11
+ "structure": [
12
+ {
13
+ "id": "stage-order:fill",
14
+ "says": "Fill starts after mix ends.",
15
+ "step": "fill",
16
+ "broken": 0,
17
+ "examples": []
18
+ },
19
+ {
20
+ "id": "decision:batch.mix",
21
+ "says": "Mix takes its set time, on an allowed resource, within the clock.",
22
+ "step": "mix",
23
+ "broken": 0,
24
+ "examples": []
25
+ },
26
+ {
27
+ "id": "decision:batch.fill",
28
+ "says": "Fill takes its set time, on an allowed resource, within the clock.",
29
+ "step": "fill",
30
+ "broken": 0,
31
+ "examples": []
32
+ },
33
+ {
34
+ "id": "decision:batch.mix.mixing vessel",
35
+ "says": "Mix: mixing vessel is held from its start to its release, on an allowed resource.",
36
+ "step": "mix.mixing vessel",
37
+ "broken": 0,
38
+ "examples": []
39
+ }
40
+ ],
41
+ "priorities": [
42
+ 0,
43
+ 1
44
+ ],
45
+ "byPriority": [
46
+ {
47
+ "priority": 0,
48
+ "points": 0,
49
+ "parts": [
50
+ {
51
+ "id": "batch.close",
52
+ "kind": "rule",
53
+ "value": 0,
54
+ "unit": "minutes",
55
+ "weight": 1,
56
+ "points": 0,
57
+ "share": 0
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "priority": 1,
63
+ "points": 550,
64
+ "parts": [
65
+ {
66
+ "id": "batch.due",
67
+ "kind": "rule",
68
+ "value": 13,
69
+ "unit": "minutes",
70
+ "weight": 10,
71
+ "points": 130,
72
+ "share": 0.2364
73
+ },
74
+ {
75
+ "id": "Batches filled by their due time, then the day finished early",
76
+ "kind": "goal",
77
+ "value": 420,
78
+ "unit": "minutes",
79
+ "weight": 1,
80
+ "points": 420,
81
+ "share": 0.7636
82
+ }
83
+ ]
84
+ }
85
+ ],
86
+ "rules": [
87
+ {
88
+ "id": "one-at-a-time:line-1",
89
+ "says": "Line 1 runs one at a time.",
90
+ "hardness": "hard",
91
+ "from": "generated",
92
+ "declared": {
93
+ "what": "resource",
94
+ "of": "line-1",
95
+ "label": "Line 1"
96
+ },
97
+ "priority": null,
98
+ "weight": null,
99
+ "broken": 0,
100
+ "penalty": null,
101
+ "justifications": []
102
+ },
103
+ {
104
+ "id": "one-at-a-time:line-2",
105
+ "says": "Line 2 runs one at a time.",
106
+ "hardness": "hard",
107
+ "from": "generated",
108
+ "declared": {
109
+ "what": "resource",
110
+ "of": "line-2",
111
+ "label": "Line 2"
112
+ },
113
+ "priority": null,
114
+ "weight": null,
115
+ "broken": 0,
116
+ "penalty": null,
117
+ "justifications": []
118
+ },
119
+ {
120
+ "id": "one-at-a-time:line-3",
121
+ "says": "Line 3 runs one at a time.",
122
+ "hardness": "hard",
123
+ "from": "generated",
124
+ "declared": {
125
+ "what": "resource",
126
+ "of": "line-3",
127
+ "label": "Line 3"
128
+ },
129
+ "priority": null,
130
+ "weight": null,
131
+ "broken": 0,
132
+ "penalty": null,
133
+ "justifications": []
134
+ },
135
+ {
136
+ "id": "one-at-a-time:vessel-a",
137
+ "says": "Vessel A holds one at a time.",
138
+ "hardness": "hard",
139
+ "from": "generated",
140
+ "declared": {
141
+ "what": "resource",
142
+ "of": "vessel-a",
143
+ "label": "Vessel A"
144
+ },
145
+ "priority": null,
146
+ "weight": null,
147
+ "broken": 0,
148
+ "penalty": null,
149
+ "justifications": []
150
+ },
151
+ {
152
+ "id": "one-at-a-time:vessel-b",
153
+ "says": "Vessel B holds one at a time.",
154
+ "hardness": "hard",
155
+ "from": "generated",
156
+ "declared": {
157
+ "what": "resource",
158
+ "of": "vessel-b",
159
+ "label": "Vessel B"
160
+ },
161
+ "priority": null,
162
+ "weight": null,
163
+ "broken": 0,
164
+ "penalty": null,
165
+ "justifications": []
166
+ },
167
+ {
168
+ "id": "line.line clean",
169
+ "says": "A line clean when the product changes, from cleaningTimes. 60 min where cleaningTimes has no figure.",
170
+ "hardness": "hard",
171
+ "from": "author",
172
+ "declared": {
173
+ "what": "changeover",
174
+ "of": "batch.fill",
175
+ "label": "Fill"
176
+ },
177
+ "priority": null,
178
+ "weight": null,
179
+ "broken": 0,
180
+ "penalty": null,
181
+ "justifications": []
182
+ },
183
+ {
184
+ "id": "batch.open",
185
+ "says": "Open 06:00 to 22:00.",
186
+ "hardness": "hard",
187
+ "from": "author",
188
+ "declared": null,
189
+ "priority": null,
190
+ "weight": null,
191
+ "broken": 0,
192
+ "penalty": null,
193
+ "justifications": []
194
+ },
195
+ {
196
+ "id": "batch.close",
197
+ "says": "Closes at 22:00, unless the day can't fit.",
198
+ "hardness": "soft",
199
+ "from": "author",
200
+ "declared": null,
201
+ "priority": 0,
202
+ "weight": 1,
203
+ "broken": 0,
204
+ "penalty": 0,
205
+ "justifications": []
206
+ },
207
+ {
208
+ "id": "batch.due",
209
+ "says": "Fill by its due time (dueAt), or it's late.",
210
+ "hardness": "soft",
211
+ "from": "author",
212
+ "declared": null,
213
+ "priority": 1,
214
+ "weight": 10,
215
+ "broken": 1,
216
+ "penalty": 130,
217
+ "justifications": [
218
+ {
219
+ "row": "batch-03",
220
+ "items": [
221
+ "batch-03"
222
+ ],
223
+ "amount": 13,
224
+ "unit": "minutes",
225
+ "says": "B-03: 13 minutes over the limit",
226
+ "detail": {
227
+ "batch": "B-03"
228
+ },
229
+ "excused": false,
230
+ "actual": "2026-10-05T08:13:00.000Z",
231
+ "side": "over"
232
+ }
233
+ ]
234
+ }
235
+ ],
236
+ "goals": [
237
+ {
238
+ "id": "Batches filled by their due time, then the day finished early",
239
+ "says": "First, batches filled by their due time, then the day finished early: the minutes the batches are late times 10, plus the finish time.",
240
+ "direction": "minimize",
241
+ "value": 420,
242
+ "unit": "minutes",
243
+ "weight": 1,
244
+ "priority": 1,
245
+ "points": 420
246
+ }
247
+ ],
248
+ "byItem": {
249
+ "batch-01": {
250
+ "rules": [
251
+ {
252
+ "id": "one-at-a-time:line-1",
253
+ "kept": true,
254
+ "amount": 0,
255
+ "rows": []
256
+ },
257
+ {
258
+ "id": "one-at-a-time:line-2",
259
+ "kept": true,
260
+ "amount": 0,
261
+ "rows": []
262
+ },
263
+ {
264
+ "id": "one-at-a-time:line-3",
265
+ "kept": true,
266
+ "amount": 0,
267
+ "rows": []
268
+ },
269
+ {
270
+ "id": "one-at-a-time:vessel-a",
271
+ "kept": true,
272
+ "amount": 0,
273
+ "rows": []
274
+ },
275
+ {
276
+ "id": "one-at-a-time:vessel-b",
277
+ "kept": true,
278
+ "amount": 0,
279
+ "rows": []
280
+ },
281
+ {
282
+ "id": "line.line clean",
283
+ "kept": true,
284
+ "amount": 0,
285
+ "rows": []
286
+ },
287
+ {
288
+ "id": "batch.open",
289
+ "kept": true,
290
+ "amount": 0,
291
+ "rows": [
292
+ "batch-01"
293
+ ]
294
+ },
295
+ {
296
+ "id": "batch.close",
297
+ "kept": true,
298
+ "amount": 0,
299
+ "rows": [
300
+ "batch-01"
301
+ ]
302
+ },
303
+ {
304
+ "id": "batch.due",
305
+ "kept": true,
306
+ "amount": 0,
307
+ "rows": [
308
+ "batch-01"
309
+ ]
310
+ }
311
+ ]
312
+ },
313
+ "batch-02": {
314
+ "rules": [
315
+ {
316
+ "id": "one-at-a-time:line-1",
317
+ "kept": true,
318
+ "amount": 0,
319
+ "rows": []
320
+ },
321
+ {
322
+ "id": "one-at-a-time:line-2",
323
+ "kept": true,
324
+ "amount": 0,
325
+ "rows": []
326
+ },
327
+ {
328
+ "id": "one-at-a-time:line-3",
329
+ "kept": true,
330
+ "amount": 0,
331
+ "rows": []
332
+ },
333
+ {
334
+ "id": "one-at-a-time:vessel-a",
335
+ "kept": true,
336
+ "amount": 0,
337
+ "rows": []
338
+ },
339
+ {
340
+ "id": "one-at-a-time:vessel-b",
341
+ "kept": true,
342
+ "amount": 0,
343
+ "rows": []
344
+ },
345
+ {
346
+ "id": "line.line clean",
347
+ "kept": true,
348
+ "amount": 0,
349
+ "rows": []
350
+ },
351
+ {
352
+ "id": "batch.open",
353
+ "kept": true,
354
+ "amount": 0,
355
+ "rows": [
356
+ "batch-02"
357
+ ]
358
+ },
359
+ {
360
+ "id": "batch.close",
361
+ "kept": true,
362
+ "amount": 0,
363
+ "rows": [
364
+ "batch-02"
365
+ ]
366
+ },
367
+ {
368
+ "id": "batch.due",
369
+ "kept": true,
370
+ "amount": 0,
371
+ "rows": [
372
+ "batch-02"
373
+ ]
374
+ }
375
+ ]
376
+ },
377
+ "batch-03": {
378
+ "rules": [
379
+ {
380
+ "id": "one-at-a-time:line-1",
381
+ "kept": true,
382
+ "amount": 0,
383
+ "rows": []
384
+ },
385
+ {
386
+ "id": "one-at-a-time:line-2",
387
+ "kept": true,
388
+ "amount": 0,
389
+ "rows": []
390
+ },
391
+ {
392
+ "id": "one-at-a-time:line-3",
393
+ "kept": true,
394
+ "amount": 0,
395
+ "rows": []
396
+ },
397
+ {
398
+ "id": "one-at-a-time:vessel-a",
399
+ "kept": true,
400
+ "amount": 0,
401
+ "rows": []
402
+ },
403
+ {
404
+ "id": "one-at-a-time:vessel-b",
405
+ "kept": true,
406
+ "amount": 0,
407
+ "rows": []
408
+ },
409
+ {
410
+ "id": "line.line clean",
411
+ "kept": true,
412
+ "amount": 0,
413
+ "rows": [
414
+ "line-1:batch-02>batch-03"
415
+ ]
416
+ },
417
+ {
418
+ "id": "batch.open",
419
+ "kept": true,
420
+ "amount": 0,
421
+ "rows": [
422
+ "batch-03"
423
+ ]
424
+ },
425
+ {
426
+ "id": "batch.close",
427
+ "kept": true,
428
+ "amount": 0,
429
+ "rows": [
430
+ "batch-03"
431
+ ]
432
+ },
433
+ {
434
+ "id": "batch.due",
435
+ "kept": false,
436
+ "amount": 13,
437
+ "rows": [
438
+ "batch-03"
439
+ ]
440
+ }
441
+ ]
442
+ },
443
+ "batch-04": {
444
+ "rules": [
445
+ {
446
+ "id": "one-at-a-time:line-1",
447
+ "kept": true,
448
+ "amount": 0,
449
+ "rows": []
450
+ },
451
+ {
452
+ "id": "one-at-a-time:line-2",
453
+ "kept": true,
454
+ "amount": 0,
455
+ "rows": []
456
+ },
457
+ {
458
+ "id": "one-at-a-time:vessel-a",
459
+ "kept": true,
460
+ "amount": 0,
461
+ "rows": []
462
+ },
463
+ {
464
+ "id": "one-at-a-time:vessel-b",
465
+ "kept": true,
466
+ "amount": 0,
467
+ "rows": []
468
+ },
469
+ {
470
+ "id": "line.line clean",
471
+ "kept": true,
472
+ "amount": 0,
473
+ "rows": [
474
+ "line-2:batch-01>batch-04"
475
+ ]
476
+ },
477
+ {
478
+ "id": "batch.open",
479
+ "kept": true,
480
+ "amount": 0,
481
+ "rows": [
482
+ "batch-04"
483
+ ]
484
+ },
485
+ {
486
+ "id": "batch.close",
487
+ "kept": true,
488
+ "amount": 0,
489
+ "rows": [
490
+ "batch-04"
491
+ ]
492
+ },
493
+ {
494
+ "id": "batch.due",
495
+ "kept": true,
496
+ "amount": 0,
497
+ "rows": [
498
+ "batch-04"
499
+ ]
500
+ }
501
+ ]
502
+ },
503
+ "batch-05": {
504
+ "rules": [
505
+ {
506
+ "id": "one-at-a-time:line-1",
507
+ "kept": true,
508
+ "amount": 0,
509
+ "rows": []
510
+ },
511
+ {
512
+ "id": "one-at-a-time:line-2",
513
+ "kept": true,
514
+ "amount": 0,
515
+ "rows": []
516
+ },
517
+ {
518
+ "id": "one-at-a-time:line-3",
519
+ "kept": true,
520
+ "amount": 0,
521
+ "rows": []
522
+ },
523
+ {
524
+ "id": "one-at-a-time:vessel-a",
525
+ "kept": true,
526
+ "amount": 0,
527
+ "rows": []
528
+ },
529
+ {
530
+ "id": "one-at-a-time:vessel-b",
531
+ "kept": true,
532
+ "amount": 0,
533
+ "rows": []
534
+ },
535
+ {
536
+ "id": "line.line clean",
537
+ "kept": true,
538
+ "amount": 0,
539
+ "rows": []
540
+ },
541
+ {
542
+ "id": "batch.open",
543
+ "kept": true,
544
+ "amount": 0,
545
+ "rows": [
546
+ "batch-05"
547
+ ]
548
+ },
549
+ {
550
+ "id": "batch.close",
551
+ "kept": true,
552
+ "amount": 0,
553
+ "rows": [
554
+ "batch-05"
555
+ ]
556
+ },
557
+ {
558
+ "id": "batch.due",
559
+ "kept": true,
560
+ "amount": 0,
561
+ "rows": [
562
+ "batch-05"
563
+ ]
564
+ }
565
+ ]
566
+ },
567
+ "batch-06": {
568
+ "rules": [
569
+ {
570
+ "id": "one-at-a-time:line-1",
571
+ "kept": true,
572
+ "amount": 0,
573
+ "rows": []
574
+ },
575
+ {
576
+ "id": "one-at-a-time:line-2",
577
+ "kept": true,
578
+ "amount": 0,
579
+ "rows": []
580
+ },
581
+ {
582
+ "id": "one-at-a-time:line-3",
583
+ "kept": true,
584
+ "amount": 0,
585
+ "rows": []
586
+ },
587
+ {
588
+ "id": "one-at-a-time:vessel-a",
589
+ "kept": true,
590
+ "amount": 0,
591
+ "rows": []
592
+ },
593
+ {
594
+ "id": "one-at-a-time:vessel-b",
595
+ "kept": true,
596
+ "amount": 0,
597
+ "rows": []
598
+ },
599
+ {
600
+ "id": "line.line clean",
601
+ "kept": true,
602
+ "amount": 0,
603
+ "rows": []
604
+ },
605
+ {
606
+ "id": "batch.open",
607
+ "kept": true,
608
+ "amount": 0,
609
+ "rows": [
610
+ "batch-06"
611
+ ]
612
+ },
613
+ {
614
+ "id": "batch.close",
615
+ "kept": true,
616
+ "amount": 0,
617
+ "rows": [
618
+ "batch-06"
619
+ ]
620
+ },
621
+ {
622
+ "id": "batch.due",
623
+ "kept": true,
624
+ "amount": 0,
625
+ "rows": [
626
+ "batch-06"
627
+ ]
628
+ }
629
+ ]
630
+ },
631
+ "batch-07": {
632
+ "rules": [
633
+ {
634
+ "id": "one-at-a-time:line-1",
635
+ "kept": true,
636
+ "amount": 0,
637
+ "rows": []
638
+ },
639
+ {
640
+ "id": "one-at-a-time:line-2",
641
+ "kept": true,
642
+ "amount": 0,
643
+ "rows": []
644
+ },
645
+ {
646
+ "id": "one-at-a-time:line-3",
647
+ "kept": true,
648
+ "amount": 0,
649
+ "rows": []
650
+ },
651
+ {
652
+ "id": "one-at-a-time:vessel-a",
653
+ "kept": true,
654
+ "amount": 0,
655
+ "rows": []
656
+ },
657
+ {
658
+ "id": "one-at-a-time:vessel-b",
659
+ "kept": true,
660
+ "amount": 0,
661
+ "rows": []
662
+ },
663
+ {
664
+ "id": "line.line clean",
665
+ "kept": true,
666
+ "amount": 0,
667
+ "rows": [
668
+ "line-1:batch-06>batch-07"
669
+ ]
670
+ },
671
+ {
672
+ "id": "batch.open",
673
+ "kept": true,
674
+ "amount": 0,
675
+ "rows": [
676
+ "batch-07"
677
+ ]
678
+ },
679
+ {
680
+ "id": "batch.close",
681
+ "kept": true,
682
+ "amount": 0,
683
+ "rows": [
684
+ "batch-07"
685
+ ]
686
+ },
687
+ {
688
+ "id": "batch.due",
689
+ "kept": true,
690
+ "amount": 0,
691
+ "rows": [
692
+ "batch-07"
693
+ ]
694
+ }
695
+ ]
696
+ },
697
+ "batch-08": {
698
+ "rules": [
699
+ {
700
+ "id": "one-at-a-time:line-1",
701
+ "kept": true,
702
+ "amount": 0,
703
+ "rows": []
704
+ },
705
+ {
706
+ "id": "one-at-a-time:line-2",
707
+ "kept": true,
708
+ "amount": 0,
709
+ "rows": []
710
+ },
711
+ {
712
+ "id": "one-at-a-time:vessel-a",
713
+ "kept": true,
714
+ "amount": 0,
715
+ "rows": []
716
+ },
717
+ {
718
+ "id": "one-at-a-time:vessel-b",
719
+ "kept": true,
720
+ "amount": 0,
721
+ "rows": []
722
+ },
723
+ {
724
+ "id": "line.line clean",
725
+ "kept": true,
726
+ "amount": 0,
727
+ "rows": []
728
+ },
729
+ {
730
+ "id": "batch.open",
731
+ "kept": true,
732
+ "amount": 0,
733
+ "rows": [
734
+ "batch-08"
735
+ ]
736
+ },
737
+ {
738
+ "id": "batch.close",
739
+ "kept": true,
740
+ "amount": 0,
741
+ "rows": [
742
+ "batch-08"
743
+ ]
744
+ },
745
+ {
746
+ "id": "batch.due",
747
+ "kept": true,
748
+ "amount": 0,
749
+ "rows": [
750
+ "batch-08"
751
+ ]
752
+ }
753
+ ]
754
+ }
755
+ }
756
+ }