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.
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.
Show the numbers
| Question | Type | Probability |
|---|---|---|
| Mon off? | yes / no | 0.11 |
| Tue off? | yes / no | 0.03 |
| Wed off? | yes / no | 0.02 |
| Thu off? | yes / no | 0.95 |
| Fri off? | yes / no | 0.02 |
| Sat off? | yes / no | 0.03 |
| Sun off? | yes / no | 0.03 |
| Avoid which shift? | choice → Morning | 1.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.
Show the numbers
| Options | Median latency | Calls |
|---|---|---|
| 2–3 | 273 ms | 64,634 |
| 4–6 | 266 ms | 8,642 |
| 7–10 | 272 ms | 6,052 |
| 11–16 | 233 ms | 8,403 |
| 17–25 | 238 ms | 15,326 |
| 26–51 | 235 ms | 7,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:
- as a policy that makes every move of a sequential construction;
- as a judge inside a rule, picking one of the rule’s top three candidates;
- as a warm start, handing its solution to a real solver;
- 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.
Show the numbers
| Map size, probability band | Mean probability | Right | Decisions |
|---|---|---|---|
| 10-stop maps, 0.2–0.4 | 0.34 | 25.0% | 16 |
| 10-stop maps, 0.4–0.6 | 0.52 | 49.3% | 67 |
| 10-stop maps, 0.6–0.8 | 0.71 | 70.1% | 77 |
| 10-stop maps, 0.8–1.0 | 0.89 | 92.3% | 65 |
| 50-stop maps, 0.2–0.4 | 0.32 | 33.6% | 113 |
| 50-stop maps, 0.4–0.6 | 0.51 | 65.0% | 274 |
| 50-stop maps, 0.6–0.8 | 0.70 | 79.7% | 462 |
| 50-stop maps, 0.8–1.0 | 0.86 | 89.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.
Show the numbers
| Method | 10 stops | 50 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.
Show the numbers
| Method | Trips | Total length | Above best |
|---|---|---|---|
| Jev, one choice per move | 9 | 1,251 | 25.5% |
| Clarke & Wright | 8 | 1,007 | 3.4% |
| Best found (OR-Tools, 60 s) | 8 | 975 | 0.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.
Show the numbers
| Roster | Total | Requests broken | Avoided shifts worked | Load spread |
|---|---|---|---|---|
| Greedy rule | 40 | 3 | 0 | 2 |
| Jev | 44 | 3 | 1 | 2 |
| CP-SAT optimum | 35 | 3 | 0 | 1 |
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.
Show the numbers
| Method | 10 nurses × 1 week | 25 nurses × 4 weeks |
|---|---|---|
| CP-SAT (proven optimal on every ward) | 0.0 | 0.0 |
| Greedy + annealing (the well-known heuristic) | 0.8 | 14.5 |
| Greedy rule (cheapest nurse right now) | 13.9 | 26.8 |
| Jev, scoring each nurse (score mode) | 19.4 | 50.7 |
| Kev (open 4B model, choice mode) | 19.6 | 66.9 |
| Jev, one choice over all (choice mode) | 23.3 | 135.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.
Show the numbers
| Comparison | Mean difference | 95% interval | Wins / losses |
|---|---|---|---|
| Jev best of 8 → OR-Tools vs Clarke & Wright → OR-Tools | -0.60 | -1.56 to +0.36 | 11 / 8 |
| Jev best of 8 → OR-Tools vs OR-Tools from scratch | -0.97 | -2.31 to +0.36 | 10 / 9 |
| Clarke & Wright → OR-Tools vs OR-Tools from scratch | -0.37 | -1.44 to +0.70 | 11 / 9 |
| Final gap: OR-Tools from scratch | 2.9% | ||
| Final gap: from Clarke & Wright | 2.5% | ||
| Final gap: from Jev best of 8 | 1.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.
Show the numbers
| Problem | Rule alone | Jev, top 3 | Jev, gated | Jev'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.1 | 71% |
| Rosters, 25 nurses (points over optimum) | +26.8 | +42.6 | +30.4 | 56% |
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.
Show the numbers
| Note | Gate | Reading | Jev read | True wishes |
|---|---|---|---|---|
| 1. Can't do Tuesday, dentist at 10. | human | wrong | no days off · Morning | Tue · none |
| 2. No nights please, I have exams this month. | auto | right | no days off · Night | none · Night |
| 3. My sister's wedding is on Saturday so I need the whole weekend off. | auto | right | Sat, Sun · no shift to avoid | Sat, Sun · none |
| 4. Anything works for me this week! | auto | right | no days off · no shift to avoid | none · none |
| 5. Mornings are really hard with the school run. Afternoons or nights are fine. | auto | right | no days off · Morning | none · Morning |
| 6. I'd like Friday off if possible. Also no night shifts. | auto | right | Fri · Night | Fri · Night |
| 7. Off Mon and Wed, physio appointments. | auto | right | Mon, Wed · no shift to avoid | Mon, Wed · none |
| 8. I can work Thursday, just not Wednesday. | human | right | Wed · no shift to avoid | Wed · none |
| 9. pls no mornings, and i need thurs off for my kid's recital | auto | right | Thu · Morning | Thu · Morning |
| 10. Happy to pick up extra shifts. Only thing: not Sunday, church. | auto | right | Sun · no shift to avoid | Sun · none |
| 11. Away from Friday to Sunday, family trip. | auto | right | Fri, Sat, Sun · no shift to avoid | Fri, Sat, Sun · none |
| 12. Nights suit me best actually, avoid giving me afternoons if you can. | auto | right | no days off · Afternoon | none · Afternoon |
| 13. Monday is my daughter's birthday, I want to be home with her. | human | right | Mon · no shift to avoid | Mon · none |
| 14. Not working weekends this time please. | auto | right | Sat, Sun · no shift to avoid | Sat, Sun · none |
| 15. No preferences. | auto | right | no days off · no shift to avoid | none · none |
| 16. Could I have Wednesday off? Moving apartments. | auto | right | Wed · no shift to avoid | Wed · none |
| 17. I'm fine with any day but I really can't do nights anymore, doctor's orders. | auto | right | no days off · Night | none · Night |
| 18. Need Saturday off. Sunday is fine. | auto | right | Sat · no shift to avoid | Sat · none |
| 19. Off on the first day of the week please. | human | wrong | Mon, Sun · no shift to avoid | Mon · none |
| 20. I've worked a lot of nights lately, could I avoid them this week? | auto | right | no days off · Night | none · Night |
| 21. Friday off for a funeral. | auto | right | Fri · no shift to avoid | Fri · none |
| 22. Early shifts are rough for me, I take the first bus at 6. Days: no restrictions. | auto | right | no days off · Morning | none · Morning |
| 23. Can't work Tuesday or Saturday. | auto | right | Tue, Sat · no shift to avoid | Tue, Sat · none |
| 24. Any shift, any day. | auto | right | no days off · no shift to avoid | none · none |
| 25. I'll be at a conference Wed to Thu. | human | wrong | no days off · no shift to avoid | Wed, Thu · none |
| 26. Afternoons clash with my kids' pickup, so mornings or nights only. | auto | right | no days off · Afternoon | none · Afternoon |
| 27. Sunday off please, and if possible no nights. | auto | right | Sun · Night | Sun · Night |
| 28. I could do the weekend, but Monday I'm out. | auto | right | Mon · no shift to avoid | Mon · none |
| 29. No mornings. Also off Fri. | human | right | Fri · Morning | Fri · Morning |
| 30. Please avoid scheduling me on Thursday. | human | right | Thu · no shift to avoid | Thu · none |
| 31. Visiting my parents Saturday, back the same night. | human | wrong | no days off · no shift to avoid | Sat · none |
| 32. Nothing special this week, thanks! | auto | right | no days off · no shift to avoid | none · none |
| 33. I need Monday and Tuesday off, and I prefer not to do nights. | auto | right | Mon, Tue · Night | Mon, Tue · Night |
| 34. Would love Sunday off, it's my anniversary. | auto | right | Sun · no shift to avoid | Sun · none |
| 35. Wednesday's out for me, jury duty. | auto | right | Wed · no shift to avoid | Wed · none |
| 36. I'm okay with nights, mornings, whatever. Just not afternoons, I have therapy. | auto | right | no days off · Afternoon | none · Afternoon |
| 37. Off Thu + Fri pls. | auto | right | Thu, Fri · no shift to avoid | Thu, Fri · none |
| 38. Saturday I'm running a marathon. | human | wrong | no days off · no shift to avoid | Sat · none |
| 39. Can I get Tuesday? Off, I mean. | auto | right | Tue · no shift to avoid | Tue · none |
| 40. No night shifts this week, my partner is traveling and I'm alone with the baby. | auto | right | no days off · Night | none · Night |
| 41. Working is fine every day except the weekend days. | human | right | Sat, Sun · no shift to avoid | Sat, Sun · none |
| 42. Morning shifts are not great for me, but days are flexible. | auto | right | no days off · Morning | none · Morning |
| 43. I'm free all week. | auto | right | no days off · no shift to avoid | none · none |
| 44. Need off on Fri & Sat for a family event. | auto | right | Fri, Sat · no shift to avoid | Fri, Sat · none |
| 45. Thursday is a no for me. | human | right | Thu · no shift to avoid | Thu · none |
| 46. Please don't put me on nights. I'd also like Monday off. | auto | right | Mon · Night | Mon · Night |
| 47. I can take extra afternoons. Avoid mornings if you can. | auto | right | no days off · Morning | none · Morning |
| 48. Sunday please, off. | auto | right | Sun · no shift to avoid | Sun · none |
| 49. Wed off, kid's surgery. | auto | right | Wed · no shift to avoid | Wed · none |
| 50. Nights are fine, mornings are fine, I'll work anything except Tuesday. | auto | right | Tue · no shift to avoid | Tue · none |
| 51. Out of town Friday and Saturday. | human | right | Fri, Sat · no shift to avoid | Fri, Sat · none |
| 52. I'd rather not do afternoons. Days off: Sunday. | auto | right | Sun · Afternoon | Sun · Afternoon |
| 53. Monday off pls, and no nights. | auto | right | Mon · Night | Mon · Night |
| 54. I don't mind which days. Could you keep me off nights though? | auto | right | no days off · Night | none · Night |
| 55. Off Saturday. | auto | right | Sat · no shift to avoid | Sat · none |
| 56. Any day but Wednesday or Friday. | human | right | Wed, Fri · no shift to avoid | Wed, Fri · none |
| 57. No requests. | auto | right | no days off · no shift to avoid | none · none |
| 58. Not available Mon, Tue, Wed, I'm on a course. | human | right | Mon, Tue, Wed · no shift to avoid | Mon, Tue, Wed · none |
| 59. Mornings please avoid. Weekend off if possible. | human | wrong | Sun · Morning | Sat, Sun · Morning |
| 60. Tuesday off. I'm happy doing nights. | auto | right | Tue · no shift to avoid | Tue · 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.”
Show the numbers
| Input to the solver | Mean | Range |
|---|---|---|
| Ignore the notes | 555 | 472–602 |
| Kev reads them (open 4B model) | 135.8 | 108–162 |
| Jev reads them | 63 | 50–70 |
| Kev + a human on flagged notes | 37.6 | 30–46 |
| Jev + a human on flagged notes | 30 | 30–30 |
| A perfect reading | 30 | 30–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:
- As a translator from messy text or images into solver inputs.
- With a confidence gate, sending unsure cases to a person or to the slow solver.
- As a judge inside a rule, but only if the rule is weak.
- As a warm start, knowing the benefit isn’t proven.
- 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
- Code and every cached model answer: philoai_codes/jev-decision-models. Every number in this post replays from the cache, with no API key and no spend.
- The models and tools: Jev (TypeSafe), Kev, Clef (Cloudflare), and Google OR-Tools and CP-SAT.
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.