Testing the Jev Decision Model on Routing, Rostering and Nurses' Notes

I tested the Jev decision model on vehicle routing, nurse rostering and messy nurses' notes. It was a weak planner, but a very good reader.

In September, TypeSafe released Jev and called it a decision model. It doesn’t chat and it doesn’t write. You give it a situation and a few typed questions, and it returns probabilities in about a quarter of a second.

That caught my attention for a personal reason. A good part of my PhD was about where a learned model should sit inside a classical optimization pipeline, and in my last post I wrote that bringing learning into classical optimization is one of the two research paths I want to keep working on. A model that answers this fast and this cheaply is exactly the kind of component I wanted to test there, so I did.

Summary

I put Jev to work on two classic planning problems, capacitated vehicle routing and nurse rostering, and on one problem that a solver can’t touch at all: reading short notes from nurses and turning them into solver inputs. I compared it against the usual rules and solvers, and against Kev, an open decision model running on my laptop. In total, the study made 134,368 model calls (127,564 hosted and 6,804 local) and cost $7.78. Every answer is cached, so every number below can be replayed without an API key.

In short:

  • Its confidence is well calibrated. Picks it gave 0.8–1.0 were right 90–92% of the time.
  • As a step-by-step planner, it is weak. It beat the nearest-stop rule on routing, but lost clearly to Clarke & Wright (1964), and it lost to a one-line greedy rule on rosters.
  • As a warm start for a solver, or as a judge inside a simple rule, the results are mixed. It helped a little, or only when the rule was weak.
  • As a reader of messy notes, with a confidence gate that sends unsure notes to a person, it was as good as a perfect reading, for a fifth of a cent.

I also made a video about this study. It shows the routes and rosters being built step by step, and it is the easier way in if you prefer watching. This post is the written version, with the full numbers and the method.

Nothing is requested from YouTube until you press play. Watch on YouTube instead.

What a decision model is

A decision model takes a state, which is text or an image, and a set of typed questions, and returns one probability distribution per question. There are four question types, and each one maps to something we already write in code: a yes/no question is an if, a choice (up to 255 options) is a switch, a score (up to 10 ordered levels) is a sort key, and a box picks a region of an image. Figure 1 shows one real call from the study.

One call, eight answersA nurse's note and the eight probabilities the model returned for it in a single call: Thursday off 0.95, every other day 0.11 or less, and avoid mornings 1.00.
Figure 1. One call to Jev. The state is a nurse's note; the questions are seven yes/no questions, one per day, and one choice of which shift to avoid. All eight answers came back from a single call: Thursday off 0.95, every other day 0.11 or less, and avoid mornings 1.00.
Show the numbers
Every answer from the one call (state: the nurse's note)
QuestionTypeProbability
Mon off?yes / no0.11
Tue off?yes / no0.03
Wed off?yes / no0.02
Thu off?yes / no0.95
Fri off?yes / no0.02
Sat off?yes / no0.03
Sun off?yes / no0.03
Avoid which shift?choice → Morning1.00

The reason it is fast is that it never generates text. A language model normally does two jobs: it reads the input in one parallel pass (prefill), and then writes the output one token at a time, which is the slow part. TypeSafe reports that large chat models took between 3 seconds and over five minutes per answer on their tasks. Jev, as far as I can tell, only does the first job. It reads the state once and reads off one logit per option, and a softmax turns those logits into probabilities. Several questions can share the same reading of the state (the KV cache), each one branching off it without seeing the others. Because nothing is generated, only the input is billed.

The latency in Figure 2 is consistent with this picture. In my first probes, 64 questions in one call took about as long as one, and across the whole study the number of options in a question made no difference.

Median latency by number of optionsMedian latency stays between 233 and 273 ms whether a question has 2 options or 51, over 110,868 single-question calls.
Figure 2. Median latency of the 110,868 calls that asked a single choice question, grouped by the number of options. From 2 options to 51, the median stays around a quarter of a second, including the round trip over the internet.
Show the numbers
Median latency of the 110,868 calls that asked one choice question, by number of options
OptionsMedian latencyCalls
2–3273 ms64,634
4–6266 ms8,642
7–10272 ms6,052
11–16233 ms8,403
17–25238 ms15,326
26–51235 ms7,811

TypeSafe hasn’t published how Jev is built or trained, so I want to separate what is confirmed from what is my reconstruction. Confirmed: it answers in one pass (measured), the questions can’t see each other (documented), and output is free. My reconstruction: it is probably built on an open Qwen model, and it is probably trained with a proper scoring rule, such as the Brier score, on the probabilities it reads out.

The training is the interesting part, because for a decision model the probability is the product. Chat models are known to lose calibration when they are tuned to please people: the GPT-4 technical report shows the calibration error going from 0.007 before that tuning to 0.074 after it. One published fix is RLCR, reinforcement learning with calibration rewards (Damani et al., ICLR 2026), where a model writes an answer and a confidence, and is rewarded for being right minus the Brier score of its confidence. TypeSafe calls its own method RLCD, reinforcement learning for calibrated decisions. As far as I can tell, the difference is that nothing is written: the probabilities themselves are the output, trained against known outcomes. The video goes through this part with a worked example, from 10:37.

The recipe is also no longer secret. Kev, the open model I tested, starts from Qwen3.5 with 4 billion parameters, keeps it frozen, and adds a LoRA adapter and a pointer head that reads one number at each option’s position. Cloudflare’s Clef is built the same way.

How I tested it

The question was simple: can a typed decision model replace a hand-written rule inside a planning loop, and if not, where does it help? I tested four ways of using it:

  1. as a policy that makes every move of a sequential construction;
  2. as a judge inside a rule, picking one of the rule’s top three candidates;
  3. as a warm start, handing its solution to a real solver;
  4. as a translator, turning free text into solver inputs, with a confidence gate that sends unsure cases to a person.

The problems

Capacitated vehicle routing (CVRP). One van serves every stop exactly once from a depot, with a capacity of 20 boxes on the 10-stop maps and 40 on the 50-stop maps, and stop demands between 1 and 9. The objective is the total distance. Instances follow the convention of Kool et al. (2019): integer coordinates on a 0–100 grid, the depot at the centre. I used 20 maps per size.

Nurse rostering (NSP). Three shifts a day. The hard rules are exact coverage, at most one shift per nurse per day, and no night shift followed by a morning shift. The soft rules form a penalty: 10 points per broken day-off request, 4 points per shift worked of a type the nurse wants to avoid, and 5 points per shift of difference between the busiest and least busy nurse. The small wards have 10 nurses for one week and the medium wards 25 nurses for four weeks, with 20 wards per size. My first version had no avoided shift, and the greedy rule was within 0–7% of the optimum everywhere, so there was nothing to learn. Adding the avoided shift put greedy 20–40% from the optimum.

Nurses’ notes. I wrote 60 short notes, such as “No nights please, I have exams this month,” and labelled each one by hand with the days off and the shift to avoid. Each note gets one call with eight questions: seven yes/no questions for the days and one choice for the shift. The notes then feed six wards of 10 nurses, which CP-SAT rosters; each roster is scored against the true wishes.

How the model is used inside the loop

Both planning problems are built as Markov decision processes. In routing, the state is where the van is, the load left and the stops left, and the action is the next stop or a return to the depot. In rostering, the roster is filled one (day, shift) slot at a time. The most important design rule is that the code owns feasibility: at every step, the code lists only the legal moves, so the model can never break capacity or a hard roster rule. It only makes the judgment calls.

The model sees a short text board: the goal, the capacity or the slot, and each legal move with the facts a dispatcher or head nurse would check, such as distances, demands, loads and requests. I used two kinds of question: one choice over all legal moves, or one score question per move. Because these models are known to favour the first option in a list, I shuffled the options in every call, and every Jev method ran three times.

Baselines and setup

For routing, the baselines are the nearest-stop rule, the Clarke & Wright savings heuristic (1964), and OR-Tools with guided local search, under a fixed budget of 300 solutions (about one second). The reference route for each map is the best that any method found, mostly from a 60-second OR-Tools run. For rostering, they are a greedy rule (the cheapest legal nurse right now, ties broken by load), greedy followed by simulated annealing, and CP-SAT, which proved the optimum on all 40 wards in under a second on average.

The hosted model was typesafe/jev-1.13, served as -20260917. Kev-4B ran locally on an Apple M4 Pro, once per instance at its default temperature. Every response is cached by a hash of the model, state, questions and repeat tag, so the whole study replays offline.

Results

Calibration

To test calibration directly, I walked the best-known route of every map, and at each step asked Jev which stop comes next: 1,298 decisions in total. Figure 3 groups them by the probability Jev gave its pick. Accuracy rises with stated confidence and stays close to the diagonal on both map sizes. When it said 0.8–1.0, it was right about nine times in ten; when it said 0.2–0.4, a quarter to a third of the time. This property turns out to matter more than its accuracy, as the notes experiment shows.

Calibration of Jev on routing decisionsWhen Jev gave its pick 0.8 to 1.0 it was right about nine times in ten; at 0.2 to 0.4, about a quarter to a third of the time. Both map sizes track the line of perfect calibration.
Figure 3. Calibration of Jev on routing decisions. "Right" means the best-known route makes that move. The dashed diagonal is perfect calibration.
Show the numbers
Accuracy by stated probability, walking the best-known routes
Map size, probability bandMean probabilityRightDecisions
10-stop maps, 0.2–0.40.3425.0%16
10-stop maps, 0.4–0.60.5249.3%67
10-stop maps, 0.6–0.80.7170.1%77
10-stop maps, 0.8–1.00.8992.3%65
50-stop maps, 0.2–0.40.3233.6%113
50-stop maps, 0.4–0.60.5165.0%274
50-stop maps, 0.6–0.80.7079.7%462
50-stop maps, 0.8–1.00.8689.5%239

One warning: independent testers found Jev less calibrated on data far from what it was trained on, such as a set of legal questions. I would check it on my own data before relying on it.

As a step-by-step planner

Figure 4 shows routing. On the 10-stop maps, Jev’s routes were 15.0% longer than the best route. That beats the nearest-stop rule (23.5%) but is far behind Clarke & Wright (1.4%). On the 50-stop maps the gap widens: Jev at 25.9% against 4.5% for Clarke & Wright. Two attempts to help it made things worse on the larger maps: sampling eight routes and keeping the best (44.6%), and adding more facts to the board, like the trips still needed and each stop’s nearest neighbours (31.3%). Kev was the weakest method at both sizes.

Route length above the best route foundMean gap to the best route found, 20 maps per size. OR-Tools 0.0 and 2.9 percent, Clarke and Wright 1.4 and 4.5, Jev 15.0 and 25.9, nearest stop 23.5 and 40.2, Kev 24.9 and 61.6.
Figure 4. Mean gap to the best route found, 20 maps per size. Hollow marks are the 10-stop maps and filled marks the 50-stop maps. Jev's main row asks one choice question per move.
Show the numbers
Mean gap to the best route found, 20 maps per size
Method10 stops50 stops
OR-Tools (about 1 s of search)0.0%2.9%
Clarke & Wright (the 1964 savings rule)1.4%4.5%
Jev (one choice per move)15.0%25.9%
Jev, more facts on the board (board v2)22.1%31.3%
Nearest stop (the obvious rule)23.5%40.2%
Jev, best of 8 routes (sampled, keep the best)14.5%44.6%
Kev (open 4B model, score mode)24.9%61.6%

Figure 5 shows why. Each of Jev’s moves looks reasonable on its own, but it decides one step at a time and has no lookahead, so its trips cross each other and double back. Clarke & Wright only ever reasons about whole trips, and its routes form loops around the depot.

Jev's route on map cvrp50-s14Jev's 9 trips on a 50-stop map, 25.5 percent longer than the best route found. The trips cross each other and double back.
Clarke & Wright's route on map cvrp50-s14Clarke & Wright's 8 trips on a 50-stop map, 3.4 percent longer than the best route found. The trips form neat loops around the depot.
Figure 5. Jev and Clarke & Wright on the same 50-stop map. The square is the depot. Hover a trip for its length.
Show the numbers
Both routes on map cvrp50-s14 (50 stops), against the best route found
MethodTripsTotal lengthAbove best
Jev, one choice per move91,25125.5%
Clarke & Wright81,0073.4%
Best found (OR-Tools, 60 s)89750.0%

Rostering tells the same story. Figure 6 shows one small ward filled three ways: greedy reaches 40 penalty points, Jev 44, and the optimum is 35. All three break the same three day-off requests, because coverage forces it, so the differences come from fairness and avoided shifts.

Greedy rule's roster for one small wardGreedy rule: 40 penalty points, from 3 broken day-off requests, 0 avoided shifts worked, and a load spread of 2.
Jev's roster for one small wardJev: 44 penalty points, from 3 broken day-off requests, 1 avoided shifts worked, and a load spread of 2.
CP-SAT optimum's roster for one small wardCP-SAT optimum: 35 penalty points, from 3 broken day-off requests, 0 avoided shifts worked, and a load spread of 1.
Figure 6. One ward of 10 nurses over one week, rostered by the greedy rule, by Jev scoring each available nurse, and by CP-SAT.
Show the numbers
Penalty breakdown: 10 per broken request, 4 per avoided shift worked, 5 × (most shifts − fewest shifts)
RosterTotalRequests brokenAvoided shifts workedLoad spread
Greedy rule40302
Jev44312
CP-SAT optimum35301

Across all 40 wards (Figure 7), Jev is behind the one-line greedy rule at both sizes: 19.4 points above the optimum against 13.9 on the small wards, and 50.7 against 26.8 on the medium wards. One more result is worth noting. At scale, one score question per nurse was far more robust than one choice over all nurses (50.7 against 135.5 on the medium wards). I think the cause is the first-option bias combined with probability mass spreading thin over 25 options. Interestingly, the pattern doesn’t hold for Kev, so it seems to be a property of the model rather than of the problem.

Roster penalty above the proven optimumMean penalty points above the CP-SAT optimum, 20 wards per size. Greedy 13.9 and 26.8, Jev scoring each nurse 19.4 and 50.7, Jev with one choice 23.3 and 135.5.
Figure 7. Mean penalty points above the CP-SAT optimum, 20 wards per size.
Show the numbers
Mean penalty points above the CP-SAT optimum, 20 wards per size
Method10 nurses × 1 week25 nurses × 4 weeks
CP-SAT (proven optimal on every ward)0.00.0
Greedy + annealing (the well-known heuristic)0.814.5
Greedy rule (cheapest nurse right now)13.926.8
Jev, scoring each nurse (score mode)19.450.7
Kev (open 4B model, choice mode)19.666.9
Jev, one choice over all (choice mode)23.3135.5

As a warm start

Next, I handed each method’s route to OR-Tools with the same fixed budget. Starting from scratch, OR-Tools ended 2.9% above the best route; starting from Clarke & Wright, 2.5%; starting from Jev’s best of eight routes, 1.9%. The averages favour Jev, but the paired comparison over the same 20 maps (Figure 8) doesn’t support a claim: every 95% interval crosses zero, and Jev’s start beat the Clarke & Wright start on 11 maps and lost on 8. What I can say is that a decent start doesn’t hurt, and may help a little.

Warm starts: paired differences on 50-stop mapsAll three paired differences have 95 percent intervals that cross zero, so none of the warm-start advantages is proven with 20 maps.
Figure 8. Paired differences in final gap between starting points, on the 50-stop maps, with 95% intervals.
Show the numbers
OR-Tools with the same fixed budget, from different starting routes (20 maps of 50 stops)
ComparisonMean difference95% intervalWins / losses
Jev best of 8 → OR-Tools vs Clarke & Wright → OR-Tools-0.60-1.56 to +0.3611 / 8
Jev best of 8 → OR-Tools vs OR-Tools from scratch-0.97-2.31 to +0.3610 / 9
Clarke & Wright → OR-Tools vs OR-Tools from scratch-0.37-1.44 to +0.7011 / 9
Final gap: OR-Tools from scratch2.9%
Final gap: from Clarke & Wright2.5%
Final gap: from Jev best of 81.9%

As a judge inside a rule

In this setup the rule proposes its three best candidates, and Jev picks one. A gated version falls back to the rule’s own first choice whenever Jev’s probability is below 0.6. Figure 9 shows that this helps when the rule is weak and hurts when it is strong. On routing, picking among the three nearest stops cut the gap from 40.2% to 32.7%, and gave shorter routes than the rule on 15 of the 20 maps. Jev agreed with the rule 88% of the time, and the few disagreements, mostly returning to reload earlier, are what helped. On rosters, the same idea raised the penalty from 26.8 to 42.6, and the gate brought it back to 30.4, still worse than greedy alone.

Jev choosing from a simple rule's shortlistOn routing, where the rule is weak, Jev choosing among the rule's top three cuts the gap from 40.2 to 32.7 percent. On rosters, where the rule is strong, it raises the penalty from 26.8 to 42.6; the 0.6 gate brings it back to 30.4.
Figure 9. The rule alone, Jev choosing from the rule's top three, and the same with a 0.6 confidence gate, at the larger size of each problem.
Show the numbers
The rule alone, Jev choosing from the rule's top 3, and the same with a 0.6 confidence gate (20 instances each)
ProblemRule aloneJev, top 3Jev, gatedJev's pick kept (gated)
Routing, 10 stops (gap)23.5%20.3%22.6%67%
Routing, 50 stops (gap)40.2%32.7%39.5%69%
Rosters, 10 nurses (points over optimum)+13.9+20.9+17.171%
Rosters, 25 nurses (points over optimum)+26.8+42.6+30.456%

The gate cuts both ways. It protects a strong rule, but against a weak one it throws away exactly the deviations that help, because in routing Jev’s useful disagreements were its low-confidence ones.

As a reader with a confidence gate

The last experiment gives the model the kind of job it was designed for. A solver needs a clean table of wishes, while nurses write notes like “Away from Friday to Sunday, family trip” or “Afternoons clash with my kids’ pickup, so mornings or nights only.” On the 60 notes, Jev got 98.3% of the fields right and 90% of the notes completely right.

The gate sends a note to a person if any day’s probability is strictly between 0.2 and 0.8, or if the model is less than 50% sure which shift to avoid. It flagged 15 notes, one in four, and all six of Jev’s mistakes were among them (Figure 10). Every one of the 45 notes it accepted was read correctly. The first flagged note is a good example: “Can’t do Tuesday, dentist at 10.” Jev gave Tuesday 0.49, and honestly, I would hesitate there too.

Sixty nurses' notes and the confidence gateOf 60 notes, 45 were accepted automatically and all were read right. The gate sent 15 to a human, and all 6 of Jev's mistakes were among them.
Figure 10. The 60 notes, one dot each, split by where the gate sent them. Hover a dot to read the note and what Jev read from it.
Show the numbers
Every note: where the gate sent it, and what Jev read
NoteGateReadingJev readTrue wishes
1. Can't do Tuesday, dentist at 10.humanwrongno days off · MorningTue · none
2. No nights please, I have exams this month.autorightno days off · Nightnone · Night
3. My sister's wedding is on Saturday so I need the whole weekend off.autorightSat, Sun · no shift to avoidSat, Sun · none
4. Anything works for me this week!autorightno days off · no shift to avoidnone · none
5. Mornings are really hard with the school run. Afternoons or nights are fine.autorightno days off · Morningnone · Morning
6. I'd like Friday off if possible. Also no night shifts.autorightFri · NightFri · Night
7. Off Mon and Wed, physio appointments.autorightMon, Wed · no shift to avoidMon, Wed · none
8. I can work Thursday, just not Wednesday.humanrightWed · no shift to avoidWed · none
9. pls no mornings, and i need thurs off for my kid's recitalautorightThu · MorningThu · Morning
10. Happy to pick up extra shifts. Only thing: not Sunday, church.autorightSun · no shift to avoidSun · none
11. Away from Friday to Sunday, family trip.autorightFri, Sat, Sun · no shift to avoidFri, Sat, Sun · none
12. Nights suit me best actually, avoid giving me afternoons if you can.autorightno days off · Afternoonnone · Afternoon
13. Monday is my daughter's birthday, I want to be home with her.humanrightMon · no shift to avoidMon · none
14. Not working weekends this time please.autorightSat, Sun · no shift to avoidSat, Sun · none
15. No preferences.autorightno days off · no shift to avoidnone · none
16. Could I have Wednesday off? Moving apartments.autorightWed · no shift to avoidWed · none
17. I'm fine with any day but I really can't do nights anymore, doctor's orders.autorightno days off · Nightnone · Night
18. Need Saturday off. Sunday is fine.autorightSat · no shift to avoidSat · none
19. Off on the first day of the week please.humanwrongMon, Sun · no shift to avoidMon · none
20. I've worked a lot of nights lately, could I avoid them this week?autorightno days off · Nightnone · Night
21. Friday off for a funeral.autorightFri · no shift to avoidFri · none
22. Early shifts are rough for me, I take the first bus at 6. Days: no restrictions.autorightno days off · Morningnone · Morning
23. Can't work Tuesday or Saturday.autorightTue, Sat · no shift to avoidTue, Sat · none
24. Any shift, any day.autorightno days off · no shift to avoidnone · none
25. I'll be at a conference Wed to Thu.humanwrongno days off · no shift to avoidWed, Thu · none
26. Afternoons clash with my kids' pickup, so mornings or nights only.autorightno days off · Afternoonnone · Afternoon
27. Sunday off please, and if possible no nights.autorightSun · NightSun · Night
28. I could do the weekend, but Monday I'm out.autorightMon · no shift to avoidMon · none
29. No mornings. Also off Fri.humanrightFri · MorningFri · Morning
30. Please avoid scheduling me on Thursday.humanrightThu · no shift to avoidThu · none
31. Visiting my parents Saturday, back the same night.humanwrongno days off · no shift to avoidSat · none
32. Nothing special this week, thanks!autorightno days off · no shift to avoidnone · none
33. I need Monday and Tuesday off, and I prefer not to do nights.autorightMon, Tue · NightMon, Tue · Night
34. Would love Sunday off, it's my anniversary.autorightSun · no shift to avoidSun · none
35. Wednesday's out for me, jury duty.autorightWed · no shift to avoidWed · none
36. I'm okay with nights, mornings, whatever. Just not afternoons, I have therapy.autorightno days off · Afternoonnone · Afternoon
37. Off Thu + Fri pls.autorightThu, Fri · no shift to avoidThu, Fri · none
38. Saturday I'm running a marathon.humanwrongno days off · no shift to avoidSat · none
39. Can I get Tuesday? Off, I mean.autorightTue · no shift to avoidTue · none
40. No night shifts this week, my partner is traveling and I'm alone with the baby.autorightno days off · Nightnone · Night
41. Working is fine every day except the weekend days.humanrightSat, Sun · no shift to avoidSat, Sun · none
42. Morning shifts are not great for me, but days are flexible.autorightno days off · Morningnone · Morning
43. I'm free all week.autorightno days off · no shift to avoidnone · none
44. Need off on Fri & Sat for a family event.autorightFri, Sat · no shift to avoidFri, Sat · none
45. Thursday is a no for me.humanrightThu · no shift to avoidThu · none
46. Please don't put me on nights. I'd also like Monday off.autorightMon · NightMon · Night
47. I can take extra afternoons. Avoid mornings if you can.autorightno days off · Morningnone · Morning
48. Sunday please, off.autorightSun · no shift to avoidSun · none
49. Wed off, kid's surgery.autorightWed · no shift to avoidWed · none
50. Nights are fine, mornings are fine, I'll work anything except Tuesday.autorightTue · no shift to avoidTue · none
51. Out of town Friday and Saturday.humanrightFri, Sat · no shift to avoidFri, Sat · none
52. I'd rather not do afternoons. Days off: Sunday.autorightSun · AfternoonSun · Afternoon
53. Monday off pls, and no nights.autorightMon · NightMon · Night
54. I don't mind which days. Could you keep me off nights though?autorightno days off · Nightnone · Night
55. Off Saturday.autorightSat · no shift to avoidSat · none
56. Any day but Wednesday or Friday.humanrightWed, Fri · no shift to avoidWed, Fri · none
57. No requests.autorightno days off · no shift to avoidnone · none
58. Not available Mon, Tue, Wed, I'm on a course.humanrightMon, Tue, Wed · no shift to avoidMon, Tue, Wed · none
59. Mornings please avoid. Weekend off if possible.humanwrongSun · MorningSat, Sun · Morning
60. Tuesday off. I'm happy doing nights.autorightTue · no shift to avoidTue · none

Figure 11 shows what the reading is worth to the solver. Ignoring the notes, the six rosters score 555 penalty points against the true wishes. With Jev’s reading alone, 63. With Jev’s reading and a person checking only the 15 flagged notes, 30, which is exactly what a perfect reading gives, on every one of the 10 solver seeds. The reading cost $0.0019 in total, about a quarter of a second per note. Kev with the same gate reached 37.6, at no cost. Its typical mistake was reading no days at all from notes that name several, such as “Not available Mon, Tue, Wed, I’m on a course.”

What reading the notes is worth to the solverRoster penalty on the true wishes, six wards: ignoring the notes 555, Jev's reading 63, Jev plus a human on the flagged notes 30, the same as a perfect reading at 30.
Figure 11. Roster penalty on the nurses' true wishes, six wards, mean and range over 10 CP-SAT seeds.
Show the numbers
Roster penalty on the true wishes, six wards of 10 nurses; mean and range over 10 CP-SAT seeds
Input to the solverMeanRange
Ignore the notes555472–602
Kev reads them (open 4B model)135.8108–162
Jev reads them6350–70
Kev + a human on flagged notes37.630–46
Jev + a human on flagged notes3030–30
A perfect reading3030–30

Discussion

Table 1 puts the four roles side by side.

Role What the model does Result
Policy makes every move of the plan Weak. Behind a 1964 heuristic on routing and a one-line rule on rosters
Judge inside a rule picks one of a rule’s top three Mixed. Helps a weak rule, hurts a strong one
Warm start gives a solver its first plan Unclear. A small edge that isn’t significant with 20 maps
Translator with a gate turns notes into solver inputs, flags unsure ones Strong. As good as a perfect reading

Table 1. Summary of results.

I think the pattern has a simple explanation. As a policy, the model sees one step at a time and has no lookahead, which is exactly what construction heuristics like Clarke & Wright and solvers like OR-Tools are built around. As a reader, the job is local, the input is messy text that solvers can’t use at all, and the model’s honest confidence turns into a working gate. Calibration is what separates a decision model from a cheap classifier here.

If I were adding a decision model to a planning system, this is the order I would try things in:

  1. As a translator from messy text or images into solver inputs.
  2. With a confidence gate, sending unsure cases to a person or to the slow solver.
  3. As a judge inside a rule, but only if the rule is weak.
  4. As a warm start, knowing the benefit isn’t proven.
  5. As the planner itself, which is the use I would avoid.

I would also not use one inside a search loop that evaluates millions of moves, where a quarter of a second per call is far too slow, or anywhere a proven optimum is required. In other words, the model reads the messy input and says how sure it is, the solver builds the plan and handles the hard rules, and a person handles the unsure cases and has the final say.

This sits on a longer line of work. Pointer Networks (2015) taught a network to point at one of its inputs; Kool et al. (2019) framed routing as a sequence of decisions and trained a policy for it with reinforcement learning; POMO (2020) ran many rollouts and kept the best; and FunSearch (2024) used language models to write heuristics as code. Decision models like Jev, Kev and Clef are different because they are general: they are not trained on your problem at all. That is their strength, and also exactly why a specialist beats them at planning.

Limitations

  • For routing, the reference is the best route any method found, not a proven optimum. For rostering, CP-SAT did prove the optimum on all 40 wards.
  • OR-Tools and simulated annealing ran on fixed budgets on one laptop, so their numbers can move slightly on another machine.
  • Kev ran once per instance at its default temperature (2.41), against three repeats for Jev.
  • I wrote and labelled the 60 notes myself. They are not a public benchmark.
  • Jev is a hosted, versioned model, and a later version may behave differently. The cached answers freeze what I measured.
  • The description of how Jev is built and trained is my reconstruction from its documentation, independent tests and my own measurements, not a published method.

Conclusion

To put it short, the decision model lost when I asked it to plan, and won when I asked it to read. I don’t see that as a disappointment. The most useful result of the whole study wasn’t its accuracy but its honesty: because its confidence was calibrated, a simple threshold was enough to decide when a person should look, and the combination matched a perfect reading at almost no cost.

That is also how I now think about these models in optimization. They are not a replacement for a solver or for a well-designed heuristic. They are a fast, cheap way to bring messy, human information into a pipeline that already works, as long as they can tell you when they are unsure. If you have a planning problem where that could help, I would be happy to hear about it by email.

Code, data and the book

If you are interested in turning business problems into decisions that software can make, that is what my book Applied Reinforcement Learning: Business optimization and LLM fine-tuning is about. Chapter 3 covers building your own environment, like the van and the ward here, and chapter 7 covers search that plans ahead, which is exactly what Jev was missing.

References

  • Brier (1950). Verification of forecasts expressed in terms of probability. Monthly Weather Review.
  • Clarke & Wright (1964). Scheduling of vehicles from a central depot to a number of delivery points. Operations Research.
  • Vinyals, Fortunato & Jaitly (2015). Pointer Networks. NeurIPS.
  • Kool, van Hoof & Welling (2019). Attention, Learn to Solve Routing Problems! ICLR.
  • Kwon et al. (2020). POMO: Policy Optimization with Multiple Optima for Reinforcement Learning. NeurIPS.
  • Hu et al. (2022). LoRA: Low-Rank Adaptation of Large Language Models. ICLR.
  • OpenAI (2023). GPT-4 Technical Report. arXiv.
  • Romera-Paredes et al. (2024). Mathematical discoveries from program search with large language models (FunSearch). Nature.
  • Damani et al. (2026). Beyond Binary Rewards: Training LMs to Reason About Their Uncertainty (RLCR). ICLR.