def lb(self, lb):
if self.equality.any():
raise ValueError(
"The lb array can not be set "
"when there are indices of the "
"equality array that are True")
if lb is None:
lb = -numpy.inf
if isinstance(lb, numpy.ndarray):
numpy.copyto(self._lb, lb)
elif isinstance(lb, NumericValue):
raise ValueError("lb must be set to "
"a simple numeric type "
"or a numpy array")
else:
self._lb.fill(lb)
评论列表
文章目录