You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'''sets the pre subproblem solve callback of Benders decomposition '''
@@ -60,8 +59,7 @@ cdef class Benders:
60
59
61
60
defbendersgetvar(self, variable, probnumber):
62
61
'''Returns the corresponding master or subproblem variable for the given variable. This provides a call back for the variable mapping between the master and subproblems. '''
63
-
print("python error in bendersgetvar: this method needs to be implemented")
64
-
return {}
62
+
raiseNotImplementedError("bendersgetvar() is a fundamental callback and should be implemented in the derived class")
0 commit comments