We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6503198 commit 1423ccaCopy full SHA for 1423cca
pulp/pulp.py
@@ -258,6 +258,7 @@ class LpVariable(LpElement):
258
:param e: Used for column based modelling: relates to the variable's
259
existence in the objective function and constraints
260
"""
261
+
262
name: str
263
varValue: Optional[float]
264
dj: Optional[float]
@@ -588,7 +589,7 @@ def valid(self, eps):
588
589
return False
590
return True
591
- def infeasibilityGap(self, mip: bool=True):
592
+ def infeasibilityGap(self, mip: bool = True):
593
if self.varValue is None:
594
raise ValueError("variable value is None")
595
if self.upBound is not None and self.varValue > self.upBound:
0 commit comments