Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infeasible Stream Match Generation #66

Open
kangqiu opened this issue May 16, 2023 · 2 comments
Open

Infeasible Stream Match Generation #66

kangqiu opened this issue May 16, 2023 · 2 comments

Comments

@kangqiu
Copy link
Collaborator

kangqiu commented May 16, 2023

The network generation subproblem is infeasible:

  • changing mcp of process stream H1 makes problem feasible again
  • I suspect its the mass flow balance of the internal nodes of the superstructure that is somehow the problem
# Workflow using XLSX input:
# 1. Import necessary packages:
@time using CompHENS

using Plots
using JuMP
using HiGHS
using Test

using BARON
using XLSX
using DataFrames


# 2. Specify path to xlsx file
file_path_xlsx = joinpath(@__DIR__, "CompHENS_interface_KangLiu_Period1.xlsx")
prob = ClassicHENSProblem(file_path_xlsx; ΔT_min = 10, verbose = true)
@time solve_minimum_utilities_subproblem!(prob; verbose = true)

@time solve_minimum_units_subproblem!(prob; verbose = true)

EMAT = 2.5
prob.results_dict[:add_units] = 1

@time generate_stream_matches!(prob, EMAT; digits = 8, verbose = true)


# Network generation:
# Specify which superstructure to use for each stream
# Default is below: 
overall_network = construct_superstructure(prob.all_names, FloudasCiricGrossmann(), prob)
obj_func = CostScaledPaterson()
base_cost, cost_coeff, scaling_coeff =  8333.3,  641.7, 1

optimizer = optimizer_with_attributes(BARON.Optimizer, "MaxTime" => -1, "AbsConFeasTol" => 1)
results_df = generate_network!(prob, EMAT; optimizer = optimizer, obj_func = obj_func, verbose = true, cost_coeff = cost_coeff, scaling_coeff = scaling_coeff, base_cost = base_cost, save_model = true)

CompHENS_interface_KangLiu_Period1.xlsx

@avinashresearch1
Copy link
Owner

AFAIK it looks like this is solved by a mix of increasing the AbsConFeasTol to be slightly higher and making the fix of #67

@avinashresearch1
Copy link
Owner

@kangqiu Has this been resolved, can we close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants