Smart Cart Optimizer · Live verification

Scenario Lab

Every scenario below runs live on this server through the same engine used by the shopping cart, then is cross-checked against an exhaustive search of every possible allocation.

PrestaShop 9.1.5 PHP 8.3.6 Branch & bound, exact Synthetic data
6/6 Scenarios verified
0.2 ms Total engine time
2 s Time budget per cart
0 Core overrides
Scenario 1

Client example: 3 products, 3 vendors

A: €8 shipping, free above €50. B: €7, free above €40. C: €10, free above €35.

✓ Verified
Expected
€41.00
Engine
€41.00
Exhaustive search
€41.00
C
Vendor C Free shipping
Product 1 1 × €9.00 €9.00
Product 2 1 × €13.00 €13.00
Product 3 1 × €19.00 €19.00
Subtotal€41.00
Scenario 2

Quantity split across vendors

1 SKU × 5. A: €10.00, stock 3, €6 shipping free above €25. B: €11.00, stock 10, €6 shipping free above €60.

✓ Verified
Expected
€58.00
Engine
€58.00
Exhaustive search
€58.00
A
Vendor A Free shipping
Product 1 3 × €10.00 €30.00
Subtotal€30.00
B
Vendor B Shipping €6.00
Product 1 2 × €11.00 €22.00
Subtotal€22.00
Scenario 3

Partial vendors are never eliminated

A sells X, Y only (€5 shipping, free above €25). B sells Z only (€4.90, free above €40). C sells all three (€6, free above €45).

✓ Verified
Expected
€43.90
Engine
€43.90
Exhaustive search
€43.90
A
Vendor A Free shipping
Product X 1 × €12.00 €12.00
Product Y 1 × €18.00 €18.00
Subtotal€30.00
B
Vendor B Shipping €4.90
Product Z 1 × €9.00 €9.00
Subtotal€9.00
Scenario 4

Threshold boundary: free above €50 (strict)

Single vendor, subtotal exactly €50.00, €8 shipping.

✓ Verified
Expected
€58.00
Engine
€58.00
Exhaustive search
€58.00
A
Vendor A Shipping €8.00
Product 1 2 × €25.00 €50.00
Subtotal€50.00
Scenario 5

Threshold boundary: free from €50 (inclusive)

Single vendor, subtotal exactly €50.00, €8 shipping.

✓ Verified
Expected
€50.00
Engine
€50.00
Exhaustive search
€50.00
A
Vendor A Free shipping
Product 1 2 × €25.00 €50.00
Subtotal€50.00
Scenario 6

Insufficient stock across all vendors

Customer wants 4 units; vendors hold 2 + 1.

✓ Verified
Expected
Not feasible
Engine
Not feasible
Exhaustive search
Not feasible
Not enough stock across all vendors for Product 1. The cart is reported to the customer, never silently changed.
Try it yourself

Stress run

Stress: 8 SKUs × 30 vendors × qty 1, 5 offers per SKU. Each SKU offered by a random subset of vendors, limited stock forces splits, two shipping tiers per vendor. If the 2 s budget runs out, the best allocation found so far is returned and clearly labelled.

3
Vendor 3 Shipping €3.81
SKU 1 1 × €37.77 €37.77
Subtotal€37.77
4
Vendor 4 Shipping €2.74
SKU 3 1 × €10.81 €10.81
SKU 4 1 × €24.55 €24.55
SKU 8 1 × €12.83 €12.83
Subtotal€48.19
8
Vendor 8 Shipping €2.60
SKU 2 1 × €16.79 €16.79
SKU 6 1 × €32.42 €32.42
SKU 7 1 × €25.16 €25.16
Subtotal€74.37
10
Vendor 10 Shipping €11.74
SKU 5 1 × €28.49 €28.49
Subtotal€28.49

Redstone Catalyst · Pre-award technical demonstration · Synthetic vendors, products and prices.

Loading...
Back to top