Skip to content

Commit

Permalink
Ruff didn't like the default value for include_leaf_inequalities
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Oct 3, 2024
1 parent e7def05 commit 0231f0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/omlt/linear_tree/lt_formulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def _build_formulation(self):
output_vars=self.block.scaled_outputs,
transformation=self.transformation,
epsilon=self.epsilon,
include_leaf_equalities=True
)


Expand Down Expand Up @@ -266,7 +267,7 @@ def _add_gdp_formulation_to_block( # noqa: PLR0913
output_vars,
transformation,
epsilon,
include_leaf_equalities=True,
include_leaf_equalities,
):
"""This function adds the GDP representation to the OmltBlock using Pyomo.GDP.
Expand Down

0 comments on commit 0231f0e

Please sign in to comment.