avinashresearch1 / CompHENS.jl

Computational Tools for Heat Exchanger Network Synthesis
MIT License
8 stars 1 forks source link

NaN values when generating intervals in stream match generator #64

Closed kangqiu closed 1 year ago

kangqiu commented 1 year ago

Occurs when e.g. a hot utility stream is provided in the stream data but not used. Quick fix is not considering that utility stream.

CompHENS_interface_MWE.xlsx

@time using CompHENS using Plots using JuMP using HiGHS using Test

file_path_xlsx = joinpath(@DIR, "CompHENS_interface_MWE.xlsx") prob = ClassicHENSProblem(file_path_xlsx; ΔT_min = 45.0, verbose = true) @time solve_minimum_utilities_subproblem!(prob; verbose = true) model::AbstractModel, overall_network::Dict{String, AbstractSuperstructure}, file_name; digits = 1) @time solve_minimum_units_subproblem!(prob) EMAT = 2.5 prob.results_dict[:add_units] = 1 @time generate_stream_matches!(prob, EMAT; digits = 8, verbose = true)

avinashresearch1 commented 1 year ago

Fixed by: #65