Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
Unnamed: 0
int64
0
799
MILP
stringlengths
71.4k
81.4k
0
b'maximize\nOBJ: +41.440833329718075 x1 +599.7742513470666 x2 +827.0789131997896 x3 +784.3939772061908 x4 +709.4979227155337 x5 +698.7493446678686 x6 +698.1483130886376 x7 +564.3894195939414 x8 +651.9561858371795 x9 +628.0246293073554 x10 +580.8726016427689 x11 +566.0203192536429 x12 +517.687127845352 x13 +26.316950373...
1
b'maximize\nOBJ: +104.9301893994737 x1 +169.64812926726344 x2 +140.23339708978605 x3 +206.10472780899025 x4 +306.84281139795394 x5 +299.1030046322636 x6 +235.2417055022582 x7 +382.8386472317602 x8 +314.35070033842203 x9 +176.29243703579988 x10 +116.93674501061496 x11 +22.768342558577224 x12 +486.4813124809691 x13 +627....
2
"b'maximize\\nOBJ: +44.578704659802604 x1 +543.7746520535285 x2 +679.3912916489012 x3 +655.590031122(...TRUNCATED)
3
"b'maximize\\nOBJ: +279.5776551833959 x1 +409.9326327138044 x2 +295.66837079827883 x3 +201.306487224(...TRUNCATED)
4
"b'maximize\\nOBJ: +117.0092213514173 x1 +171.04699776599003 x2 +215.1475989793337 x3 +235.419821468(...TRUNCATED)
5
"b'maximize\\nOBJ: +187.37353962388056 x1 +235.9863037823539 x2 +43.28139958929974 x3 +220.104956388(...TRUNCATED)
6
"b'maximize\\nOBJ: +109.41243740235015 x1 +264.4289390378175 x2 +254.34579676969847 x3 +205.61180548(...TRUNCATED)
7
"b'maximize\\nOBJ: +245.71834179227585 x1 +338.9615430972052 x2 +329.3671733098288 x3 +214.708144507(...TRUNCATED)
8
"b'maximize\\nOBJ: +193.1601856155851 x1 +249.95708870010336 x2 +195.77579400924284 x3 +172.85659086(...TRUNCATED)
9
"b'maximize\\nOBJ: +541.6819220492806 x1 +572.3341252594453 x2 +532.7681155058308 x3 +507.6519266939(...TRUNCATED)
End of preview. Expand in Data Studio

Dataset Card for Distributional MIPLIB (D-MIPLIB)

🌐 website

Introducing Distributional MIPLIB (D-MIPLIB), the first comprehensive standardized dataset for evaluating ML-guided Mixed Integer Linear Programming (MILP) solving. Details of D-MIPLIB can be found on our website.

Composition

Distributional MIPLIB contains MILP distributions from 13 application domains and of different hardness levels. A list of all the domains and all the distributions is provided at website. Each distribution contains a set of similar MILP optimization problem instances that correspond to the same model (a class of combinatorial optimization with specific parameters).

For each distribution, there are 1000 instances in total, except for cases where more instances have been made publicly available previously or when limited instances are available. For Neural Network Verification, there are 3692 instances in total. Maritime Inventory Routing Problem contains 118 instances. Seismic-Resilient Pipe Network Planning domain contains 219 and 206 instances in the Easy and Hard distribution, respectively.

Loading MILP instances

MILP instances in this library are stored as text strings. You can download the MILP as *.lp or *.mps files by

from datasets import load_dataset
# load the first test instance
dataset = load_dataset("weiminhu/D-MIPLIB","CA-easy", split='test')
test_id = 0
test_instance = dataset[test_id]['MILP']
# check file format
file_format='lp'
if 'format' in list(dataset[0].keys()):
    if dataset[0]['format']=='mps':
        file_format='mps'
ins_save_path = "./test_instance_%s.%s" % (test_id,file_format)
# write file to disk
with open(ins_save_path, "w") as file:
    tmp=test_instance[2:-1]
    tmp=tmp.replace("\\n","\n")
    file.write(tmp)

To load and solve the MILP in Gurobi, run

import gurobipy as gp

model=gp.read(ins_save_path) 
model.optimize()

License

Instances data in different domains is licensed under different licenses, as we curated the data from different sources.

Citation

BibTeX:

@misc{huang2024distributional,
      title={Distributional MIPLIB: a Multi-Domain Library for Advancing ML-Guided MILP Methods}, 
      author={Weimin Huang and Taoan Huang and Aaron M Ferber and Bistra Dilkina},
      year={2024},
      eprint={2406.06954},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}
Downloads last month
103

Paper for weiminhu/D-MIPLIB