From abbc5aa03a1273867c8851688c10540492cc0d98 Mon Sep 17 00:00:00 2001 From: ZedongPeng Date: Mon, 30 Oct 2023 21:33:10 -0400 Subject: [PATCH] fix bug --- pyomo/contrib/mindtpy/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyomo/contrib/mindtpy/util.py b/pyomo/contrib/mindtpy/util.py index 5eb0d18e41d..87972de1d69 100644 --- a/pyomo/contrib/mindtpy/util.py +++ b/pyomo/contrib/mindtpy/util.py @@ -23,7 +23,8 @@ RangeSet, ConstraintList, TransformationFactory, - Expression + Expression, + log ) from pyomo.repn import generate_standard_repn from pyomo.contrib.mcpp.pyomo_mcpp import mcpp_available, McCormick @@ -1088,7 +1089,7 @@ def compute_determinant(m): return det_perm - det_init = pyo.log(compute_determinant(mod)+0.000001) + det_init = log(compute_determinant(mod)+0.000001) mod.my_block.egb.outputs["log_det"].value = det_init