Show code cell content
###############################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES).
#
# Copyright (c) 2018-2026 by the software owners: The Regents of the
# University of California, through Lawrence Berkeley National Laboratory,
# National Technology & Engineering Solutions of Sandia, LLC, Carnegie Mellon
# University, West Virginia University Research Corporation, et al.
# All rights reserved. Please see the files COPYRIGHT.md and LICENSE.md
# for full copyright and license information.
###############################################################################
HDA Flowsheet Costing#
Maintainer: Brandon Paul
Author: Brandon Paul
Updated: 2023-06-01
Note#
This example will demonstrate adding capital and operating costs to the two HDA examples, the basic HDA with Flash and a comparison with the HDA with Distillation.
Learning outcomes#
Import external pre-built steady-state flowsheets using the IDAES unit model library
Define and add costing blocks using the IDAES Process Costing Framework
Formulate and solve a process economics optimization problem
Defining an objective function
Setting variable bounds
Adding additional constraints
Problem Statement#
Hydrodealkylation is a chemical reaction that often involves reacting an aromatic hydrocarbon in the presence of hydrogen gas to form a simpler aromatic hydrocarbon devoid of functional groups. In this example, toluene will be reacted with hydrogen gas at high temperatures to form benzene via the following reaction:
C6H5CH3 + H2 → C6H6 + CH4
This reaction is often accompanied by an equilibrium side reaction which forms diphenyl, which we will neglect for this example.
This example is based on the 1967 AIChE Student Contest problem as present by Douglas, J.M., Chemical Design of Chemical Processes, 1988, McGraw-Hill.
Users may refer to the prior examples linked at the top of this notebook for detailed process descriptions of the two HDA configurations. As before, the properties required for this module are defined in
hda_ideal_VLE.pyidaes.models.properties.activity_coeff_models.BTX_activity_coeff_VLEhda_reaction.py
Additionally, we will be importing externally-defined flowsheets for the two HDA configurations from
hda_flowsheets_for_costing_notebook.py
Import and run HDA Flowsheets#
First, we will generate solved flowsheets for each HDA model. The external scripts build and set inputs for the flowsheets, initialize unit models and streams, and solve the flowsheets before returning the model objects. Note that the HDA flowsheets contain all unit models and stream connections, and no costing equations.
The flowsheet utilizes the Wegstein method to iteratively solve circular dependencies such as recycle streams, and is intended to approach a feasible solution. As such, the calls below will fail to converge after 3 iterations and pass to IPOPT to obtain an optimal solution as expected:
# Source file for prebuilt flowsheets
from hda_flowsheets_for_costing_notebook import hda_with_flash
# Build hda model with second flash unit and return model object
m = hda_with_flash(tee=True)
Building flowsheet...
Setting inputs...
Initializing flowsheet...
Limiting Wegstein tear to 3 iterations to obtain initial solution, if not converged IPOPT will pick up and continue.
fs.s03
fs.H101
fs.R101
fs.F101
fs.S101
fs.C101
fs.M101
2026-07-22 11:48:38 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:39 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:40 [INFO] idaes.init.fs.F102.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.F102.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:40 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:41 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:41 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
2026-07-22 11:48:41 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:41 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:41 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:41 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:41 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:41 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.847064471825717e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.84708910810722e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:42 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:42 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:42 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
2026-07-22 11:48:43 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:43 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:43 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:43 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:43 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:43 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.791876189065646e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.791876189071645e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:43 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:43 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:43 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:43 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:44 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
2026-07-22 11:48:44 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:44 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:45 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:45 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:45 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:45 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552214517320668e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552214903270587e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:45 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:45 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:45 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:45 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:45 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:45 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
2026-07-22 11:48:46 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:46 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:46 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:47 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:47 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:47 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718391018306772e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718391017993457e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:47 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:47 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:47 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:47 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:47 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:47 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:47 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:48 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:48 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:48 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:48 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: Wegstein failed to converge in 3 iterations
2026-07-22 11:48:48 [INFO] idaes.init.fs.F102.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:48 [INFO] idaes.init.fs.F102.control_volume.properties_out: Initialization Complete
Solving flowsheet...
Ipopt 3.14.20: tol=1e-06
max_iter=5000
******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
Ipopt is released as open source code under the Eclipse Public License (EPL).
For more information visit http://projects.coin-or.org/Ipopt
This version of Ipopt was compiled from source code available at
https://github.com/IDAES/Ipopt as part of the Institute for the Design of
Advanced Energy Systems Process Systems Engineering Framework (IDAES PSE
Framework) Copyright (c) 2018-2025. See https://github.com/IDAES/idaes-pse.
This version of Ipopt was compiled using HSL, a collection of Fortran codes
for large-scale scientific computation. All technical papers, sales and
publicity material resulting from use of the HSL codes within IPOPT must
contain the following acknowledgement:
HSL, a collection of Fortran codes for large-scale scientific
computation. See http://www.hsl.rl.ac.uk.
******************************************************************************
This is Ipopt version 3.14.20, running with linear solver ma27.
Number of nonzeros in equality constraint Jacobian...: 1031
Number of nonzeros in inequality constraint Jacobian.: 0
Number of nonzeros in Lagrangian Hessian.............: 934
Total number of variables............................: 340
variables with only lower bounds: 0
variables with lower and upper bounds: 146
variables with only upper bounds: 0
Total number of equality constraints.................: 340
Total number of inequality constraints...............: 0
inequality constraints with only lower bounds: 0
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 0.0000000e+00 6.60e+04 0.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
1 0.0000000e+00 8.69e+03 1.42e+03 -1.0 2.00e+04 - 9.71e-01 4.67e-01H 1
2 0.0000000e+00 3.05e+03 1.56e+03 -1.0 1.60e+04 - 9.79e-01 4.90e-01h 1
3 0.0000000e+00 1.58e+03 1.55e+05 -1.0 1.40e+04 - 9.90e-01 4.99e-01h 1
4 0.0000000e+00 5.49e+02 8.87e+08 -1.0 8.42e+03 - 1.00e+00 9.57e-01h 1
5 0.0000000e+00 4.25e+03 2.87e+10 -1.0 8.02e+02 - 1.00e+00 9.90e-01h 1
6 0.0000000e+00 2.25e+03 1.51e+10 -1.0 8.39e+00 - 1.00e+00 1.00e+00h 1
7 0.0000000e+00 2.27e+01 1.40e+08 -1.0 2.45e-03 - 1.00e+00 1.00e+00f 1
8 0.0000000e+00 2.45e-03 1.23e+04 -1.0 2.39e-05 - 1.00e+00 1.00e+00h 1
9 0.0000000e+00 2.24e-08 4.65e-01 -2.5 9.06e-08 - 1.00e+00 1.00e+00h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
10 0.0000000e+00 2.24e-08 1.41e+05 -5.7 1.38e-07 - 1.00e+00 5.00e-01h 2
11 0.0000000e+00 7.45e-09 5.56e-03 -5.7 1.06e-07 - 1.00e+00 1.00e+00h 1
12 0.0000000e+00 7.45e-09 2.47e-09 -5.7 9.00e-08 - 1.00e+00 1.00e+00h 1
13 0.0000000e+00 2.24e-08 5.06e-07 -7.0 1.38e-07 - 1.00e+00 1.00e+00h 1
Number of Iterations....: 13
(scaled) (unscaled)
Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00
Dual infeasibility......: 5.0570048536224512e-07 5.0570048536224512e-07
Constraint violation....: 5.8207660913467407e-11 2.2351741790771484e-08
Variable bound violation: 2.8593319938534624e-14 2.8593319938534624e-14
Complementarity.........: 9.0909090909115134e-08 9.0909090909115134e-08
Overall NLP error.......: 5.0570048536224512e-07 5.0570048536224512e-07
Number of objective function evaluations = 17
Number of objective gradient evaluations = 14
Number of equality constraint evaluations = 17
Number of inequality constraint evaluations = 0
Number of equality constraint Jacobian evaluations = 14
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 13
Total seconds in IPOPT = 0.018
EXIT: Optimal Solution Found.
Complete.
IDAES Process Costing Framework#
IDAES provides a library of capital costing correlations based on those in the following source:
Process and Product Design Principles: Synthesis, Analysis, and Evaluation. Seider, Seader, Lewin, Windagdo, 3rd Ed. John Wiley and Sons Chapter 22. Cost Accounting and Capital Cost Estimation 22.2 Cost Indexes and Capital Investment.
Currently, IDAES supports calculation of capital costing for a wide array of unit operations, vesseel sizing and material properties, and specific unit options such as column tray types and heat exchanger configurations. Users may find further information on specific costing methods and options in the IDAES Process Costing Framework documentation (link pending).
Add Operating Cost Equations#
Before adding capital costing blocks, we will add operating cost equations taken from the basic HDA with Flash and the HDA with Distillation examples. The examples assume constant cooling and heating coefficients over an annual cost basis. The IDAES Generic Costing Framework does not currently support variable cost calculations.
# Required imports
from pyomo.environ import Expression
# Operating costs for HDA with second flash (model m)
m.fs.cooling_cost = Expression(
expr=0.212e-7 * (-m.fs.F101.heat_duty[0]) + 0.212e-7 * (-m.fs.R101.heat_duty[0])
)
m.fs.heating_cost = Expression(
expr=2.2e-7 * m.fs.H101.heat_duty[0] + 1.9e-7 * m.fs.F102.heat_duty[0]
)
m.fs.operating_cost = Expression(
expr=(3600 * 24 * 365 * (m.fs.heating_cost + m.fs.cooling_cost))
)
Add Capital Costing#
Below, we will add add capital costing blocks to the imported flowsheets and evaluate the economic impact of replacing the second Flash with a Distillation column. First, let’s import and define the main flowsheet costing block:
# Import costing methods - classes, heaters, vessels, compressors, columns
from idaes.models.costing.SSLW import (
SSLWCosting,
SSLWCostingData,
)
from idaes.core import UnitModelCostingBlock
# Costing block
m.fs.costing = SSLWCosting()
Next, we will build the relevant costing blocks for the equipment we wish to cost. Note how the costing block, methods and flags are passed as arguments in the costing block call itself. Each unit model will have a single costing block, but each flowsheet model (m and n) will also have a single costing block for flowsheet-level properties.
Users should note that IDAES costing methods support a wide array of heating sources (e.g. fired, steam boiler, hot water) and do not support direct capital costing of coolers. If users wish to cost Heater units acting as coolers, it is necessary to cost a “dummy” 0D shell and tube exchanger with appropriate aliased hot stream properties and proper cooling water properties. This is not demonstrated here, as the HDA examples take advantage of Flash and Condenser operations to recover liquid product.
Capital costing is independent of unit model connections, and building cost equations may be done piecewise in this fashion. Default options are passed explicitly to demonstrate proper syntax and usage. Now that all required properties are defined, let’s cost our models connecting costing blocks, methods and unit models in each flowsheet.
Flexibility of Costing Block Definitions#
IDAES supports many ways to define batches of costing blocks, and several are shown in the example. Users may employ whichever method fits their modeling needs for explicit or concise code. In the code below, note how the unit model itself is never passed to the costing method; when the full model is executed, the costing block will automatically connect its parent block with child equation blocks.
Compressor unit models with isothermal or adiabatic thermodynamics are too simple to cost and are therefore excluded from the economic analysis.
Let’s define costing for the heater unit:
from idaes.models.costing.SSLW import (
HeaterMaterial,
HeaterSource,
)
# Costing for heater - m.fs.H101
m.fs.H101.costing = UnitModelCostingBlock(
flowsheet_costing_block=m.fs.costing,
costing_method=SSLWCostingData.cost_fired_heater,
costing_method_arguments={
"material_type": HeaterMaterial.CarbonSteel,
"heat_source": HeaterSource.Fuel,
},
)
The costing module provides a unit_mapping dictionary linking generic unit model classes with recommended costing methods. In this example, StoichiometricReactor and Flash vessels utilize different vessel costing methods with similar arguments. The diameter and length attributes need to exist in order to cost vessel sizing and material requirements, and we add them if they don’t exist already. The unit_mapping method provides an opportunity to automatically select the correct vessel orientation (vertical or horizontal) based on the unit type; passing a StoichiometricReactor or PFR class object will call the cost_horizontal_vessel method, while passing a Flash or CSTR class object will call the cost_vertical_vessel method.
All vessels are assigned costing succinctly via a loop below - users may define each block individually if desired:
from idaes.models.costing.SSLW import (
VesselMaterial,
TrayType,
TrayMaterial,
)
from idaes.core.util.constants import Constants
from pyomo.environ import Var, Constraint, units as pyunits, Param, value
from idaes.models.unit_models import StoichiometricReactor, Flash
# Map unit models to unit classes
# Will pass to unit_mapping which calls costing methods based on unit class
unit_class_mapping = {
m.fs.R101: StoichiometricReactor,
m.fs.F101: Flash,
m.fs.F102: Flash,
}
# Costing for vessels - m.fs.R101, m.fs.F101, m.fs.F102
# Loop over units
for unit in [m.fs.R101, m.fs.F101, m.fs.F102]:
# Get correct unit class for unit model
unit_class = unit_class_mapping[unit]
# Add dimension variables and constraint if they don't exist
if not hasattr(unit, "diameter"):
unit.diameter = Var(initialize=1, units=pyunits.m)
if not hasattr(unit, "length"):
unit.length = Var(initialize=1, units=pyunits.m)
if hasattr(unit, "volume"): # if volume exists, set diameter from volume
unit.volume_eq = Constraint(
expr=unit.volume[0] == unit.length * unit.diameter**2 * 0.25 * Constants.pi
)
else: # fix diameter directly
unit.diameter.fix(0.2214 * pyunits.m)
# Either way, fix L/D to calculate L from D
unit.L_over_D = Constraint(expr=unit.length == 3 * unit.diameter)
# Define vessel costing
unit.costing = UnitModelCostingBlock(
flowsheet_costing_block=unit.parent_block().costing, # e.g. m.fs.R101.costing
costing_method=SSLWCostingData.unit_mapping[
unit_class
], # e.g. cost_vertical_vessel()
costing_method_arguments={
"material_type": VesselMaterial.CarbonSteel,
"shell_thickness": 1.25 * pyunits.inch,
},
)
Solve Flowsheet Costing Blocks#
Now, we may solve the full flowsheet for all costing blocks:
# Define solver
from idaes.core.solvers import get_solver
solver = get_solver("ipopt_v2", options={"max_iter": 500})
# Check that the degrees of freedom is zero
from idaes.core.util.model_statistics import degrees_of_freedom
assert degrees_of_freedom(m) == 0
# Check physical units consistency, solve and check solver status
from pyomo.environ import TerminationCondition
from pyomo.util.check_units import assert_units_consistent
assert_units_consistent(m)
results = solver.solve(m, tee=True, symbolic_solver_labels=True)
assert results.solver.termination_condition == TerminationCondition.optimal
Ipopt 3.14.20: linear_solver="ma57"
max_iter=500
nlp_scaling_method="gradient-based"
tol=1e-06
******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
Ipopt is released as open source code under the Eclipse Public License (EPL).
For more information visit http://projects.coin-or.org/Ipopt
This version of Ipopt was compiled from source code available at
https://github.com/IDAES/Ipopt as part of the Institute for the Design of
Advanced Energy Systems Process Systems Engineering Framework (IDAES PSE
Framework) Copyright (c) 2018-2025. See https://github.com/IDAES/idaes-pse.
This version of Ipopt was compiled using HSL, a collection of Fortran codes
for large-scale scientific computation. All technical papers, sales and
publicity material resulting from use of the HSL codes within IPOPT must
contain the following acknowledgement:
HSL, a collection of Fortran codes for large-scale scientific
computation. See http://www.hsl.rl.ac.uk.
******************************************************************************
This is Ipopt version 3.14.20, running with linear solver ma57.
Number of nonzeros in equality constraint Jacobian...: 604
Number of nonzeros in inequality constraint Jacobian.: 0
Number of nonzeros in Lagrangian Hessian.............: 569
Total number of variables............................: 160
variables with only lower bounds: 10
variables with lower and upper bounds: 38
variables with only upper bounds: 0
Total number of equality constraints.................: 160
Total number of inequality constraints...............: 0
inequality constraints with only lower bounds: 0
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
0 0.0000000e+00 1.00e+05 1.00e+00 -1.0 0.00e+00 - 0.00e+00 0.00e+00 0
Reallocating memory for MA57: lfact (6534)
1 0.0000000e+00 8.81e+04 5.45e+03 -1.0 9.27e+04 - 2.62e-01 1.20e-01h 1
2 0.0000000e+00 6.34e+04 2.46e+03 -1.0 8.16e+04 - 9.83e-01 2.87e-01h 1
3 0.0000000e+00 3.40e+04 1.76e+03 -1.0 5.81e+04 - 4.59e-01 4.86e-01h 1
4 0.0000000e+00 2.33e+04 9.17e+04 -1.0 2.99e+04 - 7.04e-01 5.09e-01h 1
5 0.0000000e+00 1.13e+04 7.52e+08 -1.0 1.47e+04 - 8.02e-01 9.65e-01h 1
Reallocating memory for MA57: lfact (7452)
6 0.0000000e+00 5.50e+03 3.83e+08 -1.0 8.18e+02 - 9.90e-01 6.10e-01h 1
7 0.0000000e+00 5.23e+03 3.45e+08 -1.0 3.84e+02 - 1.00e+00 5.07e-02h 1
Reallocating memory for MA57: lfact (8076)
8 0.0000000e+00 5.22e+03 7.30e+08 -1.0 3.70e+02 - 1.00e+00 5.85e-04h 1
9r 0.0000000e+00 5.22e+03 1.00e+03 2.3 0.00e+00 - 0.00e+00 3.66e-07R 5
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
10r 0.0000000e+00 6.37e+04 2.29e+04 2.3 2.43e+07 - 1.50e-03 9.91e-04f 1
11r 0.0000000e+00 1.51e+04 1.09e+05 2.3 2.98e+07 - 1.34e-01 2.58e-03f 1
12r 0.0000000e+00 3.92e+04 1.08e+05 2.3 8.59e+07 - 8.37e-03 1.46e-02f 1
13r 0.0000000e+00 1.67e+05 1.08e+05 2.3 5.23e+06 - 5.83e-03 9.06e-02f 1
14r 0.0000000e+00 4.67e+05 1.05e+05 2.3 1.18e+07 - 2.42e-02 9.08e-02f 1
15r 0.0000000e+00 4.64e+05 1.05e+05 2.3 5.75e+06 - 1.97e-03 6.57e-03h 1
16r 0.0000000e+00 4.63e+05 9.23e+04 2.3 1.50e+04 -4.0 1.25e-01 1.34e-03h 1
17r 0.0000000e+00 6.08e+05 8.46e+04 2.3 5.32e+06 - 8.37e-02 3.04e-01f 1
18r 0.0000000e+00 5.71e+05 5.77e+04 2.3 1.87e+06 - 3.20e-01 1.38e-01f 1
19r 0.0000000e+00 4.10e+05 5.27e+04 2.3 4.12e+06 - 9.00e-02 3.37e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
20r 0.0000000e+00 3.86e+05 4.93e+04 2.3 1.63e+04 -3.6 6.50e-02 5.85e-02f 1
21r 0.0000000e+00 3.60e+05 4.51e+04 2.3 7.48e+03 -3.1 8.38e-02 6.63e-02h 1
22r 0.0000000e+00 3.64e+05 4.08e+04 2.3 4.06e+06 - 9.58e-02 7.04e-02f 1
23r 0.0000000e+00 3.86e+05 1.88e+05 2.3 5.59e+06 - 1.68e-01 1.49e-01f 1
24r 0.0000000e+00 3.86e+05 1.88e+05 2.3 1.12e+02 4.7 1.81e-03 1.57e-03h 1
25r 0.0000000e+00 3.86e+05 1.91e+05 2.3 1.55e+02 4.2 2.71e-03 1.11e-03h 1
26r 0.0000000e+00 3.85e+05 1.86e+05 2.3 1.56e+02 3.7 8.21e-04 3.62e-03h 1
27r 0.0000000e+00 3.85e+05 3.16e+05 2.3 1.55e+02 5.1 1.83e-02 6.41e-04h 1
28r 0.0000000e+00 3.82e+05 3.30e+05 2.3 1.55e+02 4.6 1.40e-02 1.11e-02h 1
29r 0.0000000e+00 3.81e+05 7.08e+05 2.3 1.53e+02 5.0 2.85e-02 4.20e-03h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
30r 0.0000000e+00 3.72e+05 7.46e+05 2.3 1.53e+02 4.5 4.86e-02 3.45e-02h 1
31r 0.0000000e+00 3.67e+05 1.89e+06 2.3 1.47e+02 5.0 1.12e-01 2.04e-02h 1
32r 0.0000000e+00 3.24e+05 1.59e+06 2.3 1.44e+02 4.5 1.96e-01 1.79e-01h 1
33r 0.0000000e+00 3.23e+05 1.58e+06 2.3 1.19e+02 4.0 4.52e-03 5.61e-03h 1
34r 0.0000000e+00 2.94e+05 1.59e+06 2.3 1.18e+02 4.4 3.45e-01 1.47e-01h 1
35r 0.0000000e+00 2.80e+05 1.53e+06 2.3 1.01e+02 4.0 1.38e-01 8.76e-02h 1
36r 0.0000000e+00 2.52e+05 1.66e+06 2.3 9.17e+01 4.4 3.38e-01 1.83e-01h 1
37r 0.0000000e+00 2.39e+05 1.55e+06 2.3 7.50e+01 3.9 9.13e-01 1.05e-01h 1
38r 0.0000000e+00 2.13e+05 1.24e+06 2.3 6.72e+01 3.4 5.58e-01 2.28e-01h 1
39r 0.0000000e+00 1.95e+05 1.05e+06 2.3 5.18e+01 3.9 1.00e+00 2.15e-01h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
40r 0.0000000e+00 1.28e+05 2.34e+05 2.3 4.08e+01 3.4 5.49e-01 1.00e+00h 1
41r 0.0000000e+00 1.28e+05 2.87e+05 2.3 8.85e-01 2.9 5.24e-01 9.02e-01f 1
42r 0.0000000e+00 1.28e+05 1.76e+05 2.3 3.90e-01 4.2 3.08e-01 9.59e-01f 1
43r 0.0000000e+00 1.28e+05 5.03e+04 2.3 1.25e-01 3.8 3.19e-01 1.00e+00f 1
44r 0.0000000e+00 1.28e+05 4.94e+04 2.3 4.82e+00 3.3 1.85e-02 1.19e-01f 2
45r 0.0000000e+00 1.28e+05 1.37e+04 2.3 3.62e-01 3.7 8.33e-01 1.00e+00f 1
46r 0.0000000e+00 1.28e+05 7.07e+03 1.6 5.21e-01 3.2 8.97e-01 1.00e+00f 1
47r 0.0000000e+00 1.29e+05 5.44e+02 1.6 9.53e-01 2.8 8.34e-01 8.12e-01f 1
48r 0.0000000e+00 1.29e+05 8.91e+02 0.9 2.85e+00 2.3 4.12e-01 2.43e-01f 1
49r 0.0000000e+00 1.30e+05 6.99e+02 0.9 8.46e+00 1.8 7.74e-01 2.05e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
50r 0.0000000e+00 1.31e+05 3.95e+04 0.9 2.41e+01 1.3 1.00e+00 1.51e-01f 1
51r 0.0000000e+00 1.30e+05 4.66e+04 0.9 7.23e+01 0.8 1.00e+00 5.24e-02f 1
52r 0.0000000e+00 1.18e+05 3.45e+04 0.9 2.17e+02 0.4 6.96e-01 1.67e-01f 1
53r 0.0000000e+00 1.17e+05 1.74e+04 0.9 6.50e+02 -0.1 1.43e-01 1.50e-02f 1
54r 0.0000000e+00 1.17e+05 4.23e+04 0.9 1.94e+03 -0.6 6.50e-01 3.25e-02f 1
55r 0.0000000e+00 1.18e+05 5.54e+04 0.9 3.69e+03 -1.1 4.70e-01 9.48e-03f 1
56r 0.0000000e+00 1.25e+05 2.75e+04 0.9 1.01e+02 -1.5 7.89e-01 1.78e-01f 1
57r 0.0000000e+00 1.28e+05 2.68e+04 0.9 9.57e+01 -2.0 9.34e-01 1.60e-01f 1
58r 0.0000000e+00 1.37e+05 5.37e+02 0.9 2.51e+02 -2.5 1.00e+00 6.23e-01f 1
59r 0.0000000e+00 1.40e+05 1.78e+04 0.2 7.53e+02 -3.0 4.51e-01 6.22e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
60r 0.0000000e+00 1.40e+05 1.99e+03 0.2 2.25e+03 -3.4 6.57e-01 3.90e-01f 1
61r 0.0000000e+00 1.40e+05 6.25e+04 0.2 8.45e+02 -3.0 1.00e+00 2.93e-01f 1
62r 0.0000000e+00 1.40e+05 4.84e+04 0.2 2.48e+03 -3.5 1.00e+00 2.59e-01f 1
63r 0.0000000e+00 1.40e+05 9.09e+04 0.2 8.10e+02 -4.0 5.18e-01 4.12e-02f 1
64r 0.0000000e+00 1.40e+05 4.52e+03 0.2 3.19e+02 -3.6 5.90e-01 8.39e-01f 1
65r 0.0000000e+00 1.40e+05 9.20e+03 0.2 8.45e+02 -4.0 2.58e-01 3.11e-01f 1
66r 0.0000000e+00 1.40e+05 9.35e+02 0.2 2.32e+03 -4.5 9.50e-02 5.05e-01f 1
67r 0.0000000e+00 1.40e+05 1.80e+03 0.2 3.94e+03 -5.0 1.00e+00 6.61e-02f 1
68r 0.0000000e+00 1.40e+05 2.93e+03 0.2 4.85e+03 -5.5 9.99e-01 2.84e-01f 1
69r 0.0000000e+00 1.38e+05 6.05e+03 0.2 6.81e+03 -5.9 1.00e+00 2.40e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
70r 0.0000000e+00 1.37e+05 1.78e+03 0.2 2.85e+03 -5.5 1.00e+00 1.00e+00f 1
71r 0.0000000e+00 1.34e+05 1.31e+03 0.2 8.14e+03 -6.0 3.19e-01 3.05e-01f 1
72r 0.0000000e+00 1.31e+05 1.83e+03 0.2 2.65e+03 -5.6 1.00e+00 1.00e+00f 1
73r 0.0000000e+00 1.28e+05 3.42e+03 0.2 1.45e+04 -6.0 1.00e+00 2.70e-01f 1
74r 0.0000000e+00 1.24e+05 1.09e+01 0.2 4.06e+03 -5.6 1.00e+00 1.00e+00f 1
75r 0.0000000e+00 1.05e+05 7.56e+03 -0.5 5.64e+04 -6.1 2.15e-01 3.59e-01f 1
76r 0.0000000e+00 1.05e+05 1.79e+04 -0.5 2.46e+03 -4.8 5.42e-01 1.26e-01f 1
77r 0.0000000e+00 1.05e+05 2.30e+04 -0.5 9.93e+03 -5.2 1.04e-02 6.09e-02f 1
78r 0.0000000e+00 1.05e+05 1.44e+03 -0.5 2.90e+03 -4.8 1.16e-01 1.32e-02f 1
79r 0.0000000e+00 1.04e+05 8.21e+04 -0.5 9.44e+03 -5.3 4.02e-02 1.19e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
80r 0.0000000e+00 1.04e+05 4.46e+03 -0.5 1.93e+03 -4.9 2.08e-01 2.98e-02f 1
81r 0.0000000e+00 9.40e+04 1.37e+05 -0.5 1.15e+04 -5.3 5.49e-03 2.67e-01f 1
82r 0.0000000e+00 9.39e+04 1.21e+05 -0.5 2.56e+03 -4.9 3.04e-01 9.74e-03f 1
83r 0.0000000e+00 9.25e+04 1.08e+05 -0.5 4.97e+03 -5.4 1.59e-01 1.20e-01f 1
84r 0.0000000e+00 9.25e+04 1.35e+05 -0.5 8.51e+03 -5.9 5.44e-01 3.08e-02f 1
85r 0.0000000e+00 1.04e+05 1.06e+05 -0.5 1.26e+04 -6.3 1.73e-01 4.10e-01f 1
86r 0.0000000e+00 1.08e+05 1.45e+05 -0.5 2.50e+04 -6.8 1.23e-01 7.63e-02f 1
87r 0.0000000e+00 1.07e+05 1.40e+05 -0.5 4.68e+02 -2.8 3.12e-02 1.16e-01h 1
88r 0.0000000e+00 1.07e+05 1.34e+05 -0.5 1.25e+02 -2.4 1.37e-01 6.14e-02h 1
89r 0.0000000e+00 1.05e+05 1.21e+05 -0.5 6.38e+01 -1.9 4.82e-02 1.54e-01h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
90r 0.0000000e+00 1.04e+05 1.11e+05 -0.5 2.62e+01 -1.5 9.28e-02 1.14e-01h 1
91r 0.0000000e+00 1.02e+05 8.74e+04 -0.5 2.58e+01 -2.0 1.72e-01 2.50e-01h 1
92r 0.0000000e+00 1.02e+05 7.56e+04 -0.5 2.13e+01 -1.6 3.40e-01 1.09e-01f 1
93r 0.0000000e+00 1.02e+05 5.81e+04 -0.5 9.06e+00 -2.0 6.37e-01 2.34e-01h 1
94r 0.0000000e+00 1.02e+05 3.30e+04 -0.5 2.09e+01 -2.5 1.00e+00 4.49e-01h 1
95r 0.0000000e+00 1.01e+05 2.02e+03 -0.5 9.58e+01 -3.0 4.65e-01 8.13e-01f 1
96r 0.0000000e+00 1.02e+05 1.56e+04 -0.5 8.77e+01 -3.5 7.24e-01 1.53e-01f 1
97r 0.0000000e+00 1.02e+05 5.99e+03 -0.5 2.31e+02 -3.9 3.97e-01 4.89e-01f 1
98r 0.0000000e+00 1.04e+05 4.62e+03 -0.5 4.75e+02 -4.4 6.42e-01 1.95e-01f 1
99r 0.0000000e+00 1.04e+05 9.76e+02 -0.5 8.15e+02 -4.9 7.06e-01 6.61e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
100r 0.0000000e+00 1.05e+05 7.45e+03 -0.5 2.44e+03 -5.4 1.00e+00 1.91e-01f 1
101r 0.0000000e+00 1.06e+05 1.94e+03 -0.5 7.23e+02 -4.9 1.00e+00 3.62e-01f 1
102r 0.0000000e+00 1.07e+05 7.40e+03 -0.5 1.49e+03 -5.4 1.00e+00 4.66e-01f 1
103r 0.0000000e+00 1.08e+05 3.03e+03 -0.5 1.66e+03 -5.9 8.96e-01 8.34e-01f 1
104r 0.0000000e+00 1.10e+05 5.48e+02 -0.5 9.38e+02 -5.5 1.00e+00 1.00e+00f 1
105r 0.0000000e+00 1.10e+05 1.76e+02 -0.5 1.46e+03 -6.0 7.45e-01 1.00e+00f 1
106r 0.0000000e+00 1.10e+05 7.27e+01 -0.5 6.32e+02 -5.5 1.00e+00 1.00e+00f 1
107r 0.0000000e+00 1.11e+05 1.41e+03 -0.5 1.49e+03 -6.0 1.00e+00 9.82e-01f 1
108r 0.0000000e+00 1.12e+05 1.04e+03 -0.5 3.05e+03 -6.5 1.00e+00 4.21e-01f 1
109r 0.0000000e+00 1.12e+05 3.92e+02 -0.5 7.12e+03 -7.0 8.81e-01 5.45e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
110r 0.0000000e+00 1.12e+05 6.27e+02 -0.5 1.40e+04 -7.4 1.00e+00 2.04e-01f 1
111r 0.0000000e+00 1.27e+05 1.93e+02 -0.5 2.11e+04 -7.9 7.01e-01 6.92e-01f 1
112r 0.0000000e+00 1.51e+05 1.49e+02 -0.5 2.24e+04 -8.4 4.24e-01 4.78e-01f 1
113r 0.0000000e+00 1.28e+05 1.63e+01 -0.5 2.40e+04 -8.9 1.00e+00 1.00e+00f 1
114r 0.0000000e+00 1.36e+05 3.29e+02 -0.5 4.21e+04 -9.3 6.45e-01 1.00e+00f 1
115r 0.0000000e+00 5.01e+05 1.31e+03 -0.5 9.66e+04 -9.8 9.22e-01 1.00e+00h 1
116r 0.0000000e+00 8.78e+05 4.66e+02 -0.5 2.96e+05 -10.3 9.46e-01 1.00e+00h 1
117r 0.0000000e+00 6.70e+04 4.18e+02 -0.5 9.60e+05 -10.8 1.00e+00 1.00e+00h 1
118r 0.0000000e+00 5.21e+04 9.75e+02 -0.5 3.82e+06 -11.3 1.00e+00 7.10e-01f 1
119r 0.0000000e+00 5.30e+04 9.97e+02 -0.5 9.41e+06 - 8.43e-02 2.44e-02f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
120r 0.0000000e+00 5.40e+04 9.62e+02 -0.5 2.95e+06 - 1.00e+00 1.41e-01f 1
121r 0.0000000e+00 5.13e+04 5.63e+01 -0.5 1.96e+05 - 1.00e+00 1.00e+00f 1
122r 0.0000000e+00 5.06e+04 7.06e-01 -0.5 1.45e+04 - 1.00e+00 1.00e+00h 1
123r 0.0000000e+00 4.48e+04 1.60e+01 -2.9 1.41e+04 - 8.33e-01 7.83e-01f 1
124r 0.0000000e+00 7.43e+04 1.23e+02 -2.9 1.09e+05 -9.9 1.51e-01 1.14e-01f 1
125r 0.0000000e+00 7.21e+04 3.54e+02 -2.9 1.66e+05 - 1.51e-01 3.48e-02h 1
126r 0.0000000e+00 4.03e+04 3.48e+02 -2.9 6.43e+04 - 4.59e-01 5.71e-01f 1
127r 0.0000000e+00 9.43e+03 9.62e+01 -2.9 2.75e+04 - 5.72e-01 8.74e-01h 1
128r 0.0000000e+00 7.66e+03 2.89e+02 -2.9 4.00e+03 - 7.38e-01 1.00e+00h 1
129r 0.0000000e+00 8.78e+02 2.90e+01 -2.9 1.50e+03 - 9.18e-01 1.00e+00h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
130r 0.0000000e+00 7.37e+02 1.27e+01 -2.9 1.32e+03 - 1.00e+00 1.00e+00h 1
131r 0.0000000e+00 3.66e+02 6.41e+00 -2.9 9.22e+02 - 1.00e+00 1.00e+00h 1
132r 0.0000000e+00 8.13e+00 2.77e-02 -2.9 6.19e+01 - 1.00e+00 1.00e+00h 1
133r 0.0000000e+00 7.03e+03 1.41e+01 -4.3 5.16e+03 - 7.78e-01 7.77e-01f 1
134r 0.0000000e+00 5.08e+03 4.30e+02 -4.3 3.71e+03 - 1.00e+00 7.18e-01h 1
135r 0.0000000e+00 2.02e+02 2.79e+01 -4.3 6.26e+02 - 1.00e+00 1.00e+00h 1
136r 0.0000000e+00 1.50e+01 2.52e+00 -4.3 1.46e+02 - 1.00e+00 1.00e+00h 1
137r 0.0000000e+00 8.83e-01 1.86e-02 -4.3 1.27e+01 - 1.00e+00 1.00e+00h 1
138r 0.0000000e+00 7.60e-01 3.09e-05 -4.3 1.51e+00 - 1.00e+00 1.00e+00h 1
139 0.0000000e+00 7.60e-01 1.08e+06 -1.0 8.24e+02 - 9.89e-01 7.57e-06h 17
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
140 0.0000000e+00 7.60e-01 1.94e+06 -1.0 8.24e+02 - 9.90e-01 1.89e-06h 19
141 0.0000000e+00 2.27e+02 9.80e+05 -1.0 8.24e+02 - 4.96e-01 4.96e-01s 21
142r 0.0000000e+00 2.27e+02 1.00e+03 -1.0 0.00e+00 - 0.00e+00 0.00e+00R 1
143r 0.0000000e+00 2.20e+02 1.07e+04 -1.0 2.63e+04 - 2.05e-01 5.61e-03f 1
144r 0.0000000e+00 2.03e+03 1.87e+03 -1.0 2.78e+04 - 9.30e-01 2.21e-01f 1
145r 0.0000000e+00 1.09e+04 2.99e+03 -1.0 1.86e+04 - 3.04e-01 6.48e-01f 1
146r 0.0000000e+00 1.30e+04 1.58e+03 -1.0 1.46e+05 - 2.04e-01 3.61e-01f 1
147r 0.0000000e+00 1.36e+04 3.08e+02 -1.0 1.18e+04 - 9.12e-01 1.00e+00f 1
148r 0.0000000e+00 1.10e+04 2.16e+00 -1.0 4.09e+00 -4.0 1.00e+00 1.00e+00h 1
149r 0.0000000e+00 1.22e+04 1.65e+00 -1.7 2.94e+01 -4.5 1.00e+00 1.00e+00f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
150r 0.0000000e+00 1.31e+04 1.64e+00 -1.7 5.03e+01 -5.0 1.00e+00 1.00e+00f 1
151r 0.0000000e+00 1.29e+04 3.23e+00 -1.7 3.50e+01 -5.4 1.00e+00 1.00e+00h 1
152r 0.0000000e+00 1.19e+04 5.44e+02 -1.7 3.69e+04 - 1.00e+00 6.74e-01f 1
153r 0.0000000e+00 3.43e+03 2.19e+01 -1.7 1.23e+04 - 1.00e+00 1.00e+00h 1
154r 0.0000000e+00 2.96e+03 5.24e-01 -1.7 1.78e+03 - 1.00e+00 1.00e+00h 1
155r 0.0000000e+00 2.99e+03 2.57e+01 -2.5 1.05e+04 - 8.24e-01 8.54e-01f 1
156r 0.0000000e+00 4.83e+03 2.10e+01 -2.5 3.56e+03 - 1.00e+00 9.28e-01h 1
157r 0.0000000e+00 1.91e+02 6.11e+00 -2.5 7.38e+02 - 1.00e+00 1.00e+00h 1
158r 0.0000000e+00 6.34e+01 3.88e-02 -2.5 7.32e+01 - 1.00e+00 1.00e+00h 1
159r 0.0000000e+00 1.16e+04 1.91e+02 -3.8 5.52e+03 - 7.33e-01 9.36e-01f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
160r 0.0000000e+00 8.60e+03 5.01e+02 -3.8 4.56e+03 - 3.35e-01 3.58e-01h 1
161r 0.0000000e+00 4.61e+03 2.92e+03 -3.8 2.07e+03 - 8.26e-01 5.26e-01h 1
162r 0.0000000e+00 3.60e+02 8.99e+03 -3.8 8.68e+02 - 5.05e-01 1.00e+00h 1
163r 0.0000000e+00 1.13e+02 3.07e+02 -3.8 5.08e+02 - 1.00e+00 1.00e+00h 1
164r 0.0000000e+00 1.67e+02 3.30e+01 -3.8 6.12e+02 - 1.00e+00 1.00e+00h 1
165r 0.0000000e+00 1.22e+01 1.46e-01 -3.8 1.59e+02 - 1.00e+00 1.00e+00h 1
166r 0.0000000e+00 2.15e+00 1.25e-03 -3.8 1.80e+01 - 1.00e+00 1.00e+00h 1
167r 0.0000000e+00 6.62e+02 3.07e+02 -5.7 2.03e+03 - 9.26e-01 5.74e-01f 1
168r 0.0000000e+00 4.94e+02 1.08e+02 -5.7 1.15e+03 - 1.00e+00 7.82e-01h 1
169r 0.0000000e+00 4.16e+02 2.06e+02 -5.7 6.08e+02 - 9.82e-01 1.68e-01h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
170r 0.0000000e+00 3.63e+02 1.05e+04 -5.7 1.90e+02 - 1.00e+00 9.40e-01h 1
171r 0.0000000e+00 4.94e+03 1.45e+05 -5.7 6.81e+00 - 1.00e+00 9.80e-02h 1
172r 0.0000000e+00 5.01e+03 1.47e+05 -5.7 3.34e-01 - 1.00e+00 1.00e+00f 1
173r 0.0000000e+00 3.29e+03 2.38e+05 -5.7 4.37e-01 - 1.00e+00 1.00e+00H 1
174r 0.0000000e+00 1.30e+03 9.35e+04 -5.7 5.77e-01 - 1.00e+00 2.87e-01h 2
175r 0.0000000e+00 2.20e+02 1.60e+04 -5.7 9.32e-02 - 1.00e+00 1.00e+00h 1
176r 0.0000000e+00 2.98e+01 2.17e+03 -5.7 3.88e-02 - 9.67e-01 1.00e+00h 1
177 0.0000000e+00 2.58e+01 8.80e+06 -1.0 4.77e-01 - 9.90e-01 1.00e+00f 1
178 0.0000000e+00 5.64e+00 1.91e+06 -1.0 9.74e-02 - 9.90e-01 1.00e+00h 1
179 0.0000000e+00 2.20e-04 3.75e+03 -1.0 5.06e-06 - 9.92e-01 1.00e+00h 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
180 0.0000000e+00 7.45e-09 1.06e-02 -2.5 1.31e-07 - 1.00e+00 1.00e+00h 1
181 0.0000000e+00 2.24e-08 2.57e-04 -7.0 1.06e-07 - 1.00e+00 1.00e+00h 1
182 0.0000000e+00 2.24e-08 3.90e-11 -7.0 9.85e-08 - 1.00e+00 1.00e+00h 1
Number of Iterations....: 182
(scaled) (unscaled)
Objective...............: 0.0000000000000000e+00 0.0000000000000000e+00
Dual infeasibility......: 3.8958489431350689e-11 3.8958489431350689e-11
Constraint violation....: 2.9103830456733704e-11 2.2351741790771484e-08
Variable bound violation: 2.8593320084580268e-14 2.8593320084580268e-14
Complementarity.........: 9.0909090909090994e-08 9.0909090909090994e-08
Overall NLP error.......: 9.0909090909090994e-08 9.0909090909090994e-08
Number of objective function evaluations = 253
Number of objective gradient evaluations = 22
Number of equality constraint evaluations = 253
Number of inequality constraint evaluations = 0
Number of equality constraint Jacobian evaluations = 185
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 182
Total seconds in IPOPT = 0.150
EXIT: Optimal Solution Found.
For comparison, we will call and build the HDA flowsheet replacing the second Flash with a TrayColumn distillation unit model. The flowsheet costing occurs in the external script hda_flowsheets_for_costing_notebook.py and is not shown here:
from pyomo.common.log import LoggingIntercept
import logging
from io import StringIO
stream = StringIO()
with LoggingIntercept(stream, "idaes", logging.WARNING):
# Source file for prebuilt flowsheets
from hda_flowsheets_for_costing_notebook import hda_with_distillation
# Build hda model with distillation column and return model object
n = hda_with_distillation(tee=False)
Building flowsheet...
Setting inputs...
Initializing flowsheet...
Limiting Wegstein tear to 3 iterations to obtain initial solution, if not converged IPOPT will pick up and continue.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:49 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:49 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:49 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:49 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:50 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:50 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:50 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:50 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:50 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:50 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:51 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:51 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 1 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 2 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 3 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 4 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 5 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 1 optimal - <undefined>.
2026-07-22 11:48:51 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 2 optimal - <undefined>.
2026-07-22 11:48:52 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 3 optimal - <undefined>.
2026-07-22 11:48:52 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 4 optimal - <undefined>.
2026-07-22 11:48:52 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 5 optimal - <undefined>.
2026-07-22 11:48:52 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:52 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:52 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:52 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:52 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:52 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:53 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:53 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:53 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:53 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:53 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:53 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:53 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:53 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:53 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:53 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:54 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:54 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:54 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:55 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:55 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:55 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:55 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.79176447139432e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:55 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:55 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:55 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:55 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:55 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:55 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:55 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:56 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:56 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:56 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:56 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:56 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:56 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:56 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:56 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:57 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:57 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.552218344889833e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.552202058782412e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:57 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:57 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:57 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:58 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:58 [INFO] idaes.init.fs.H101.control_volume.properties_in: Initialization Complete
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:58 [INFO] idaes.init.fs.H101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:58 [INFO] idaes.init.fs.R101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:58 [INFO] idaes.init.fs.R101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.R101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:58 [INFO] idaes.init.fs.F101.control_volume.properties_in: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 25 keys
that are not Var, Constraint, Objective, or the model. Skipping.
2026-07-22 11:48:59 [INFO] idaes.init.fs.F101.control_volume.properties_out: Initialization Complete
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,methane]'
to a numeric value `9.718163551136042e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
WARNING (W1002): Setting Var
'fs.F101.control_volume.properties_in[0.0].flow_mol_phase_comp[Liq,hydrogen]'
to a numeric value `9.718389797696418e-13` outside the bounds (1e-12, 100).
See also https://pyomo.readthedocs.io/en/stable/errors.html#w1002
2026-07-22 11:48:59 [INFO] idaes.init.fs.S101.mixed_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.S101.purge_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.S101.recycle_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.S101: Initialization Step 2 Complete: optimal - <undefined>
2026-07-22 11:48:59 [INFO] idaes.init.fs.C101.control_volume.properties_in: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.C101.control_volume.properties_out: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.M101.toluene_feed_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.M101.hydrogen_feed_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.M101.vapor_recycle_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.M101.mixed_state: Initialization Complete
2026-07-22 11:48:59 [INFO] idaes.init.fs.M101: Initialization Complete: optimal - <undefined>
WARNING: Wegstein failed to converge in 3 iterations
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 1 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 2 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 3 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 4 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_in: Initialization Step 5 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 1 optimal - <undefined>.
2026-07-22 11:49:00 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 2 optimal - <undefined>.
2026-07-22 11:49:01 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 3 optimal - <undefined>.
2026-07-22 11:49:01 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 4 optimal - <undefined>.
2026-07-22 11:49:01 [INFO] idaes.init.fs.H102.control_volume.properties_out: Initialization Step 5 optimal - <undefined>.
Solving flowsheet...
WARNING: model contains export suffix 'scaling_factor' that contains 6
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 150 keys
that are not Var, Constraint, Objective, or the model. Skipping.
Adding distillation column and resolving flowsheet...
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 17
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 16
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 15
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 6
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 9
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 5
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 12
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 10
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 15
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 11
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 6
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 150 keys
that are not Var, Constraint, Objective, or the model. Skipping.
Complete.
WARNING: model contains export suffix 'scaling_factor' that contains 7
component keys that are not exported as part of the NL file. Skipping.
WARNING: model contains export suffix 'scaling_factor' that contains 150 keys
that are not Var, Constraint, Objective, or the model. Skipping.
Results Comparison and Visualization#
For the two flowsheets above, let’s sum the total operating and capital costs of each scenario. We will display overall process economics results and compare the two flowsheets:
# Imports and data gathering
from matplotlib import pyplot as plt
plt.style.use("dark_background") # if using browser in dark mode, uncomment this line
import numpy as np
import pandas as pd
# Automatically get units that we costed - this will exclude C101 for both flowsheets
two_flash_unitlist = [
getattr(m.fs, unit) for unit in dir(m.fs) if hasattr(getattr(m.fs, unit), "costing")
]
distillation_unitlist = [
getattr(n.fs, unit) for unit in dir(n.fs) if hasattr(getattr(n.fs, unit), "costing")
]
# Compare equipment purchase costs (actual capital costs)
two_flash_capcost = {
unit.name: value(unit.costing.capital_cost / 1e3) for unit in two_flash_unitlist
}
distillation_capcost = {
unit.name: value(unit.costing.capital_cost / 1e3) for unit in distillation_unitlist
}
two_flash_capdf = pd.DataFrame(
list(two_flash_capcost.items()), columns=["Equipment", "Two Flash"]
).set_index("Equipment")
distillation_capdf = pd.DataFrame(
list(distillation_capcost.items()), columns=["Equipment", "Distillation"]
).set_index("Equipment")
# Add dataframes, merge same indices, replace NaNs with 0s, and transpose
capcosts = two_flash_capdf.add(distillation_capdf, fill_value=0).fillna(0).transpose()
# Sort according to an easier order to view
capcosts = capcosts[["fs.H101", "fs.R101", "fs.F101", "fs.F102", "fs.D101", "fs.H102"]]
print("Costs in $1000:")
display(capcosts) # view dataframe before plotting
capplot = capcosts.plot(
kind="bar", stacked=True, title="HDA Total Capital Costs", ylabel="$1000"
)
Costs in $1000:
| Equipment | fs.H101 | fs.R101 | fs.F101 | fs.F102 | fs.D101 | fs.H102 |
|---|---|---|---|---|---|---|
| Distillation | 13.283334 | 13.552294 | 7.781332 | 0.000000 | 7.60743 | 3.32944 |
| Two Flash | 13.283334 | 10.755878 | 7.781332 | 7.781332 | 0.00000 | 0.00000 |
# Compare operating costs (per year)
two_flash_opcost = {
"cooling": value(3600 * 24 * 365 * m.fs.cooling_cost / 1e3),
"heating": value(3600 * 24 * 365 * m.fs.heating_cost / 1e3),
}
distillation_opcost = {
"cooling": value(3600 * 24 * 365 * n.fs.cooling_cost / 1e3),
"heating": value(3600 * 24 * 365 * n.fs.heating_cost / 1e3),
}
two_flash_opdf = pd.DataFrame(
list(two_flash_opcost.items()), columns=["Utilities", "Two Flash"]
).set_index("Utilities")
distillation_opdf = pd.DataFrame(
list(distillation_opcost.items()), columns=["Utilities", "Distillation"]
).set_index("Utilities")
# Add dataframes, merge same indices, replace NaNs with 0s, and transpose
opcosts = two_flash_opdf.add(distillation_opdf, fill_value=0).fillna(0).transpose()
print("Costs in $1000:")
display(opcosts) # view dataframe before plotting
opplot = opcosts.plot(
kind="bar", stacked=True, title="HDA Operating Costs", ylabel="$1000/year"
)
Costs in $1000:
| Utilities | cooling | heating |
|---|---|---|
| Distillation | 60.192008 | 367.404722 |
| Two Flash | 47.028803 | 372.093536 |
# Compare total costs (capital costs and operating costs)
two_flash_totcost = {
"capital": sum(two_flash_capcost[idx] for idx in two_flash_capcost),
"operating": value(m.fs.operating_cost) / 1e3,
}
distillation_totcost = {
"capital": sum(distillation_capcost[idx] for idx in distillation_capcost),
"operating": value(n.fs.operating_cost) / 1e3,
}
two_flash_totdf = pd.DataFrame(
list(two_flash_totcost.items()), columns=["Costs", "Two Flash"]
).set_index("Costs")
distillation_totdf = pd.DataFrame(
list(distillation_totcost.items()), columns=["Costs", "Distillation"]
).set_index("Costs")
# Add dataframes, merge same indices, replace NaNs with 0s, and transpose
totcosts = two_flash_totdf.add(distillation_totdf, fill_value=0).fillna(0).transpose()
print("Costs in $1000:")
display(totcosts) # view dataframe before plotting
totplot = totcosts.plot(
kind="bar", stacked=True, title="HDA Total Plant Cost (TPC)", ylabel="$1000/year"
)
Costs in $1000:
| Costs | capital | operating |
|---|---|---|
| Distillation | 45.553829 | 427.596731 |
| Two Flash | 39.601876 | 419.122339 |
Finally, let’s compare the total costs on a production basis. This will account for the greater efficiency provided by the distillation column relative to the less-expensive second flash unit:
two_flash_cost = value(1e3 * sum(two_flash_totcost[idx] for idx in two_flash_totcost))
two_flash_prod = value(
m.fs.F102.vap_outlet.flow_mol_phase_comp[0, "Vap", "benzene"] * 365 * 24 * 3600
)
distillation_cost = value(
1e3 * sum(distillation_totcost[idx] for idx in distillation_totcost)
)
distillation_prod = value(n.fs.D101.condenser.distillate.flow_mol[0] * 365 * 24 * 3600)
print(
f"Two flash case over one year: ${two_flash_cost/1e3:0.0f}K / {two_flash_prod/1e3:0.0f} kmol benzene = ${two_flash_cost/(two_flash_prod/1e3):0.2f} per kmol benzene produced"
)
print(
f"Distillation case over one year: ${distillation_cost/1e3:0.0f}K / {distillation_prod/1e3:0.0f} kmol benzene = ${distillation_cost/(distillation_prod/1e3):0.2f} per kmol benzene produced"
)
Two flash case over one year: $459K / 4477 kmol benzene = $102.45 per kmol benzene produced
Distillation case over one year: $473K / 5108 kmol benzene = $92.63 per kmol benzene produced
Summary#
In this example, IDAES Process Costing Framework methods were applied to two HDA flowsheets for capital cost estimation. The costing blocks calls showcased multiple methods to define unit costing, demonstrating the flexibility and best practice of the costing framework. In the basic examples, the two-flash HDA did not include costing and the distillation HDA estimated a reactor capital cost comprising 3.3% of the total plant cost (TPC). With more rigorous costing, IDAES obtained total capital costs of 8.5% TPC (two flash HDA) and 9.6% (distillation HDA) and better modeled the impact of equipment cost on process economics. As printed above, the IDAES Process Costing Framework confirmed that replacing the second flash drum with a distillation column results in increased equipment costs, increased production and decreased cost per unit product.