Update README.md
Browse files
README.md
CHANGED
|
@@ -292,8 +292,9 @@ MILP instances in this library are stored as text strings. You can download the
|
|
| 292 |
from datasets import load_dataset
|
| 293 |
|
| 294 |
dataset = load_dataset("weiminhu/D-MIPLIB","CA-easy", split='test')
|
| 295 |
-
|
| 296 |
-
|
|
|
|
| 297 |
with open(ins_save_path, "w") as file:
|
| 298 |
tmp=test_instance[2:-1]
|
| 299 |
tmp=tmp.replace("\\n","\n")
|
|
|
|
| 292 |
from datasets import load_dataset
|
| 293 |
|
| 294 |
dataset = load_dataset("weiminhu/D-MIPLIB","CA-easy", split='test')
|
| 295 |
+
test_id = 0
|
| 296 |
+
test_instance = dataset[test_id]['MILP']
|
| 297 |
+
ins_save_path = "./test_instance_%s.lp" % test_id
|
| 298 |
with open(ins_save_path, "w") as file:
|
| 299 |
tmp=test_instance[2:-1]
|
| 300 |
tmp=tmp.replace("\\n","\n")
|