File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -1804,6 +1804,37 @@ cdef class Variable(Expr):
1804
1804
mayround = SCIPvarMayRoundUp(self .scip_var)
1805
1805
return mayround
1806
1806
1807
+ def getNBranchings (self , branchdir ):
1808
+ """
1809
+ returns the number of times a bound of the variable was changed in given direction due to branching
1810
+
1811
+ Parameters
1812
+ ----------
1813
+ branchdir : PY_SCIP_BRANCHDIR
1814
+ branching direction (downwards, or upwards)
1815
+
1816
+ Returns
1817
+ -------
1818
+ int
1819
+ """
1820
+ return SCIPvarGetNBranchings(self .scip_var, branchdir)
1821
+
1822
+ def getNBranchingsCurrentRun (self , branchdir ):
1823
+ """
1824
+ returns the number of times a bound of the variable was changed in given direction due to branching in the
1825
+ current run
1826
+
1827
+ Parameters
1828
+ ----------
1829
+ branchdir : PY_SCIP_BRANCHDIR
1830
+ branching direction (downwards, or upwards)
1831
+
1832
+ Returns
1833
+ -------
1834
+ int
1835
+ """
1836
+ return SCIPvarGetNBranchingsCurrentRun(self .scip_var, branchdir)
1837
+
1807
1838
class MatrixVariable (MatrixExpr ):
1808
1839
1809
1840
def vtype (self ):
You can’t perform that action at this time.
0 commit comments