Safety stock & reorder points
Sizes safety stock and ROP under both P1 cycle-service and P2 fill-rate definitions — and stops to ask which one the business actually means before calculating.
Replen is a supply-chain planning skill built from two materials: planning theory, and the judgment that only appears after you have worked the exceptions. It calculates with your data, states every assumption, and leaves the decision with the human.
A general AI can explain EOQ. That is not the hard part. The hard part is knowing when EOQ is the wrong question, which service-level definition the business is using, whether the variability belongs to demand or forecast error, and when the data is too weak for a confident answer.
Replen is my attempt to write that layer down. It turns tacit planning judgment into a repeatable workflow: classify the question, expose missing inputs, calculate through tested tools, show sensitivity, name the trade-off, and say where the recommendation stops being trustworthy.
Numbers without assumptions are forbidden.
Every answer carries its formula, inputs, missing-data flags, applicability boundary and the trade-off being purchased.
The calculators are not five isolated demos. Replen uses them inside a planning conversation — first checking whether the problem and data fit the method, then turning the result into an operating recommendation.
Sizes safety stock and ROP under both P1 cycle-service and P2 fill-rate definitions — and stops to ask which one the business actually means before calculating.
Measures MAD, RMSE, MAPE, WMAPE, bias and tracking signal, then checks whether the SKU is smooth, erratic, intermittent or lumpy before recommending which variability measure belongs in the policy.
Uses Croston and the bias-corrected SBA method for demand with too many zero periods — instead of forcing every slow mover through a normal-distribution formula.
Calculates the theoretical EOQ, then compares MOQ, pack and candidate quantities so the planner can see the real cost penalty of rounding rather than treating one formula as an order instruction.
Segments items by value and variability, then suggests a policy by class — where precision is worth the effort, where min–max is enough, and where not stocking may be the honest answer.
I began with the questions a planner meets again and again: how much safety stock, why the stockout keeps returning, whether the forecast is biased, and whether an MOQ is actually expensive.
The useful part was not another glossary. I encoded the decision routes: calculate, diagnose, design, explain a concept, or translate planning logic into system parameters — each with the questions that must be answered first.
Five Python calculators became the numerical spine. They are dependency-free, accept single-item or CSV inputs where appropriate, and keep arithmetic separate from the language model’s prose.
Service level can mean P1 or P2. Forecast-error RMSE is not raw demand standard deviation. Intermittent demand breaks normal safety-stock logic. These checks became gates, not footnotes.
Reusable planning knowledge, original examples and generic templates form the public pilot. A red-line check keeps employer, customer and real-person identifiers out before anything can be shared.
INDEPENDENT EDUCATIONAL PROJECT · VALIDATE AGAINST YOUR OWN DATA BEFORE ACTING
Replen is evidence that domain experience can be turned into a system: explicit rules, reusable tools, structured inputs, privacy gates and a human decision boundary — not just a longer prompt.
→ read the field note: how I graded and rebuilt the skillResonated with something? Leave me a note — or leave a way to reach you, and I'll write back.
看到有共鸣的地方?给我留言——或者想认识、想聊聊,留下联系方式,我会回信。
The pigeon is on its way. Thank you for the note — I'll read it, and if you left a contact I'll write back.
鸽子起飞了——我会读到的,留了联系方式的话我会回信。
// prototype — the relay isn't wired up yet; this was a demo flight and the note wasn't actually sent