We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b66ba0 commit 883d858Copy full SHA for 883d858
1 file changed
linopy/dual.py
@@ -131,7 +131,7 @@ def _con_lookup(m: Model) -> dict:
131
return con_lookup
132
133
134
-def bounds_to_constraints(m) -> None:
+def bounds_to_constraints(m: Model) -> None:
135
"""
136
Add explicit bound constraints for variables with bounds set directly
137
in the variable rather than via explicit constraints.
@@ -492,7 +492,7 @@ def _add_dual_objective(
492
493
494
def dualize(
495
- m,
+ m: Model,
496
add_objective_constant: float = 0.0,
497
) -> Model:
498
@@ -558,7 +558,7 @@ def dualize(
558
)
559
return m2
560
561
- m1.bounds_to_constraints()
+ bounds_to_constraints(m1)
562
var_lup = _var_lookup(m1)
563
con_lup = _con_lookup(m1)
564
dual_vars = _add_dual_variables(m1, m2)
0 commit comments