Demonstration case 02 - scarce stock allocation

Synthetic distribution scenario

How should scarce stock be allocated?

A distributor has 600 units available while eight customers demand 820. Proportional allocation feels fair, but it does not distinguish contractual minimums, profitability or business priorities.

Synthetic demonstration based on a realistic business problem. It does not represent a project for a specific client.
See the analysis
600 unitsAvailable
820 unitsTotal demand
8 customersDifferent priorities

Baseline - proportional allocation

Every customer receives roughly the same share of its order.

With 600 units available against demand of 820, the simplest approach is to scale every order to roughly 73.2%. The integer proportional allocation uses all 600 units and produces expected gross-margin contribution of EUR 8,999.

Proportional allocation is simple and neutral, but it treats every unit of demand as if it had the same business value.

  • profitability is not differentiated
  • strategic importance is not part of the decision
  • business rules are reduced to the available quantity
Available / demand600 / 820
73,2%of aggregate demand can be served

Expected gross marginEUR 8,999

What does the model consider?

The objective is not simply maximum margin. The decision must respect business rules.

In this demonstration the model maximizes expected gross-margin contribution, but first respects the total available quantity, customer demand limits and defined customer minimums.

01

Objective

Maximize expected gross-margin contribution.

02

Constraints

At most 600 units, never above customer demand, and every minimum must be met.

03

Variables

How many units to allocate to each customer.

04

Business rules

Minimums and service scenarios are company choices, not universal mathematical truths.

View inputs and allocations

The first 420 units are committed through defined customer minimums. The remaining 180 units are then allocated within demand limits according to the selected business objective.

Business inputs

CustomerDemandMargin/unitPriorityMinimum
A14018 EUR590
B12014 EUR580
C11020 EUR460
D1009 EUR340
E9516 EUR450
F9011 EUR230
G8522 EUR550
H808 EUR120

Allocation comparison

CustomerDemandBaselineSpacelytics
A140102140
B1208880
C11080110
D1007340
E956995
F906630
G856285
H806020
Total820600600

Before and after

The same stock. A different decision.

After satisfying the defined minimums, the remaining 180 units are directed toward customers where an additional unit creates greater margin contribution, until their ordered quantity is reached.

Proportional allocationEUR 8,999600 units allocated
Allocation by objective and constraintsEUR 10,080600 units allocated
DELTA+EUR 1,081+12.0%
ProportionalSpacelyticsA102 / 140 (72.9%)140 / 140 (100%)B88 / 120 (73.3%)80 / 120 (66.7%)C80 / 110 (72.7%)110 / 110 (100%)D73 / 100 (73%)40 / 100 (40%)E69 / 95 (72.6%)95 / 95 (100%)F66 / 90 (73.3%)30 / 90 (33.3%)G62 / 85 (72.9%)85 / 85 (100%)H60 / 80 (75%)20 / 80 (25%)
Decision delta

The same stock. A different decision.

The model does not increase available stock. It changes how the 600 units are allocated according to rules defined in advance.

This is not a universally best allocation. If the company changes objectives, minimums or the importance of service equality, the recommended allocation also changes.
BaselineEUR 8,999 expected gross margin

All customers receive roughly 73% of requested quantity.

SpacelyticsEUR 10,080 expected gross margin

Minimums are satisfied and the remaining quantity is allocated according to the business objective.

Delta+EUR 1,081 / +12.0%

Without increasing the available stock of 600 units.

What-if / scenario analysis

Changing the business priority changes the allocation.

Decision support does not claim that one allocation is best in every situation. The result depends on the rules the company chooses to protect.

EUR 10,080

Scenario A - margin as the main objective

Minimums are mandatory and remaining stock follows higher margin. Allocation: A140, B80, C110, D40, E95, F30, G85, H20.

EUR 8,999

Scenario B - more even service

The proportional baseline produces almost the same service rate for all customers, around 73% of demand.

EUR 10,048

Scenario C - priority-5 customers at least 80%

A, B and G must receive at least 80% service. One optimal solution under this rule is A140, B96, C110, D40, E79, F30, G85, H20.

XAIOR - explaining the result

Why is the allocation different?

The model respects the rules first, then calculates their consequences.

The proportional approach allocates stock almost equally relative to demand, but it does not distinguish the economic value of individual deliveries.

The model first guarantees the defined minimum quantities. Remaining stock goes where an additional unit creates greater contribution, until the customer reaches its ordered quantity.

That is why A, C, E and G receive their full requested quantities in the base optimization scenario, while other customers remain at the defined minimum.

If equal service or key-account service receives more weight, the recommendation changes. The model does not define company values; it calculates their consequences.

The model calculates the consequences of different rules. XAIOR explains why the recommendation changed.

Analytical resultXAIORExplainabilityHuman decision

From demonstration to a real problem

What if these were your data?

In a real project, demand, margins, minimums and priorities can come from ERP, Excel, orders, price lists and contractual rules. The model would use your real business constraints.

How do you allocate stock when there is not enough for every order?
Do all customers, products and markets really have the same priority?
What is the cost of deciding only by proportional allocation or experience?
Describe the problem you are trying to solve