From 01319d7a612cd864773b3ba5cbd5db533b8dcc8d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 9 Apr 2024 14:02:04 -0400 Subject: [PATCH] Catching unneccessary terms in lagrange multiplier expression --- idaes/models/unit_models/gibbs_reactor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idaes/models/unit_models/gibbs_reactor.py b/idaes/models/unit_models/gibbs_reactor.py index 669545550f..0cf2caba59 100644 --- a/idaes/models/unit_models/gibbs_reactor.py +++ b/idaes/models/unit_models/gibbs_reactor.py @@ -249,6 +249,10 @@ def gibbs_minimization(b, t, p, j): j ][e] for e in b.control_volume.config.property_package.element_list + if b.control_volume.properties_out[ + t + ].config.parameters.element_comp[j][e] + != 0 ) )