Commit 5d8228d9 authored by Jesse VanderWees's avatar Jesse VanderWees 🐘 Committed by Tjerk Vreeken

Fix log_solver_failure_as_error being ignored

Commit b2dc65d6 caused the log_solver_failure_as_error parameter to
optimize() to be ignored.
parent 2d4a1c73
......@@ -216,6 +216,9 @@ class OptimizationProblem(metaclass=ABCMeta):
and solver_stats['return_status'] in ['Not_Enough_Degrees_Of_Freedom']):
log_level = logging.WARNING
if log_level == logging.ERROR and not log_solver_failure_as_error:
log_level = logging.INFO
return success, log_level
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment