-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_benchmark.py
63 lines (52 loc) · 1.24 KB
/
main_benchmark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 10 15:57:17 2021
@author: aoust
Special purpose file to test the Bukhsh instances.
Comparison with H. Godard's PhD thesis results => same total time limit (1h) and same accuracy (0.1\%)
"""
from master import global_algo
import sys
#Instance parameters
lineconstraints = False
#Overriding Main algo parameters
BTtimeLimit = 1800
MILPtimeLimit = 3600
reltol = 1E-3
instances = [
'WB2',
'WB3',
'WB5',
'WB5mod',
'case9mod',
'case22loop',
'case30loopmod',
'case39mod1',
'case39mod2',
'case118mod',
'case5',
'case6ww',
'case9',
'case14',
'case30',
'case39',
'case57',
'case89pegase',
'case118',
'case300',
'case300mod',
'pglib_opf_case118_ieee',
'pglib_opf_case118_ieee__api',
'pglib_opf_case118_ieee__sad',
'pglib_opf_case162_ieee_dtc',
'pglib_opf_case162_ieee_dtc__api',
'pglib_opf_case162_ieee_dtc__sad',
'pglib_opf_case300_ieee',
'pglib_opf_case300_ieee__api',
'pglib_opf_case300_ieee__sad'
]
for name_instance in instances:
try:
global_algo(name_instance.replace('.m',''),lineconstraints,'data/benchmark_godard',BTtimeLimit,MILPtimeLimit,reltol)
except:
print("Unexpected error:", sys.exc_info()[0])