Skip to content

Commit

Permalink
Update Test_3MED_AHP_eNRTL.py
Browse files Browse the repository at this point in the history
added assert for multiple units in test_model_analysis
  • Loading branch information
nazia-ga authored Dec 18, 2024
1 parent b4370a2 commit f1cf1d5
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,29 @@ def test_model_analysis(self, MED_AHP_eNRTL):
results = solver.solve(m, tee=False)

# assert_optimal_termination(results)

'''
for e in m.fs.set_evaporators:
assert isinstance(m.fs.eq_upper_bound_evaporators_delta_temprature_in[e], Constraint)
assert isinstance(m.fs.eq_upper_bound_generator_delta_temperature_in, Constraint)
assert isinstance(m.fs.eq_upper_bound_generator_delta_temprature_out, Constraint)
for e in m.fs.set2_evaporators:
assert isinstance(m.fs.eq_upper_bound_evaporators_pressure[e], Constraint)
for e in m.fs.set_evaporators:
assert isinstance(m.fs.UA_term[e], Expression)
assert isinstance(m.fs.UA_term_gen, Expression)
assert isinstance(m.fs.gen_area_upper_bound, Constraint)
assert isinstance(m.fs.econ_area_upper_bound, Constraint)
assert isinstance(m.fs.abs_area_upper_bound, Constraint)
assert isinstance(m.fs.water_density, Param)
assert m.fs.water_density.value == 1000
assert isinstance(m.fs.total_water_produced_gpm, Expression)
assert isinstance(m.fs.performance_ratio, Expression)
assert isinstance(m.fs.eq_specific_energy_consumption, Constraint)
assert isinstance(m.fs.rule_water_recovery, Constraint)
assert isinstance(m.fs.water_recovery_ub, Constraint)
assert isinstance(m.fs.water_recovery_lb, Constraint)
'''

# additional constraints, variables, and expressions
assert isinstance(
m.fs.eq_upper_bound_evaporators_delta_temprature_in, Constraint
Expand Down

0 comments on commit f1cf1d5

Please sign in to comment.