weiminhu commited on
Commit
4f84a5c
·
verified ·
1 Parent(s): ad4e4c7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
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
- test_instance = dataset[0]['MILP']
296
- ins_save_path = "./test_instance.lp"
 
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")