Professional Documents
Culture Documents
Interfacing IPOPT With Aspen Open Solvers and CAPE-OPEN
Interfacing IPOPT With Aspen Open Solvers and CAPE-OPEN
Interfacing IPOPT With Aspen Open Solvers and CAPE-OPEN
Rita Maria de Brito Alves, Claudio Augusto Oller do Nascimento and Evaristo
Chalbaud Biscaia Jr. (Editors)
© 2009 Elsevier B.V. All rights reserved. 201
Abstract
CAPE-OPEN (CO) is brought forward as the standard for the next generation of process
system simulation platform. In this work, the IPOPT algorithm and interface developed
by (Lang and Biegler, 2005) is extended. IPOPT is encapsulated and is embedded into
Aspen Plus through Aspen Open Solvers (AOS) Interface. A scaling module based on
starting point is developed for scaling the models from Aspen Plus before optimization.
The validity of AOS compliant IPOPT is tested by solving the economic optimization
problem of depropanizer and debutanizer multi-column system and the reconciliation
problem of large-scale air separation system. Compatibility of Aspen Plus for CO
solvers is extended based on AOS interface through COM technology. In order to
demonstrate validity of the extended compatibility, CO compliant IPOPT is integrated
with Aspen Plus. It is tested by the same examples as AOS compliant IPOPT. Further
analysis is made on effect of model scale on efficiency loss since the introduction of CO.
1. Introduction
Process system simulation and optimization have long been used as means to estimate
the economic benefit and impact for environment of different design options. There
have been many process simulation tools with excellent solvers, abundant unit models,
or precise thermodynamic and physical properties. However, there are still critical
demands for effective interactions among different modules.
CAPE-OPEN (CO) is brought forward as the standard for the next generation of process
system simulation platform. It is conceived to achieve the goals of facilitating process
modeling and design and increasing interoperability among various process simulation
tools. The CO interoperability standard allows interoperation among heterogeneous
Process Modeling Components (PMCs) and Process Modeling Environments (PMEs)
from different software providers, independent of their algorithmic details,
programming languages and operating system (Yang et al, 2007).
Many highly competitive software suppliers and famous research groups are involved in
developing and utilizing CO compliant software, however, most of them focus on the
development of CO compliant unit operations and CO compliant thermodynamic and
physical properties (Ricardo et al, 2008; Testard et al, 2005). CO compliant numeric
solvers, especially optimization solvers, are seldom concerned.
In this paper, the IPOPT algorithm and interface developed by (Lang and Biegler, 2005)
is extended. Section 2 discusses IPOPT for Aspen Plus through Aspen Open Solvers
(AOS) Interface. Section 3 presents compatibility of Aspen Plus for CO solvers based
Corresponding author. E-mail address: zjshao@iipc.zju.edu.cn
202 W. Chen et al.
on AOS Interface through COM technology. Section 4 then presents a number of case
studies that test the validity of AOS compliant IPOPT and the compatibility of Aspen
Plus for CO solvers. A further analysis is made on the effect of model scale on
efficiency loss. Finally, some concluding remarks are given.
Fig 1 Component Diagram of Interaction between AOS Compliant IPOPT and Aspen Plus
Fig 2 Component Diagram of Interaction between CO Compliant IPOPT and Aspen Plus
4. Numerical Experiments
This section deals with two issues. First, we test the validity of AOS compliant IPOPT
by solving the economic optimization problem of depropanizer and debutanizer multi-
column system and the reconciliation problem of large-scale air separation system.
Simultaneously, we demonstrate the validity of the compatibility of Aspen Plus for CO
solver by solving the same examples as AOS compliant IPOPT. Second, the effect of
model scale on efficiency loss of CO compliant IPOPT is evaluated by solving two
variable scale models.
All the numerical experiments are performed on the machine Dell Latitude D520
running Windows XP and with Intel(R) CPU T2300, 1.66GHz and 1.5G RAM memory.
4.1. Validity Test
Case 1 The depropanizer and debutanizer multi-column system is an important part in
the ethylene production. We can refer to (Jiang et al, 2006) for the illustration of the
flow sheet and the formulation of the optimization problem. For this NLP problem,
number of variables is 3889, number of equality constraints is 3887, the degree of
freedom is 2, and the number of nonzero elements of Jacobian in constraints is 76197.
The results for solving this problem with AOS compliant IPOPT and CO compliant
IPOPT respectively are presented in table 1. AOS represents the CPU time for solving
Interfacing IPOPT with Aspen Open Solvers and CAPE-OPEN 205
the problem with AOS compliant IPOPT. CO-InProcess represents the CPU time for
solving the problem with CO compliant IPOPT run in “in process” (in the same process
as Aspen Plus) mode while CO-Local is CO compliant IPOPT run in “out of process” (a
separate process on the same computer as Aspen Plus) mode.
Tab.1 Numeric result of depropanizer and debutanizer multi-column system
objective iteration feasibility AOS (s) CO-InProcess (s) CO-Local (s)
1.961e+1 11 1.95e-7 9.42 16.37 17.97
The problem is solved successfully and all the three runs have the same objective value,
number of iterations and feasibility, we verify the validity of AOS IPOPT and the
compatibility of Aspen Plus for CO IPOPT. Moreover, from table 1, we note that there
is little difference in CPU time for solving this model in “in process” mode and in “out
of process” mode.
Case 2 A large-scale air separation system was constructed which contains 36 units and
68 feed streams. Each stream has 3 components which are oxygen, nitrogen and argon.
The measurement data of the process system reflects the run status of equipments and is
the basis for process simulation and optimization. As the measurement error of data is
inevitable, we need to revise the data before they are used as experiment data.
For this reconciliation model, the number of variable is 7184, the number of equality
constraints is 7168, the degree of freedom is 16, and the number of nonzero elements of
Jacobian of constraints is 40034. The results for solving this model using AOS
compliant IPOPT and CO compliant IPOPT are shown in table 2.
Tab.2 Numeric result of large-scale air separation
objective iteration feasibility AOS (s) CO-InProcess (s) CO-Local (s)
4.005e-2 173 9.44e-7 75.02 188.30 204.64
This model is also solved successfully and all the three runs have the same objective
value, number of iterations and feasibility.
4.2. Efficiency Test
From section 4.1, we see that CPU time of CO wrapping increases much compared with
AOS compliant IPOPT. Interoperability of Aspen Plus is gained at the expense of
efficiency loss. A further test is made on the effect of model scale on efficiency loss.
Two variable scale examples from (Biegler et al, 2000; Schmid, 1994) are tested.
Example 1 Example 2
n n1
min 0.5¦xi2 min ¦( x x
i i 1 )2
i 1 i 1
Fig 3 Relationship between the model scale and the CPU time cost
5. Conclusion
In this paper, we descirbe the development of AOS compliant IPOPT. The compatibility
of Aspen Plus for CO solvers is extended based on AOS Interface through COM
technology. The validity of AOS compliant IPOPT is tested by solving the economic
optimization problem of depropanizer and debutanizer multi-column system and the
reconciliation problem of large-scale air separation system. Moreover, validity of the
extended CO compatibility of Aspen Plus is tested with the same examples as AOS
compliant IPOPT.
IPOPT is embedded into Aspen Plus successfully as a new tool for solving process
optimization problems. Compatibility of Aspen Plus is extended for CO compliant
solver. A nearly linear relationship holds between the efficiency loss and model scale.
References
Aspen Technology, Inc. ,2003, Aspen Open Solvers 12.1 User Guide, available at
http://support.aspentech.com/webteamasp/My/FrameDef.asp?/webteamasp/AllDocsDB.asp
L. T. Biegler, J. Nocedal et al.,2000, Numerical experience with a reduced Hessian method for
large scale constrained optimization, Computational Optimization and Applications, 15, 45-67.
CO-LaN Consortium, 2003a, Open Interface Specification: Optimization Interface, version 2.
http://www.colan.org/Spec%2010/Optimisation%20Interface%20Specification.pdf
CO-LaN Consortium, 2003b, Open Interface Specification: Identification Common Interface,
version 3. http://www.colan.org/Spec%2010/Identification%20Common%20Interface.pdf
CO-LaN Consortium, 2003c, Open Interface Specification: Parameter Common Interface, version
5. http://www.colan.org/Spec%2010/Parameter%20Common%20Interface.pdf
CO-LaN Consortium, 2003d, Open Interface Specification: Collection Common Interface,
version 2. http://www.colan.org/Spec%2010/Collection%20Common%20Interface.pdf
A. P. Jiang, Z. J. Shao, et al., 2006, Simulation and Optimization of Distillation Column Sequence
in Large-Scale Ethylene Production. Chem. Ind. Eng. (China), 57, 9, 2128-2134.
Y. D. Lang, L. T. Biegler, 2005, The IPOPT Interface to CAPE-OPEN. CAPE-OPEN Update,
Vol. 10, available at http://www.colan.org/CO%20Update/IPOPTmain_Vol10.htm
T. Lid, S. Skogestad, 2008, Scaled steady state models for effective on-line applications.
Computers & Chemical Engineering, 32, 990-999.
M. R. Ricardo, G. Rafiqul, et al., 2008, Use of CAPE-OPEN standards in the interoperability
between modeling tools (MoT) and process simulators (Simulis Thermodynamics and
ProSimPlus). Chemical Engineering Research and Design, 86, 7, 823-833.
C. Schmid, 1994, Reduced Hessian Successive Quadratic Programming for Large-Scale Process
Optimization, Ph. D. thesis, Carnegie Mellon University.
L. Testard, J. P. Belaud, 2005, A CAPE-OPEN based framework for process simulation solution
integration. Computer Aided Chemical Engineering, 20, 1, 607-612.
A. Yang, B. Braunschweig, et al., 2007, A multi-agent system to facilitate component-based
process modeling and design. Computers & Chemical Engineering, 32, 2290-2305.