Home-Care Visit Scheduling with Constraint Optimisation, from Shadow Mode to Live

Work as a forward deployed engineer with a home-care provider: turn coordinators' rules into a signed-off policy, model a day of 570 visits as a vehicle routing problem with OR-Tools on real Isle of Wight road times from OSRM, check every plan with an independent validator, explain each assignment, repair a day after a sick call within a minute, prove the value on 28 days of history with intervals, and roll out from shadow mode to live with approvals and exactly-once write-back, all locally.

Forward Deployed Engineer. Advanced.

What you will build and explain

  • Turn a customer's planning practice into hard rules and weights that the customer signs off, and say what each weight trades.
  • Model a day of home visits as a vehicle routing problem with time windows in OR-Tools: vehicles, nodes, dimensions, disjunctions, breaks and arc costs.
  • Get road travel times from OSRM on a pinned map, cache them, and stop rather than guess when a time is missing.
  • Import from a customer system through a data contract that takes only what planning needs and stops on a broken time-critical record.
  • Check every plan with a validator that shares no logic with the model, and test the validator by planting breaks.
  • Explain assignments and unassigned visits in the rules' own terms, recomputed from the plan.
  • Replan after a disruption with locked history, a warm start and a move penalty, within a stated time budget.
  • Compare the planner with the coordinators on history with paired differences and bootstrap intervals, and present the limits.
  • Introduce the planner in stages (shadow, assisted, live, manual) and deliver approved plans exactly once with reconciliation.

Before you begin

  • Read Python, including classes and dataclasses, and write SQL with joins and transactions.
  • Know HTTP APIs and status codes, and run containers with Docker Compose.
  • Vehicle routing, OR-Tools' routing solver, OSRM, data contracts, independent validation, explanations, replanning, bootstrap intervals and staged rollout are taught.
  • A computer with Docker and the docker compose plugin, about 4 GB of memory and 8 GB of free disk for Docker, and port 8089 free.

Who this is for

For developers who read Python and SQL with joins and run containers with Docker Compose, and want to bring an optimisation engine into a customer's operations: turn coordinators' rules into a signed-off policy, plan a home-care day with OR-Tools on real road times, check and explain every plan, repair a day after a sick call, prove the value on history and roll out from shadow mode to live.

Curriculum

Learning topics (14)
  1. Understand the engagement and prepare your tools

    This project puts you in a forward deployed engineer's position: you work for the vendor of a planning engine, embedded with a customer for six weeks, and you have to prove the engine's value and introduce it without breaking how the customer works. Before the technology, this lesson sets out the engagement, what you are expected to know already, and how to get your computer ready.

  2. Follow one planning run from CareRoster to an approved plan

    Tidewell Home Care's coordinators plan about 570 visits a day for about 65 carers by hand. The plans work, but nobody can say how much time carers spend driving, clients see too many different carers, a sick call before the morning round takes 40 minutes to repair, and time-critical visits are sometimes late. As the vendor's forward deployed engineer you are asked to prove, in six weeks, whether optimised plans would be better, and to introduce them without taking control fro

  3. Turn how coordinators plan into rules and weights they sign off

    Ask a coordinator how they plan a day and you get a mixture: "medication can't be late", "Mrs Reid only has women", "try to send the same faces", "we never leave anyone without a lunch visit, even if it's an hour late". Some of those are rules nobody may break; some are preferences; one contradicts the care plans Tidewell signed with the council. Before any optimisation, a forward deployed engineer has to turn that mixture into something precise enough for software and owned

  4. Model a day of visits as a vehicle routing problem

    On a Tuesday in Medina, 24 carer-shifts have to cover 181 visits. Each visit has a window it must start in, a length, sometimes a skill or a second carer; each carer starts and ends at home, drives between clients and can only be in one place at a time. Which carer should do which visit, in what order, at what time? By the end of this lesson you will be able to say how that question becomes a vehicle routing problem, how OR-Tools represents one, and how this project's model e

  5. Get driving times the plan can rely on

    Every hard rule about time depends on one number: how long it takes a carer to drive from one home to the next. If that number is too small, the plan sends carers to doors they can't reach in time; if it is a guess, nobody can tell. This lesson explains where the planner's travel times come from, why they come from a routing engine on a pinned map, and what the planner does when one is missing.

  6. Take only what planning needs, and know when to stop

    The planner's first act in every run is to read tomorrow from someone else's system. CareRoster holds clients' names, addresses, care notes and diagnoses next to the visit times the planner needs; some of its records will be wrong. Two questions decide whether the pilot is trusted: what may the planner take, and what does it do with a record it can't use? This lesson answers both with a data contract: an agreement, written down and enforced in code, about which fields the pla

  7. Find good plans in the time a coordinator can wait

    The model describes what a valid plan is and what it costs; it doesn't say how to find a good one. For a day of 570 visits there is no practical way to find the best plan and prove it, so the solver searches: it builds a plan quickly, improves it in small steps, and stops when time runs out. Tidewell agreed how long a coordinator can wait: two minutes for a day, one for a sick-call replan. This lesson explains what the solver does in that time, how the project makes the whole

  8. Check every plan with code that doesn't trust the model

    The first plan a coordinator sees that sends a carer to two homes at once is the last plan they trust. The solver is a large, clever library driven by a model you wrote, and both can be wrong in ways that produce plausible output: an index mixed up with a node number, a window off by the visit's length, a rule left out of the model when the policy changed. This lesson is about the planner's answer: a second piece of code that checks every plan against every hard rule, written

  9. Answer "why this carer?" in the rules' own terms

    A coordinator looking at a plan asks two questions, again and again: "why did Ana get Mrs Reid?" and "why is Mr Hale's lunch visit not placed?". If the planner can't answer in terms a coordinator recognises, they will redo the plan by hand, and the pilot fails however good the plans are. This lesson shows how the planner answers, why the answers are recomputed rather than read from the solver, and what they deliberately don't claim.

  10. Repair a day in under a minute, moving as little as possible

    At 07:10 a carer phones in sick with nine visits ahead of her, two of them medication before nine. By hand, a coordinator spends the next forty minutes on the phone, moving visits one at a time and hoping nothing else breaks. A planner that simply plans the day again would be worse: it might move forty visits, and every moved visit is a phone call to a carer and a different face at a client's door. This lesson is about repairing a plan rather than replacing it: what is fixed,

  11. Compare with the coordinators honestly, with intervals

    At the end of the six weeks, Tidewell's operations director will ask one question: is it better? "Better" has to mean something measured, on Tidewell's own days, compared fairly with what the coordinators did, with an honest statement of how sure the answer is. This lesson builds that comparison and shows how to read and present it, including the measure where the planner isn't better.

  12. Introduce the planner without taking control from coordinators

    A planner that is better on history can still fail on its first real morning: a rule nobody mentioned, a client the data gets wrong, a coordinator who doesn't trust it and quietly plans by hand anyway. Switching straight from hand planning to automatic plans risks all of that at once, with clients' care at stake. This lesson is about introducing the planner in stages, each one earning the next, with a way back that works instantly.

  13. Deliver an approved plan to the customer's system safely

    An approved plan is only useful once it is in CareRoster, where carers see their day. Getting it there sounds trivial: send the assignments. It isn't, because the network between two systems fails in the worst possible way: sometimes a request succeeds and its reply is lost, so the sender can't tell whether it worked. Retry, and the assignments may be applied twice; don't, and they may never arrive. This lesson shows how the planner delivers each approved plan exactly once, h

  14. Queue, worker, identities, secrets and signals

    A model that plans a day in a test is not yet something coordinators can rely on every morning. The planner has to accept requests while it is busy, survive a crash in the middle of a solve, keep each process to what it needs, protect the customer's credentials and data, and tell an engineer what it is doing. This lesson covers the service around the model: the queue, the worker, identities and secrets, the network, and the signals it gives.

Practical build steps (14)
  1. Prepare and check your computer

    Starting point: a computer with a terminal. End point: Docker and Compose answer, Docker has enough memory and disk, and port 8089 is free.

  2. Build the toolbox and run the checks

    Starting point: Docker works. End point: the toolbox image exists and the code passes formatting, lint, unit tests, ShellCheck and Compose validation.

  3. Start the lab

    Starting point: the checks pass. End point: six services are healthy, CareRoster holds Tidewell's 220 clients and 92 carers, and the review page answers on 127.0.0.1:8089.

  4. Plan one area and read the run

    Starting point: the lab is up, in shadow mode. End point: a proposed plan for Medina on 1 December, its seven recorded stages and its comparison with the coordinators' own plan.

  5. Review the plan as a coordinator

    Starting point: a proposed plan for Medina. End point: you have read the plan on the review page: who goes where, why, what it costs and what it can't place.

  6. Plan the whole island within its budget

    Starting point: the lab has planned one area. End point: a whole-island plan made within 120 seconds, the three planted records set aside with reasons, and a second run showing the inputs repeat exactly.

  7. Approve a plan and follow it into CareRoster

    Starting point: shadow mode; nothing written to CareRoster. End point: an approved Medina plan in CareRoster exactly once, and a later edit there reported by reconciliation.

  8. Replan after a sick call

    Starting point: a plan for Medina on 1 December. End point: a repaired plan with one carer off from 07:10, ready within 60 seconds, and how many visits it moved compared with replanning from scratch.

  9. Stop a run on purpose, and pull the kill switch

    Starting point: the lab plans normally. End point: you have seen a run refuse to produce a plan and switched all planning back to the coordinators.

  10. Run the lab tests and the failure drills

    Starting point: the lab is running. End point: the scripted lab tests and drills have exercised every behaviour so far, plus outages you shouldn't stage by hand.

  11. Evaluate the planner on 28 days of history

    Starting point: the lab is running. End point: a report comparing the planner with the coordinators on 3 to 30 November, with a 95% interval for every difference.

  12. Release a policy change, and go back

    Starting point: the lab runs policy 2026-11-28.1. End point: a new policy version evaluated, released and verified in the running worker, and the way back to the previous one.

  13. Resume after a break

    Starting point: you stopped working, closed the terminal or restarted your computer. End point: the lab is running again with everything you had.

  14. Clean up the lab

    Starting point: the lab exists, running or stopped. End point: the lab's containers, networks and volumes are gone, and, if you choose, its files and images too, with checks showing nothing is left.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

Runs entirely on your computer with Docker Compose: about 1 GB of images and packages and a 9 MB map extract are downloaded on the first start, and the synthetic records are generated locally. No cloud account, payment method or hosted lab is used or included. Timings in the lessons were measured on an 8-vCPU cloud virtual machine; search time is a fixed budget, so plans take about as long on your computer.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Packages, container images and data downloaded when building or running, such as OR-Tools, FastAPI, PostgreSQL, OSRM and the OpenStreetMap extract, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy