scenario_id stringlengths 17 34 | prompt_schema stringlengths 4.46k 7.05k | prompt_full stringlengths 7.03k 13.4k | data stringlengths 2.79k 5.46k | reference_status stringclasses 2
values | reference_objective float64 307k 5.8M |
|---|---|---|---|---|---|
retail_f1_52_weeks_v0 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v0
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v0
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | {"name": "retail_f1_52_weeks_v0", "description": "Standard seasonal retail scenario.", "periods": 52, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Pre... | OPTIMAL | 1,006,432 |
retail_f1_52_weeks_v1 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v1
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v1
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | {"name": "retail_f1_52_weeks_v1", "description": "Standard seasonal retail scenario.", "periods": 52, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Pre... | OPTIMAL | 1,004,271.5 |
retail_f1_52_weeks_v2 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v2
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v2
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | {"name": "retail_f1_52_weeks_v2", "description": "Standard seasonal retail scenario.", "periods": 52, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Pre... | OPTIMAL | 1,026,462.5 |
retail_f1_52_weeks_v3 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v3
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v3
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | {"name": "retail_f1_52_weeks_v3", "description": "Standard seasonal retail scenario.", "periods": 52, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Pre... | OPTIMAL | 1,006,574.5 |
retail_f1_52_weeks_v4 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v4
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_52_weeks
Scenario ID: retail_f1_52_weeks_v4
[BUSINESS DESCRIPTION]
Business narrative:
The retailer plans inventory over a full year of weekly decisions, represented by fifty-two time periods. Exogenous seasonal demand, local inventories at each distribution... | {"name": "retail_f1_52_weeks_v4", "description": "Standard seasonal retail scenario.", "periods": 52, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Pre... | OPTIMAL | 1,006,442.5 |
retail_f1_base_v0 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v0
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v0
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | {"name": "retail_f1_base_v0", "description": "Standard seasonal retail scenario.", "periods": 20, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Premium... | OPTIMAL | 378,951.5 |
retail_f1_base_v1 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v1
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v1
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | {"name": "retail_f1_base_v1", "description": "Standard seasonal retail scenario.", "periods": 20, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Premium... | OPTIMAL | 379,803 |
retail_f1_base_v2 | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v2
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | [SCENARIO]
Family: F1 (Core Operations)
Archetype: retail_f1_base
Scenario ID: retail_f1_base_v2
[BUSINESS DESCRIPTION]
Business narrative:
The retailer manages weekly inventory for several products across multiple distribution centers that directly serve final customer demand. Demand for each product at each location... | {"name": "retail_f1_base_v2", "description": "Standard seasonal retail scenario.", "periods": 20, "products": ["SKU_Basic", "SKU_Premium", "SKU_ShortLife"], "locations": ["DC1", "DC2", "DC3", "DC4", "DC5"], "shelf_life": {"SKU_Basic": 10, "SKU_Premium": 8, "SKU_ShortLife": 4}, "lead_time": {"SKU_Basic": 0, "SKU_Premium... | OPTIMAL | 391,558.5 |
retail_f1_base_v3 | "[SCENARIO]\nFamily: F1 (Core Operations)\nArchetype: retail_f1_base\nScenario ID: retail_f1_base_v3(...TRUNCATED) | "[SCENARIO]\nFamily: F1 (Core Operations)\nArchetype: retail_f1_base\nScenario ID: retail_f1_base_v3(...TRUNCATED) | "{\"name\": \"retail_f1_base_v3\", \"description\": \"Standard seasonal retail scenario.\", \"period(...TRUNCATED) | OPTIMAL | 370,433.5 |
retail_f1_base_v4 | "[SCENARIO]\nFamily: F1 (Core Operations)\nArchetype: retail_f1_base\nScenario ID: retail_f1_base_v4(...TRUNCATED) | "[SCENARIO]\nFamily: F1 (Core Operations)\nArchetype: retail_f1_base\nScenario ID: retail_f1_base_v4(...TRUNCATED) | "{\"name\": \"retail_f1_base_v4\", \"description\": \"Standard seasonal retail scenario.\", \"period(...TRUNCATED) | OPTIMAL | 371,353 |
RetailOpt-190: A Retail Supply Chain Benchmark for Text-to-Optimization
RetailOpt-190 is a solver-validated benchmark for evaluating semantic reliability in text-to-optimization. It tests whether LLM-based agents can reconstruct the intended optimization structure—not just produce runnable code.
Dataset Summary
RetailOpt-190 contains 190 retail supply chain optimization instances designed to test compositional consistency in LLM-generated optimization code. Each instance includes a natural-language problem description, structured JSON data, and ground truth solutions from a validated MILP solver.
The benchmark spans 8 scenario families and 38 archetypes covering core retail planning mechanisms:
| Family | Name | Archetypes | Key Mechanisms |
|---|---|---|---|
| F1 | Core Operations | 4 | Multi-period inventory, seasonal demand, perishability |
| F2 | Assortment & Substitution | 6 | Product substitution, promotions, ultra-short shelf life |
| F3 | Resource Constraints | 4 | Storage bottleneck, supply bottleneck, volumetric limits |
| F4 | Demand Dynamics | 6 | Demand surge, supply risk, peak failure |
| F5 | Feasibility Stress | 4 | Impossible demand, storage overflow, strict service traps |
| F6 | Discrete Logistics | 4 | Lead time, MOQ, pack size, fixed order cost |
| F7 | Network & Multi-Echelon | 6 | Transshipment, hub-spoke, multi-sourcing |
| F8 | Omni-channel | 4 | Reverse logistics, labor constraints, sustainability |
Languages
English
Prompt Formats
RetailOpt-190 provides two prompt formats in the dataset:
| Format | Field | Data Location | Role | Use Case |
|---|---|---|---|---|
| Data-embedded | prompt_full |
In prompt | Default evaluation format | Direct comparison with other benchmarks (NL4Opt, MAMO, IndustryOR) |
| Schema-based | prompt_schema |
External (runtime) | ReLoop verification format | Large datasets, agentic workflows |
Data-embedded (prompt_full) is the default evaluation format. ReLoop and all baseline experiments use this format to maintain a consistent input structure across models and datasets (NL4Opt, MAMO, IndustryOR all embed data in prompts). Schema-based (prompt_schema) separates data from the prompt and loads it at runtime, which better reflects real-world industrial workflows where data volumes make in-prompt embedding impractical.
Both formats provide the same semantic information—only the data delivery method differs.
Dataset Structure
Data Fields
| Field | Type | Description |
|---|---|---|
scenario_id |
string | Unique scenario identifier (e.g., retail_f1_base_v0) |
prompt_schema |
string | Schema-based prompt (data loaded at runtime via data variable) |
prompt_full |
string | Data-embedded prompt (full JSON data in prompt) |
data |
string | JSON-formatted instance data (parse with json.loads()) |
reference_status |
string | Ground truth solver status (OPTIMAL, INFEASIBLE, etc.) |
reference_objective |
float | Ground truth objective value (null if infeasible) |
Data Splits
| Split | Examples |
|---|---|
| test | 190 |
Usage
Loading the Dataset
from datasets import load_dataset
import json
dataset = load_dataset("Jacoblian/RetailOpt-190", split="test")
sample = dataset[0]
print(sample['scenario_id']) # e.g., "retail_f1_base_v0"
print(sample['prompt_schema'][:200]) # Schema-based prompt
print(sample['prompt_full'][:200]) # Data-embedded prompt
Option A: Data-embedded Evaluation (Default)
Use prompt_full for standard evaluation (compatible with other benchmarks):
from datasets import load_dataset
dataset = load_dataset("Jacoblian/RetailOpt-190", split="test")
for sample in dataset:
prompt = sample['prompt_full'] # Data is already in prompt
generated_code = your_llm(prompt)
exec(generated_code) # Code parses JSON from prompt itself
print(f"Reference: {sample['reference_status']}, {sample['reference_objective']}")
Option B: Schema-based Evaluation
Use prompt_schema when you need external data loading (ReLoop pipeline, agentic workflows):
from datasets import load_dataset
import json
dataset = load_dataset("Jacoblian/RetailOpt-190", split="test")
for sample in dataset:
prompt = sample['prompt_schema']
data = json.loads(sample['data'])
generated_code = your_llm(prompt)
exec(generated_code, {'data': data}) # Data pre-loaded
print(f"Reference: {sample['reference_status']}, {sample['reference_objective']}")
Evaluation Metrics
- Execution Rate: Percentage of instances that run without error
- Accuracy: Percentage matching ground truth (status + objective within tolerance)
- Silent Failure Rate: Executable code with incorrect answer
Accuracy Tolerances
| Scenarios | Problem Type | Tolerance |
|---|---|---|
| F1-F5, F6 (lead_time, moq_binary), F7-F8 | LP / easy MIP | 0.01% |
| F6 (pack_size_integer, fixed_order_cost) | Hard MIP, hits 60s time limit | 1% |
Only 2 of the 4 F6 archetypes require the relaxed tolerance. pack_size_integer and fixed_order_cost hit the 60-second time limit and return near-optimal solutions; the other F6 archetypes solve to optimality within seconds.
Dataset Creation
Source Data
All instances are synthetically generated from 38 archetype specifications. Each archetype is instantiated with 5 numerical variants (v0-v4) via controlled parameter perturbations.
Annotations
Ground truth solutions are computed using a validated MILP solver (Gurobi) with the following settings:
- TimeLimit: 60 seconds
- MIPGap: 1%
- Threads: 1
Additional Information
Citation
@article{lian2026reloop,
author = {Junbo Jacob Lian and Yujun Sun and Huiling Chen and Chaoyu Zhang and Chung-Piaw Teo},
title = {ReLoop: Structured Modeling and Behavioral Verification for Reliable LLM-Based Optimization},
journal = {arXiv preprint arXiv:2602.15983},
year = {2026},
url = {https://arxiv.org/abs/2602.15983}
}
License
- Code: MIT
- Data: CC BY 4.0
Related Resources
- ReLoop Framework: https://github.com/junbolian/ReLoop - Complete implementation of the ReLoop verification pipeline
- Downloads last month
- 13