Skip to content

About

FuzzyOR-Bench: A bilingual (EN/ZH) benchmark of 150 natural-language fuzzy mathematical programming problems with structured reference models and 5-alpha verified solutions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FuzzyOR-Bench

FuzzyOR-Bench (v1.1.0) is a bilingual (English and Chinese) benchmark for natural-language fuzzy mathematical programming. It contains 150 aligned decision problems (prob_000–prob_149) covering fuzzy parameters, soft constraints, and fuzzy objectives, paired with structured reference models, executable reference solver scripts, and numerically verified reference solutions across five $\alpha$-cut levels ([0.2, 0.4, 0.6, 0.8, 1.0]).

Benchmark Overview

Dimension Breakdown
Problems 150 aligned bilingual instances (prob_000–prob_149)
Optimization classes 70 LP (continuous) and 80 MILP (21 integer, 9 binary, 50 mixed)
Model scale (median / max) Expanded scalar variables: 12 / 3,896; hard constraints: 9.5 / 6,219; soft requirements: 4 / 218
Fuzzy features 150 problems with soft requirements; 133 also include fuzzy parameters (100 objective coeff., 80 constraint coeff., 104 hard RHS)
Membership shapes Triangular (105), trapezoidal (34), asymmetric piecewise-linear (21), Gaussian (6) (multi-label)
$\alpha$-cut grid [0.2, 0.4, 0.6, 0.8, 1.0] (750 instance-$\alpha$ pairs, all verified optimal)
Source inspiration IndustryOR (24), NLP4LP (25), LogiOR (20), ComplexOR (30), IndusCP (50), textbook-adapted (1)

Repository Layout

All files are stored directly in standard Git (no Git LFS required; total repository download ~41 MiB).

Lightweight Public Inputs (Question-Only)

Full Reference Datasets (Gzip-Compressed JSON)

  • data/en/dataset.json.gz — Complete English dataset with gold annotations, reference models (verification_spec), executable solver scripts, and 5-$\alpha$ answers (19.32 MiB compressed; 371.91 MiB uncompressed)
  • data/zh/dataset.json.gz — Complete Chinese dataset with the same 150 identifiers and aligned reference answers (19.34 MiB compressed; 371.59 MiB uncompressed)

Supporting Files

Download & Quick Start

Clone directly with standard Git (or download the archive from GitHub Releases):

git clone https://github.com/linbo618/FuzzyOR-Bench.git

Use only questions.jsonl (or the id and question fields) as inputs to an evaluated model. All remaining fields (fuzzy_groundtruth, fuzzy_coefficient_groundtruth, model, code, answer, metadata) are gold evaluation data and must remain hidden from the model under test.

import gzip
import json

# 1. Load lightweight public inputs (for model inference)
with open("data/en/questions.jsonl", encoding="utf-8") as f:
    questions = [json.loads(line) for line in f]
print(len(questions), questions[0]["id"])

# 2. Load full reference dataset directly from .json.gz (for offline evaluation)
with gzip.open("data/en/dataset.json.gz", "rt", encoding="utf-8") as f:
    bench = json.load(f)
inst = bench["instances"][0]
print(inst["id"], inst["answer"]["alpha_grid"], inst["answer"]["objective_values_by_alpha"])

# 3. Resolve deduplicated evidence spans in fuzzy_groundtruth (Schema 2.5)
spans = inst["fuzzy_groundtruth"]["text_spans"]
first_obj = inst["fuzzy_groundtruth"]["objects"][0]
print(first_obj["id"], "->", spans[first_obj["text_span_index"]][:80])
  • Reference model semantics: Each reference model (model.verification_spec) is an author-reviewed interpretation under benchmark_convention.json. When multiple feasible solutions attain the same optimal value within tolerance (1e-7), any of them is accepted.
  • Reference solver scripts (code.source): Auto-generated standalone gurobipy verification scripts embedding compressed compiled matrices so each instance's 5-$\alpha$ reference solution can be re-executed independently.
  • Changelog (v1.1.0 / Schema 2.5):
    • Removed redundant intermediate builder copies (model.question_data) and deduplicated repeated evidence spans into per-instance fuzzy_groundtruth.text_spans, reducing uncompressed size by ~58–59% (~1.75 GiB → 744 MiB).
    • Removed legacy single-$\alpha$ (0.8) remnants and repetitive boilerplate metadata.
    • Packaged full datasets as gzip-compressed JSON (~19.3 MiB each) directly in Git alongside plain-text questions.jsonl, removing the Git LFS requirement and bandwidth barrier.
    • All 150 EN/ZH questions, verification_spec models, solver scripts, and 750 reference solutions remain numerically identical to v1.0.4 and independently replay-verified.

License and Citation

Original authored content in this release is provided under LICENSE for non-commercial research, education, benchmarking, and internal evaluation. Upstream provenance and third-party terms are documented in THIRD_PARTY_NOTICES.md. Please cite this release using CITATION.cff and acknowledge the relevant upstream sources.

About

FuzzyOR-Bench: A bilingual (EN/ZH) benchmark of 150 natural-language fuzzy mathematical programming problems with structured reference models and 5-alpha verified solutions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors