Skip to content

Commit 15f7e1b

Browse files
committed
finally working
1 parent 9db8870 commit 15f7e1b

File tree

5 files changed

+174
-3
lines changed

5 files changed

+174
-3
lines changed

tests/__init__.py

Whitespace-only changes.

tests/data/readStatistics.stats

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
SCIP Status : solving was interrupted [solution limit reached]
2+
Total Time : 0.00
3+
solving : 0.00
4+
presolving : 0.00 (included in solving)
5+
reading : 0.00
6+
copying : 0.00 (0 times copied the problem)
7+
Original Problem :
8+
Problem name : model
9+
Variables : 1 (0 binary, 0 integer, 0 implicit integer, 1 continuous)
10+
Constraints : 0 initial, 0 maximal
11+
Objective : minimize, 0 non-zeros (abs.min = 1e+20, abs.max = -1e+20)
12+
Presolved Problem :
13+
Problem name : t_model
14+
Variables : 1 (0 binary, 0 integer, 0 implicit integer, 1 continuous)
15+
Constraints : 0 initial, 0 maximal
16+
Objective : minimize, 0 non-zeros (abs.min = 1e+20, abs.max = -1e+20)
17+
Nonzeros : 0 constraint, 0 clique table
18+
Presolvers : ExecTime SetupTime Calls FixedVars AggrVars ChgTypes ChgBounds AddHoles DelCons AddCons ChgSides ChgCoefs
19+
boundshift : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
20+
convertinttobin : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
21+
domcol : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
22+
dualagg : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
23+
dualcomp : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
24+
dualinfer : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
25+
dualsparsify : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
26+
gateextraction : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
27+
implics : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
28+
inttobinary : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
29+
qpkktref : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
30+
redvub : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
31+
sparsify : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
32+
stuffing : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
33+
trivial : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
34+
tworowbnd : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
35+
dualfix : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
36+
genvbounds : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
37+
probing : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
38+
pseudoobj : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
39+
symmetry : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
40+
vbounds : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
41+
benders : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
42+
components : 0.00 0.00 0 0 0 0 0 0 0 0 0 0
43+
root node : - - - 0 - - 0 - - - - -
44+
Constraints : Number MaxNumber #Separate #Propagate #EnfoLP #EnfoRelax #EnfoPS #Check #ResProp Cutoffs DomReds Cuts Applied Conss Children
45+
benderslp : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
46+
integral : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
47+
benders : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
48+
fixedvar : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
49+
countsols : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
50+
components : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
51+
Constraint Timings : TotalTime SetupTime Separate Propagate EnfoLP EnfoPS EnfoRelax Check ResProp SB-Prop
52+
benderslp : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
53+
integral : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
54+
benders : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
55+
fixedvar : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
56+
countsols : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
57+
components : 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
58+
Propagators : #Propagate #ResProp Cutoffs DomReds
59+
dualfix : 0 0 0 0
60+
genvbounds : 0 0 0 0
61+
nlobbt : 0 0 0 0
62+
obbt : 0 0 0 0
63+
probing : 0 0 0 0
64+
pseudoobj : 0 0 0 0
65+
redcost : 0 0 0 0
66+
rootredcost : 0 0 0 0
67+
symmetry : 0 0 0 0
68+
vbounds : 0 0 0 0
69+
Propagator Timings : TotalTime SetupTime Presolve Propagate ResProp SB-Prop
70+
dualfix : 0.00 0.00 0.00 0.00 0.00 0.00
71+
genvbounds : 0.00 0.00 0.00 0.00 0.00 0.00
72+
nlobbt : 0.00 0.00 0.00 0.00 0.00 0.00
73+
obbt : 0.00 0.00 0.00 0.00 0.00 0.00
74+
probing : 0.00 0.00 0.00 0.00 0.00 0.00
75+
pseudoobj : 0.00 0.00 0.00 0.00 0.00 0.00
76+
redcost : 0.00 0.00 0.00 0.00 0.00 0.00
77+
rootredcost : 0.00 0.00 0.00 0.00 0.00 0.00
78+
symmetry : 0.00 0.00 0.00 0.00 0.00 0.00
79+
vbounds : 0.00 0.00 0.00 0.00 0.00 0.00
80+
Conflict Analysis : Time Calls Success DomReds Conflicts Literals Reconvs ReconvLits Dualrays Nonzeros LP Iters (pool size: [--,--])
81+
propagation : 0.00 0 0 - 0 0.0 0 0.0 - - -
82+
infeasible LP : 0.00 0 0 - 0 0.0 0 0.0 0 0.0 0
83+
bound exceed. LP : 0.00 0 0 - 0 0.0 0 0.0 0 0.0 0
84+
strong branching : 0.00 0 0 - 0 0.0 0 0.0 - - 0
85+
pseudo solution : 0.00 0 0 - 0 0.0 0 0.0 - - -
86+
applied globally : 0.00 - - 0 0 0.0 - - 0 - -
87+
applied locally : - - - 0 0 0.0 - - 0 - -
88+
Primal Heuristics : ExecTime SetupTime Calls Found Best
89+
LP solutions : 0.00 - - 0 0
90+
relax solutions : 0.00 - - 0 0
91+
pseudo solutions : 0.00 - - 0 0
92+
strong branching : 0.00 - - 0 0
93+
actconsdiving : 0.00 0.00 0 0 0
94+
adaptivediving : 0.00 0.00 0 0 0
95+
alns : 0.00 0.00 0 0 0
96+
bound : 0.00 0.00 0 0 0
97+
clique : 0.00 0.00 0 0 0
98+
coefdiving : 0.00 0.00 0 0 0
99+
completesol : 0.00 0.00 0 0 0
100+
conflictdiving : 0.00 0.00 0 0 0
101+
crossover : 0.00 0.00 0 0 0
102+
dins : 0.00 0.00 0 0 0
103+
distributiondivin: 0.00 0.00 0 0 0
104+
dps : 0.00 0.00 0 0 0
105+
dualval : 0.00 0.00 0 0 0
106+
farkasdiving : 0.00 0.00 0 0 0
107+
feaspump : 0.00 0.00 0 0 0
108+
fixandinfer : 0.00 0.00 0 0 0
109+
fracdiving : 0.00 0.00 0 0 0
110+
gins : 0.00 0.00 0 0 0
111+
guideddiving : 0.00 0.00 0 0 0
112+
indicator : 0.00 0.00 0 0 0
113+
indicatordiving : 0.00 0.00 0 0 0
114+
intdiving : 0.00 0.00 0 0 0
115+
intshifting : 0.00 0.00 0 0 0
116+
linesearchdiving : 0.00 0.00 0 0 0
117+
localbranching : 0.00 0.00 0 0 0
118+
locks : 0.00 0.00 0 0 0
119+
lpface : 0.00 0.00 0 0 0
120+
mpec : 0.00 0.00 0 0 0
121+
multistart : 0.00 0.00 0 0 0
122+
mutation : 0.00 0.00 0 0 0
123+
nlpdiving : 0.00 0.00 0 0 0
124+
objpscostdiving : 0.00 0.00 0 0 0
125+
octane : 0.00 0.00 0 0 0
126+
ofins : 0.00 0.00 0 0 0
127+
oneopt : 0.00 0.00 0 0 0
128+
padm : 0.00 0.00 0 0 0
129+
proximity : 0.00 0.00 0 0 0
130+
pscostdiving : 0.00 0.00 0 0 0
131+
randrounding : 0.00 0.00 0 0 0
132+
rens : 0.00 0.00 0 0 0
133+
reoptsols : 0.00 0.00 0 0 0
134+
repair : 0.00 0.00 0 0 0
135+
rins : 0.00 0.00 0 0 0
136+
rootsoldiving : 0.00 0.00 0 0 0
137+
rounding : 0.00 0.00 0 0 0
138+
scheduler : 0.00 0.00 0 0 0
139+
shiftandpropagate: 0.00 0.00 0 0 0
140+
shifting : 0.00 0.00 0 0 0
141+
simplerounding : 0.00 0.00 0 0 0
142+
subnlp : 0.00 0.00 0 0 0
143+
trivial : 0.00 0.00 0 0 0
144+
trivialnegation : 0.00 0.00 0 0 0
145+
trustregion : 0.00 0.00 0 0 0
146+
trysol : 0.00 0.00 0 0 0
147+
twoopt : 0.00 0.00 0 0 0
148+
undercover : 0.00 0.00 0 0 0
149+
vbounds : 0.00 0.00 0 0 0
150+
veclendiving : 0.00 0.00 0 0 0
151+
zeroobj : 0.00 0.00 0 0 0
152+
zirounding : 0.00 0.00 0 0 0
153+
other solutions : - - - 0 -
154+
LNS (Scheduler) : Calls SetupTime SolveTime SolveNodes Sols Best Exp3 Exp3-IX EpsGreedy UCB TgtFixRate Opt Inf Node Stal Sol Usr Othr Actv
155+
rens : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
156+
rins : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
157+
mutation : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
158+
localbranching : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
159+
crossover : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
160+
proximity : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
161+
zeroobjective : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
162+
dins : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
163+
trustregion : 0 0.00 0.00 0 0 0 0.00000 0.00000 -1.00000 1.00000 0.900 0 0 0 0 0 0 0 1
164+
Solution :
165+
Solutions found : 0 (0 improvements)
166+
Primal Bound : -
167+
Dual Bound : -
168+
Gap : infinite
169+
Integrals : Total Avg%
170+
primal-dual : 0.02 100.00
171+
primal-ref : - - (not evaluated)
172+
dual-ref : - - (not evaluated)

tests/helpers/__init__.py

Whitespace-only changes.

tests/test_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
from pyscipopt.scip import Model, is_memory_freed, print_memory_in_use
33

44
def test_not_freed():
5-
if is_memory_freed():
5+
if is_optimized_mode():
66
pytest.skip()
77
m = Model()
88
assert not is_memory_freed()
99

1010
def test_freed():
11-
if is_memory_freed():
11+
if is_optimized_mode():
1212
pytest.skip()
1313
m = Model()
1414
del m

tests/test_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import itertools
44

55
from pyscipopt import Model, SCIP_STAGE, SCIP_PARAMSETTING, quicksum
6-
from pyscipopt.scip import is_memory_freed
76

87
def test_model():
98
# create solver instance

0 commit comments

Comments
 (0)