Skip to content

Commit

Permalink
dont use relaxation factors for optimization algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed May 31, 2024
1 parent 1633bd9 commit d45f46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biosteam/units/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,7 @@ def _split_objective(self, splits):
mixer.outs[0].mix_from(
mixer.ins, energy_balance=False,
)
partition._run_decoupled_KTvle(P=P)
partition._run_decoupled_KTvle(P=P, K_relaxation_factor=0, T_relaxation_factor=0)
partition._run_decoupled_B()
T = partition.T
for i in (partition.outs + i.outs): i.T = T
Expand Down Expand Up @@ -2329,7 +2329,7 @@ def _lnSb_objective(self, lnSb):
mixer.outs[0].mix_from(
mixer.ins, energy_balance=False,
)
partition._run_decoupled_KTvle(P=P)
partition._run_decoupled_KTvle(P=P, K_relaxation_factor=0, T_relaxation_factor=0)
partition._run_decoupled_B()
T = partition.T
for i in (partition.outs + i.outs): i.T = T
Expand Down

0 comments on commit d45f46d

Please sign in to comment.