Skip to content

Commit 2040546

Browse files
author
Matthias Koeppe
committed
src/sage/numerical/backends/scip_backend.pyx: Fix copying variable types
1 parent 01d4cdc commit 2040546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/numerical/backends/scip_backend.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ cdef class SCIPBackend(GenericBackend):
11481148
cdef SCIPBackend cp = type(self)(maximization=self.is_maximization())
11491149
cp.problem_name(self.problem_name())
11501150
for i, v in enumerate(self.variables):
1151-
vtype = v.vtype
1151+
vtype = v.vtype()
11521152
cp.add_variable(self.variable_lower_bound(i),
11531153
self.variable_upper_bound(i),
11541154
binary=vtype == 'BINARY',

0 commit comments

Comments
 (0)