From e15beda54af25dfb58e31023e41605e3c31ccb10 Mon Sep 17 00:00:00 2001 From: Jackeeee_M <76743090+JackeyMiao@users.noreply.github.com> Date: Mon, 29 Aug 2022 16:33:57 +0800 Subject: [PATCH] update(scip.pyx) add function getindex() to class column --- src/pyscipopt/scip.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pyscipopt/scip.pyx b/src/pyscipopt/scip.pyx index 7a13aa50b..aca49f238 100644 --- a/src/pyscipopt/scip.pyx +++ b/src/pyscipopt/scip.pyx @@ -324,7 +324,10 @@ cdef class Column: def isIntegral(self): """returns whether the associated variable is of integral type (binary, integer, implicit integer)""" return SCIPcolIsIntegral(self.scip_col) - + + def getIndex(self): + return SCIPcolGetIndex(self.scip_col) + def getVar(self): """gets variable this column represents""" cdef SCIP_VAR* var = SCIPcolGetVar(self.scip_col)