@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,585 @@
1
+ {
2
+ "schema": "keel.solver.score/1",
3
+ "run": "run-field-service-1",
4
+ "build": "sha256:949bca8cd5666bb2fc08d79c0fc4559e20296acc72eb95f8dae5907231745aca",
5
+ "says": "All 6 hard rules kept. 1 of 6 visits was left undone.",
6
+ "hard": {
7
+ "kept": true,
8
+ "broken": 0,
9
+ "rules": []
10
+ },
11
+ "structure": [
12
+ {
13
+ "id": "decision:visit.work",
14
+ "says": "Work takes its set time, on an allowed resource, within the clock.",
15
+ "step": "work",
16
+ "broken": 0,
17
+ "examples": []
18
+ }
19
+ ],
20
+ "priorities": [
21
+ 0,
22
+ 1,
23
+ 2
24
+ ],
25
+ "byPriority": [
26
+ {
27
+ "priority": 0,
28
+ "points": 0,
29
+ "parts": [
30
+ {
31
+ "id": "visit.close",
32
+ "kind": "rule",
33
+ "value": 0,
34
+ "unit": "minutes",
35
+ "weight": 1,
36
+ "points": 0,
37
+ "share": 0
38
+ },
39
+ {
40
+ "id": "visit.deadline",
41
+ "kind": "rule",
42
+ "value": 0,
43
+ "unit": "minutes",
44
+ "weight": 1,
45
+ "points": 0,
46
+ "share": 0
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "priority": 1,
52
+ "points": 1,
53
+ "parts": [
54
+ {
55
+ "id": "Do as many visits as possible",
56
+ "kind": "goal",
57
+ "value": 1,
58
+ "unit": null,
59
+ "weight": 1,
60
+ "points": 1,
61
+ "share": 1
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "priority": 2,
67
+ "points": 14,
68
+ "parts": [
69
+ {
70
+ "id": "Then spend less time travelling",
71
+ "kind": "goal",
72
+ "value": 14,
73
+ "unit": "minutes",
74
+ "weight": 1,
75
+ "points": 14,
76
+ "share": 1
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "rules": [
82
+ {
83
+ "id": "one-at-a-time:t1",
84
+ "says": "Neri runs one at a time.",
85
+ "hardness": "hard",
86
+ "from": "generated",
87
+ "declared": {
88
+ "what": "resource",
89
+ "of": "t1",
90
+ "label": "Neri"
91
+ },
92
+ "priority": null,
93
+ "weight": null,
94
+ "broken": 0,
95
+ "penalty": null,
96
+ "justifications": []
97
+ },
98
+ {
99
+ "id": "one-at-a-time:t2",
100
+ "says": "Vola runs one at a time.",
101
+ "hardness": "hard",
102
+ "from": "generated",
103
+ "declared": {
104
+ "what": "resource",
105
+ "of": "t2",
106
+ "label": "Vola"
107
+ },
108
+ "priority": null,
109
+ "weight": null,
110
+ "broken": 0,
111
+ "penalty": null,
112
+ "justifications": []
113
+ },
114
+ {
115
+ "id": "one-at-a-time:t3",
116
+ "says": "Tavi runs one at a time.",
117
+ "hardness": "hard",
118
+ "from": "generated",
119
+ "declared": {
120
+ "what": "resource",
121
+ "of": "t3",
122
+ "label": "Tavi"
123
+ },
124
+ "priority": null,
125
+ "weight": null,
126
+ "broken": 0,
127
+ "penalty": null,
128
+ "justifications": []
129
+ },
130
+ {
131
+ "id": "technician.travel",
132
+ "says": "The technicians travel between locations; the minutes come from travelMinutes.",
133
+ "hardness": "hard",
134
+ "from": "author",
135
+ "declared": {
136
+ "what": "changeover",
137
+ "of": "visit.work",
138
+ "label": "Work"
139
+ },
140
+ "priority": null,
141
+ "weight": null,
142
+ "broken": 0,
143
+ "penalty": null,
144
+ "justifications": []
145
+ },
146
+ {
147
+ "id": "visit.open",
148
+ "says": "Open 08:00 to 16:00.",
149
+ "hardness": "hard",
150
+ "from": "author",
151
+ "declared": null,
152
+ "priority": null,
153
+ "weight": null,
154
+ "broken": 0,
155
+ "penalty": null,
156
+ "justifications": []
157
+ },
158
+ {
159
+ "id": "visit.close",
160
+ "says": "Closes at 16:00, unless the day can't fit.",
161
+ "hardness": "soft",
162
+ "from": "author",
163
+ "declared": null,
164
+ "priority": 0,
165
+ "weight": 1,
166
+ "broken": 0,
167
+ "penalty": 0,
168
+ "justifications": []
169
+ },
170
+ {
171
+ "id": "visit.ready",
172
+ "says": "Work not before its arrival window (readyAt).",
173
+ "hardness": "hard",
174
+ "from": "author",
175
+ "declared": null,
176
+ "priority": null,
177
+ "weight": null,
178
+ "broken": 0,
179
+ "penalty": null,
180
+ "justifications": []
181
+ },
182
+ {
183
+ "id": "visit.deadline",
184
+ "says": "Work ends by its latest finish (latestAt), unless the day can't fit.",
185
+ "hardness": "soft",
186
+ "from": "author",
187
+ "declared": null,
188
+ "priority": 0,
189
+ "weight": 1,
190
+ "broken": 0,
191
+ "penalty": 0,
192
+ "justifications": []
193
+ }
194
+ ],
195
+ "goals": [
196
+ {
197
+ "id": "Do as many visits as possible",
198
+ "says": "First, do as many visits as possible: the number of visits left undone.",
199
+ "direction": "minimize",
200
+ "value": 1,
201
+ "unit": null,
202
+ "weight": 1,
203
+ "priority": 1,
204
+ "points": 1
205
+ },
206
+ {
207
+ "id": "Then spend less time travelling",
208
+ "says": "Then spend less time travelling: the travel minutes.",
209
+ "direction": "minimize",
210
+ "value": 14,
211
+ "unit": "minutes",
212
+ "weight": 1,
213
+ "priority": 2,
214
+ "points": 14
215
+ }
216
+ ],
217
+ "byItem": {
218
+ "lunches:0": {
219
+ "rules": [
220
+ {
221
+ "id": "one-at-a-time:t1",
222
+ "kept": true,
223
+ "amount": 0,
224
+ "rows": []
225
+ },
226
+ {
227
+ "id": "one-at-a-time:t2",
228
+ "kept": true,
229
+ "amount": 0,
230
+ "rows": []
231
+ },
232
+ {
233
+ "id": "one-at-a-time:t3",
234
+ "kept": true,
235
+ "amount": 0,
236
+ "rows": []
237
+ }
238
+ ]
239
+ },
240
+ "use:0": {
241
+ "rules": [
242
+ {
243
+ "id": "one-at-a-time:t1",
244
+ "kept": true,
245
+ "amount": 0,
246
+ "rows": []
247
+ },
248
+ {
249
+ "id": "one-at-a-time:t2",
250
+ "kept": true,
251
+ "amount": 0,
252
+ "rows": []
253
+ },
254
+ {
255
+ "id": "one-at-a-time:t3",
256
+ "kept": true,
257
+ "amount": 0,
258
+ "rows": []
259
+ }
260
+ ]
261
+ },
262
+ "use:1": {
263
+ "rules": [
264
+ {
265
+ "id": "one-at-a-time:t1",
266
+ "kept": true,
267
+ "amount": 0,
268
+ "rows": []
269
+ },
270
+ {
271
+ "id": "one-at-a-time:t2",
272
+ "kept": true,
273
+ "amount": 0,
274
+ "rows": []
275
+ },
276
+ {
277
+ "id": "one-at-a-time:t3",
278
+ "kept": true,
279
+ "amount": 0,
280
+ "rows": []
281
+ }
282
+ ]
283
+ },
284
+ "use:2": {
285
+ "rules": [
286
+ {
287
+ "id": "one-at-a-time:t1",
288
+ "kept": true,
289
+ "amount": 0,
290
+ "rows": []
291
+ },
292
+ {
293
+ "id": "one-at-a-time:t2",
294
+ "kept": true,
295
+ "amount": 0,
296
+ "rows": []
297
+ },
298
+ {
299
+ "id": "one-at-a-time:t3",
300
+ "kept": true,
301
+ "amount": 0,
302
+ "rows": []
303
+ }
304
+ ]
305
+ },
306
+ "use:3": {
307
+ "rules": [
308
+ {
309
+ "id": "one-at-a-time:t1",
310
+ "kept": true,
311
+ "amount": 0,
312
+ "rows": []
313
+ },
314
+ {
315
+ "id": "one-at-a-time:t2",
316
+ "kept": true,
317
+ "amount": 0,
318
+ "rows": []
319
+ },
320
+ {
321
+ "id": "one-at-a-time:t3",
322
+ "kept": true,
323
+ "amount": 0,
324
+ "rows": []
325
+ }
326
+ ]
327
+ },
328
+ "v1": {
329
+ "rules": [
330
+ {
331
+ "id": "technician.travel",
332
+ "kept": true,
333
+ "amount": 0,
334
+ "rows": []
335
+ },
336
+ {
337
+ "id": "visit.open",
338
+ "kept": true,
339
+ "amount": 0,
340
+ "rows": [
341
+ "v1"
342
+ ]
343
+ },
344
+ {
345
+ "id": "visit.close",
346
+ "kept": true,
347
+ "amount": 0,
348
+ "rows": [
349
+ "v1"
350
+ ]
351
+ },
352
+ {
353
+ "id": "visit.ready",
354
+ "kept": true,
355
+ "amount": 0,
356
+ "rows": [
357
+ "v1"
358
+ ]
359
+ },
360
+ {
361
+ "id": "visit.deadline",
362
+ "kept": true,
363
+ "amount": 0,
364
+ "rows": [
365
+ "v1"
366
+ ]
367
+ }
368
+ ]
369
+ },
370
+ "v2": {
371
+ "rules": [
372
+ {
373
+ "id": "technician.travel",
374
+ "kept": true,
375
+ "amount": 0,
376
+ "rows": [
377
+ "t1:v1>v2"
378
+ ]
379
+ },
380
+ {
381
+ "id": "visit.open",
382
+ "kept": true,
383
+ "amount": 0,
384
+ "rows": [
385
+ "v2"
386
+ ]
387
+ },
388
+ {
389
+ "id": "visit.close",
390
+ "kept": true,
391
+ "amount": 0,
392
+ "rows": [
393
+ "v2"
394
+ ]
395
+ },
396
+ {
397
+ "id": "visit.ready",
398
+ "kept": true,
399
+ "amount": 0,
400
+ "rows": [
401
+ "v2"
402
+ ]
403
+ },
404
+ {
405
+ "id": "visit.deadline",
406
+ "kept": true,
407
+ "amount": 0,
408
+ "rows": [
409
+ "v2"
410
+ ]
411
+ }
412
+ ]
413
+ },
414
+ "v3": {
415
+ "rules": [
416
+ {
417
+ "id": "technician.travel",
418
+ "kept": true,
419
+ "amount": 0,
420
+ "rows": []
421
+ },
422
+ {
423
+ "id": "visit.open",
424
+ "kept": true,
425
+ "amount": 0,
426
+ "rows": [
427
+ "v3"
428
+ ]
429
+ },
430
+ {
431
+ "id": "visit.close",
432
+ "kept": true,
433
+ "amount": 0,
434
+ "rows": [
435
+ "v3"
436
+ ]
437
+ },
438
+ {
439
+ "id": "visit.ready",
440
+ "kept": true,
441
+ "amount": 0,
442
+ "rows": [
443
+ "v3"
444
+ ]
445
+ },
446
+ {
447
+ "id": "visit.deadline",
448
+ "kept": true,
449
+ "amount": 0,
450
+ "rows": [
451
+ "v3"
452
+ ]
453
+ }
454
+ ]
455
+ },
456
+ "v4": {
457
+ "rules": [
458
+ {
459
+ "id": "technician.travel",
460
+ "kept": true,
461
+ "amount": 0,
462
+ "rows": []
463
+ },
464
+ {
465
+ "id": "visit.open",
466
+ "kept": true,
467
+ "amount": 0,
468
+ "rows": []
469
+ },
470
+ {
471
+ "id": "visit.close",
472
+ "kept": true,
473
+ "amount": 0,
474
+ "rows": []
475
+ },
476
+ {
477
+ "id": "visit.ready",
478
+ "kept": true,
479
+ "amount": 0,
480
+ "rows": []
481
+ },
482
+ {
483
+ "id": "visit.deadline",
484
+ "kept": true,
485
+ "amount": 0,
486
+ "rows": []
487
+ }
488
+ ]
489
+ },
490
+ "v5": {
491
+ "rules": [
492
+ {
493
+ "id": "technician.travel",
494
+ "kept": true,
495
+ "amount": 0,
496
+ "rows": []
497
+ },
498
+ {
499
+ "id": "visit.open",
500
+ "kept": true,
501
+ "amount": 0,
502
+ "rows": [
503
+ "v5"
504
+ ]
505
+ },
506
+ {
507
+ "id": "visit.close",
508
+ "kept": true,
509
+ "amount": 0,
510
+ "rows": [
511
+ "v5"
512
+ ]
513
+ },
514
+ {
515
+ "id": "visit.ready",
516
+ "kept": true,
517
+ "amount": 0,
518
+ "rows": [
519
+ "v5"
520
+ ]
521
+ },
522
+ {
523
+ "id": "visit.deadline",
524
+ "kept": true,
525
+ "amount": 0,
526
+ "rows": [
527
+ "v5"
528
+ ]
529
+ }
530
+ ]
531
+ },
532
+ "v6": {
533
+ "rules": [
534
+ {
535
+ "id": "technician.travel",
536
+ "kept": true,
537
+ "amount": 0,
538
+ "rows": [
539
+ "t3:v5>v6"
540
+ ]
541
+ },
542
+ {
543
+ "id": "visit.open",
544
+ "kept": true,
545
+ "amount": 0,
546
+ "rows": [
547
+ "v6"
548
+ ]
549
+ },
550
+ {
551
+ "id": "visit.close",
552
+ "kept": true,
553
+ "amount": 0,
554
+ "rows": [
555
+ "v6"
556
+ ]
557
+ },
558
+ {
559
+ "id": "visit.ready",
560
+ "kept": true,
561
+ "amount": 0,
562
+ "rows": [
563
+ "v6"
564
+ ]
565
+ },
566
+ {
567
+ "id": "visit.deadline",
568
+ "kept": true,
569
+ "amount": 0,
570
+ "rows": [
571
+ "v6"
572
+ ]
573
+ }
574
+ ]
575
+ }
576
+ },
577
+ "modes": {
578
+ "@optional:[\"visit\",\"v1\"]": "yes",
579
+ "@optional:[\"visit\",\"v2\"]": "yes",
580
+ "@optional:[\"visit\",\"v3\"]": "yes",
581
+ "@optional:[\"visit\",\"v4\"]": "no",
582
+ "@optional:[\"visit\",\"v5\"]": "yes",
583
+ "@optional:[\"visit\",\"v6\"]": "yes"
584
+ }
585
+ }