Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Oct 31, 2023
1 parent aeead40 commit abbc5aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyomo/contrib/mindtpy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit abbc5aa

Please sign in to comment.