Skip to content

Commit

Permalink
Merge pull request #30 from TobyBoyne/master
Browse files Browse the repository at this point in the history
Add verbosity parameter
  • Loading branch information
spiralulam authored May 6, 2024
2 parents 7c4dbf8 + a2f3105 commit 5d90ab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entmoot/optimizers/pyomo_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def solve(
tree_model.add_to_pyomo_model(opt_model)

# Solve optimization model
opt.solve(opt_model, tee=True)
verbose = self._params.get("verbose", True)
opt.solve(opt_model, tee=verbose)

# update current solution
self._curr_sol, self._active_leaves = self._get_sol(opt_model)
Expand Down

0 comments on commit 5d90ab3

Please sign in to comment.