-
Notifications
You must be signed in to change notification settings - Fork 0
/
small.py
66 lines (61 loc) · 975 Bytes
/
small.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
64
65
66
# Small benchmark for CORS/INFORMS 2015
import lgo
from util import Config, files, load_index
models = files('', '''
blend
braninu # branin1 in GOMODELS
camel1u # camel1 in GOMODELS
chemeq
chi
gold # goldstein1 in GOMODELS
gridneta
griewank
hs105
hs106
hs109
hs111
hs112
hs114
hs116
hs15a
hs23
hs35
hs44
hs5
hs54
hs6
hs62
hs64
hs8
hs87
kowalik
levy3
ljcluster
osborne1
p2gon
pgon
powell
price
qb2
rosenbr
s324
s383
schwefel
shekel
steenbre
tre
weapon
''')
inputs = load_index('nlmodels')
for model in inputs.keys():
if model not in models:
del inputs[model]
inputs.update(load_index('jdp'))
# Timeout in seconds
timeout = 60
configs = [
Config('knitro', {'feastol': 1e-8}),
Config('lgo', {'opmode': lgo.LOCAL_SEARCH_MODE}, suffix='local-search'),
Config('lgo', {'opmode': lgo.MULTISTART_MODE}, suffix='multistart',
on_nl_file=lgo.make_maxfct_setter(2))
]