Skip to content
All articles

How to Simulate a Store

Research18 min read
  • store-simulation
  • retail
  • digital-twin
  • agentic-ai

From a bare floor plan to an AI strategy office, anchor by anchor: a guide to simulating your stores with shoppers trained in thousands of real ones.

Architectural study model of a store floor plan made of card and plaster, with paper ribbons tracing walk paths secured by brass wire pins.

A store simulation is a digital twin of a store, populated with modelled shoppers and staff, that plays out a trading day before it happens.

Every retailer already holds the makings of one. The sales are in the POS. The planograms are in PDFs. The rosters are in spreadsheets, and the cameras have been recording for years.

What stalls most simulation projects is the request to bring all of it together first, cleaned and joined, before anything runs. A new store has the opposite problem and the same result: a floor plan, and no history at all.

Neither has to wait. With dg2n, a simulation can start from the floor plan alone, as long as the shoppers in it already know how to shop. Everything else is added when it is ready.

This guide covers how that works: the shopper models, what a floor plan shows on day one, each anchor you can add and what it buys, the AI team that turns thousands of simulated days into decisions, and the clock the store runs on.

How dg2n's simulated shoppers learned to shop

Shopper behaviour is the expensive part of a store simulation, and it is the part that carries from one store to the next.

How far someone will walk for what they came for. What registers at eye level and what gets passed side-on. How a family of four moves compared with one person on a lunch break. The point at which a queue stops being a wait and becomes a reason to leave.

dg2n's shopper models learned these things in thousands of real, operating facilities. Placed in a space they have never seen, they walk it, look at it and queue in it from the first minute.

You can only watch a film for the first time once. After that you know where the twist is, and you can never again sit through it as someone who does not.

A store does the same thing to the people who run it. You have walked that floor a hundred times. You know the kids' section is behind the pillar, so you never fail to find it. You approved the signage, so you read it without looking. The store you see is the one in your head.

Your customer has none of that. Many are walking in for the first time, and all of them see only what the store shows them from where they happen to be standing.

That first viewing decides what sells, and it is the one you can no longer have. A simulated shopper has it every time. It arrives with no memory of the layout, sees what falls in its line of sight and misses what does not. Run a thousand of them and you have a thousand first visits to a store you stopped being able to see long ago, telling you what's working and what isn't.

Cutaway diagram showing a simulated shopper's conical visual field moving down a retail aisle, illuminating shelf visibility.
Simulated shoppers evaluate stores purely by line of sight from their instantaneous position.

So the floor plan is enough to begin. The store supplies the geometry. Our models supply the people.

Watch the weekend before it happens

Run a weekend flow through two layouts and one of them walks better.

You see the main routes and where they pinch. You see which bays sit in the line of sight and which are passed without a glance. You see the floor no route reaches, which is floor you are paying rent on.

Footfall, basket size and conversion data improve the model as we go, but we start from estimates, so the first run does not wait.

The simulated weekend matches the recorded one

A simulation earns its place by agreeing with reality wherever reality can be checked. Across hundreds of dg2n simulations run on the layouts of operating stores, the projected walk paths, dwell times and crowding align closely with what those stores record.

That agreement is what lets a floor plan stand in for a store that cannot be measured yet.

What each anchor buys

An anchor is any piece of your own data that pins the simulation to the store you actually run. Add them in whatever order they become usable. None of them has to be clean on day one.

Fixtures and planograms

Technical blueprint schematic of a retail gondola fixture showing shopper approach angles across aisle faces.
Fixture geometry dictates which product faces shoppers encounter based on their path through the store.

A fixture is several displays in one. A gondola has two long faces and two end caps. A four-way rack shows a different arm to every approach. Which face a shopper meets depends on the direction they arrive from, so the same fixture can sell well from one aisle and go unseen from the next.

The planogram decides what each of those faces holds: which product, on which shelf, at what height, across how many facings. With both in place, visibility becomes slot-level. Every look a simulated shopper takes is scored by distance, angle and height, and the scores add up to a map of what the store really shows people. Top sellers get placed on that map instead of on habit.

Space arithmetic is only half of a shelf. A bay that reads as one composed display, with colour, size and brand blocks that hold together, stops people. A bay that is correct on paper and chaotic to the eye gets walked past. Cohesion and beauty do commercial work.

dg2n's planogram engine thinks in 3D. It places products as objects with height, depth and a face, on fixtures with real geometry. The shelf it plans is the shelf the simulated shopper sees.

Point-of-sale (POS) data

POS data puts your own trade into the simulation. Each bill returns as a shopper on a trip: a stock-up, a top-up, a quick visit. Trip mix and basket size stop being estimates.

It carries time as well. Every line has a timestamp, so the simulation knows when the store is busy, by the hour and by the day of the week, and which categories sell in which part of the day.

The same lines give the rate of sale for every product. That tells the simulation how fast each shelf runs down, when it needs a refill, and how much stock a facing has to hold to last until the next one. Replenishment gets planned from sales instead of from a fixed round.

There is more in the bill. Products that leave in the same basket point to what should sit together. Tills and payment types show where checkout load builds. A promotion shows up as a shift in the basket.

Once sales and stock are both in, two numbers every retailer reports move onto the floor itself. Gross margin return on investment (GMROI) and gross margin return on footage (GMROF) are drawn bay by bay, so you can see which metre of shelf is earning its place.

What POS data cannot see is everyone who left without a bill. For every basket that reached the till, some number of people walked the store and bought nothing. They still filled the aisles and stood in front of the shelves.

Footfall counts

Footfall is the anchor that accounts for them. The door count fixes how many people the day really held, hour by hour. Set against the bills, it gives you conversion, and it puts the non-buyers back on the floor.

Demographics

Take two stores in the same city. Same format, same planogram, eight kilometres apart.

The first sits in a zip code of young renters near the office district. Its shoppers arrive alone, after seven in the evening, with ten minutes and a short list. They walk straight lines and leave.

The second sits among family apartments near the schools. Its shoppers arrive in threes and fours on a Saturday morning, with a trolley and a child who wants to stop at every end cap. They fill the aisle, move at the pace of the slowest member and stay far longer.

On paper these are the same store. On the floor they are two different crowds, and a layout that flows in one jams in the other.

Then the calendar moves the mix again. On a festive weekend the office-district store fills with families buying gifts and starts to behave like the suburb. On a weekday afternoon the family store belongs to one unhurried shopper at a time. Regular days, weekends, month-end, festival week: each brings its own crowd into the same four walls.

Demographic data is the anchor that sets this. It tells the simulation who walks in, by zip code and by day, so every store is tested against its own people on its own calendar.

Rosters and stock

A store is its people as much as its shelves, and the roster is the anchor that puts them on the floor: who is on shift, at which hour, doing what.

With rosters and stock in, the store can run short. Queues build when cover is thin. Shelves empty when refills fall behind. Both arrive as lost sales, counted.

The till line is where it shows first. In the simulation you open a lane or close one on demand, in the middle of a Saturday, and watch what the queue does over the next ten minutes. Open the third till at eleven instead of twelve. Close the fifth after the lunch peak. Each change plays out in front of you, in minutes of wait and in baskets abandoned.

Do that across a week and the roster stops being a guess. You know the hours where one more person pays for themselves, and the hours where two people stand at tills nobody is walking towards. The people you need, and the people you do not.

From rosters to automation. The same test bed answers the automation question. Self-checkout is a capital decision that usually gets judged a year after it is made. Here you run one day three ways: all staffed lanes, a mix, all self-checkout. Shoppers pick their line the way real ones do, by how fast it looks.

You see whether waits fall, whether the big baskets still head for a cashier, and how many staff hours actually come free. Sometimes the difference is large. Sometimes it is close to nothing, and that is worth knowing before the kiosks are ordered. Either way, the return is a number you watched being produced.

A floor where robots can be tried first. Checkout is the first place machines join the roster, and it will not be the last. Four-legged robots that walk the aisles overnight and audit the shelves. Service robots that bring stock out from the back room or lead a shopper to a product. Humanoids that pick and refill beside your staff.

Each one is a new kind of worker on a floor built for people, sharing aisles with shoppers who did not expect it. A simulated store is where it can be tried first. Put it on the roster, give it a task, and see whether it clears the aisle or blocks it, whether it saves an hour or costs one.

The questions retailers will ask about robots in the next few years are roster questions. They can be rehearsed now.

Camera data

Every other anchor describes the store from a ledger. Cameras are the one that watched.

Most stores already have them, pointed at the floor for security, recording all day and reviewed only when something goes missing. That footage is the record of how the store is actually used.

People appear in it as anonymous tracks: a path, a group size, a dwell time, with no identity attached.

Overlap. One camera sees a clip. A store wants a journey. Where two cameras share a patch of floor, the same shopper can be handed from one view to the next, and a set of separate clips becomes a single path from door to till. Overlap also stops double counting, since a person seen by three cameras is still one person. Where views do not meet, the store has blind spots, and the simulation fills the walk between one sighting and the next.

Dwell times. A sale tells you someone bought. Dwell tells you how long they stood there first, and how many stood there and left. A bay with long dwell and weak sales has a problem at the shelf: the price, the size run, the one item they came for being out. A bay with no dwell has a problem before the shelf, because nobody stopped. Those need different fixes, and only dwell tells them apart.

Group sizes. A door counter counts heads. A camera sees that four of those heads came in together and will produce one bill. That corrects conversion, which is properly measured per party. It corrects crowding too, since a group of four holds an aisle in a way four single shoppers do not. Group size by hour and by day turns the persona mix from an estimate into an observation.

Staff movement. The roster says who was on shift. The camera shows where they were. Reconstructed across a day, staff paths show the trips to the back room, the time at the till against the time on the floor, and the zones that went an hour with nobody in them. Tasks that look short on the plan take longer once the walking is counted.

With all four in, the simulated day sits beside the real one, zone by zone. Where they agree, you can trust the simulation in the stores that have no cameras. Where they differ, the gap is exactly what gets corrected for your store.

RFID and shelf scans

Stock records say what the store should hold. A scan says what is on the shelf. When staff walk the floor with a handheld reader, each pass fixes where every item really is: on the right shelf, on the wrong one, in the back room, or missing.

That gives the simulation an honest starting shelf. A day that begins from the planogram assumes a store nobody actually has. A day that begins from the last scan starts with the gaps, the misplaced sizes and the facings that were never filled.

The scan leaves a second trace. Every read carries a time and a place, so the route the staff member walked comes with it.

These are the common anchors, and the list does not end with them.

The AI strategy office that never leaves the floor

A simulated day produces more than anyone has time to watch. So dg2n runs a team of AI agents that watches it.

They see everything that transpired: every queue that formed, every shelf that ran out, every shopper who looked and left. After each run they write up what could have been done better. The till that should have opened twenty minutes earlier. The refill that came after the rush instead of before it. The best seller facing the wrong aisle.

One run is an anecdote, and a bad Saturday can be bad luck. So the agents read across thousands of runs, with different crowds on different days. Most findings come and go. The ones that keep turning up, run after run, are the store talking. That is the feedback worth acting on. And the more anchors the store has given the simulation, the more reliable those insights become.

What comes back is written to be acted on: this lane, this hour, this bay, this change, and what it is expected to move.

The same team works a level up. Across an estate it finds what repeats from store to store: the format that queues everywhere, the category that goes unseen in every layout, the roster pattern that fails at each month-end.

The simulation keeps the store's clock

A store is a schedule as much as a space. In grocery, milk arrives before the doors open, bread comes in more than once a day, and by evening what is left of the fresh produce is marked down. In fashion the clock is slower and just as strict: new merchandise drops on the days the supply chain commits to, and the floor has to be ready to receive it.

A simulation without that clock runs the same day forever. So time is modelled as carefully as the floor. Every delivery, refill, markdown and display change sits on a calendar, and the simulated store lives through it: the dairy bay that is full at eight and thin by six, the new collection that lands midweek and needs a wall by the weekend.

That makes the cadence itself something you can test. It gets set in one of two ways.

Recommended from what happens. The simulation runs the weeks and reports the rhythm the store actually needs. A common result is a daily replenish and a weekly refresh, with the refresh on the quietest day before the weekend, often Thursday. Staff can move product without working around a crowd, and a change made on Thursday is tested by Saturday. Where a category empties faster than its refill round, the simulation says so and proposes a tighter one.

Mandated from the centre. Often the cadence is not the store's to choose. The central team sets it from supply chain targets: how often fresh merchandise must reach the floor, how long a line may sit, when dairy and produce are delivered. The simulation takes those as fixed and shows what they ask of each store: the staff hours, the back-room space, and the shelves that will still run short under the mandate.

Either way, the question moves from what the store should look like to what it should look like on Tuesday morning, and again on Saturday night.

Design it, fill it, test it, change it

Conceptual loop diagram linking layout generation, 3D shelf placement, and simulation feedback.
Layout design, shelf planogramming, and behavioral simulation form a closed optimization loop.

A simulation needs something to test. The layout has to come from somewhere, and so do the shelves inside it.

At dg2n, both come from the same stack. StoreGen, our AI store designer, generates the layout: where the fixtures go, how the aisles run, which category gets which wall. The planogram engine then fills every shelf, product by product, in 3D. The simulation walks shoppers through the result before any of it is built.

Then the strategy office reports what to change, and the change goes back to where it belongs. A weak bay returns to the planogram engine. A pinch point returns to StoreGen. The next version meets the same Saturday as the last one.

Each of the three stands on its own. Together they close a loop that most retailers run by hand, across separate teams, a season at a time.

Your data stays yours

The shopper models carry general behaviour: how people move, look and queue. What you add as anchors, your sales, planograms, rosters and footage, is used to simulate your stores and nobody else's.

Where to begin

Pick one store you know well. You already know where it jams on a Saturday and which corner never sells. That knowledge is your first test of the simulation.

Share its floor plan. A drawing, a PDF or the planner's file, in whatever state it is in. Nothing else is needed for the first run.

Watch a weekend. Check the routes, the pinch points and the dead floor against what you know. If the simulation finds the places you would have named yourself, it has earned the next step.

Add the anchor that is easiest to reach. For most retailers that is POS data, because it already sits in one system. Footfall, rosters and cameras follow as they become available.

Let the strategy office report. Once the store is running on your own data, the findings start arriving, and the first changes can go in on the next quiet day before the weekend.

The same Saturday, until you get it right

In Groundhog Day, a man wakes up to the same day, over and over, until he finally gets it right. Everyone around him meets that day for the first time, every time. He is the only one who remembers.

That is the arrangement on offer. Your shoppers walk in fresh on every run. You are the one who remembers what went wrong last Saturday, and you get to run it again.