Guests

Seating ↓

One row per guest. The category is a number: the closer two guests' numbers, the more alike they count (for example 1 and 2 for the two families, 3 for work, 4 for school).

# Name Category Remove

Seating

The seating appears here.

Pairs and groups

Guests by name, separated by commas. Together and apart apply to every pair in the group and cost the constraint penalty for each pair broken. A pair score is added when the two share a table (negative to keep them apart). A room cost pushes the two to far-apart tables, when Geography uses room costs.

# Kind Guests Value Remove

Tables

Leave x and y empty to place the tables on the spiral, or give both for every table. Seats left over stay empty.

# Name Seats x y Remove
Make tables of seats

Settings

Objective

Table term: alike tables is −Σ √|category difference| over each table's pairs of guests; few categories is −Σ (1 − 2−count) over each table's categories; mixed tables is the variance of each table's categories. Geography: room costs are the room-cost rows under Pairs and groups; by category gives every pair the cost (number of categories − |difference|), which pushes alike guests apart.

Search

Chart

Auto draws the tables where they are in the room unless the names would be smaller than 9 px, and then in rows. The score axis fits the last 80% of iterations, so the opening climb starts below it; every iteration fits them all.

How this works

Icebreaker rounds

Each round seats every guest once. The planner balances category counts, discourages repeat tablemates and repeated whole groups, and limits travel between consecutive rounds. It first builds balanced rounds with a seeded greedy placement, then jointly improves them by swapping movable guests between tables. It keeps the lowest-cost schedule found; a global optimum or a repeat-free schedule is not guaranteed.

Travel is Euclidean distance between table centers, in your table coordinates, not an accessible walking route. The longest-trip term is the longest single switch after multiplying by that guest's travel weight. A weight of zero removes that guest's travel cost; a fixed seat prevents movement in every round. Pair scores and together/apart preferences apply in every round. Download CSV for all rounds, or the chart SVG for the selected round.

Single seating chart

A seating's score is the sum of four terms, and higher is better:

  • Table term: by default, minus the sum over each table's pairs of guests of the square root of the difference in their categories, so tables of alike guests score highest. Its weight multiplies it.
  • Pairs: the sum of the pair scores of guests who share a table, times its weight.
  • Constraints: minus the constraint penalty for every pair that should sit together but does not, or should sit apart but does not. Zero when every constraint holds.
  • Geography: every guest pays cost × closeness towards every other guest, closeness being (1 − distance / largest distance)² between their tables in the room, so a positive cost pushes two guests far apart. With "Count tablemates as closest" on, tablemates count at closeness 1; off, they are skipped.

The search starts from the guests in list order and repeats one move: pick two tables, the worse-scoring more likely (the worst at most e times as likely as the best), pick k seats at each (k = 1 most often, then 2, 3, … with weights e−0.4k), and swap their occupants. Empty seats swap too, so guests move into them. The move is kept with probability 1 / (1 + e−Δ × scale), Δ being the change in score: a better seating is likely kept, a worse one sometimes. The temperature is fixed, and the best seating seen is the result. The search goes on after finding it, so the replay ends by returning to it.

The replay shows every move that was kept, in order: the two tables of the move are outlined, and their guests change seats. The score chart shows the score after each one and the best so far.

The seed makes the search repeatable. The default budget, 50 iterations per guest, may not be enough with many constraints; more iterations, or a larger acceptance scale early on, help.

The optimizer is also available to scripts and agents: see the API description.

Request JSON

The request the page's inputs make, as the API takes it. Edit it or paste another; a request for the R version (seat.R, with options such as logit_scale) works too.