Method for expanding compatibility of Aspen Plus to non-linear programming solver based on CAPE-OPEN
Technical Field The invention relates to chemical process simulation and optimization technology field, in particular to a kind of expansion Aspen CAPE-OPEN Plus on the basis of the compatibility of the non-linear programming solver method. Background Art As the chemical process system make it can be used for simulation of a safe, reliable, quick and cost-effective manner to the entire process system and the economic benefit of assessment of the environmental impact of the process system and achieve the best to optimize the economic benefits of the minimum and the environmental impact. There are currently many outstanding flowsheeting and optimization software, these software although powerful, their own resources also is very rich, however, because the lack of reusability and interoperability of these software so that they are difficult to synergistic cooperation some complex problem to solve. Meanwhile, in the current large-scale process simulation and optimization often requires various software of the auxiliary to finish, how the different sources, easily with different strengths of the software, is seamlessly linked to the large-scale process simulation and optimization the crux of the problem. Open computer-aided process engineering (Computer-Aided Process Environment OpenSimulation Engineering, CAPE-OPEN) is to resolve flowsheeting and optimization software interoperability between and integrated and produce a standard, the initiator of the works is EC, the outline plan for industrial and the raw material (Brite-EuRam III). At present, the laboratory network organization CAPE-OPEN ( Network CAPE-OPEN Laboratories, CO-LaN) responsible for the formulation of the standard CAPE-OPEN, test, distribution and maintenance. With the standard is widely accepted CAPE-OPEN, industrial process can be by the software supplier, University research institutions and the process of simulation and optimization software system design and the process in the process operation, and the like is always kept at the level of a stapled. This means that the process industry in operating cost, software maintenance and the cost of the training of personnel will greatly reduce, at the same time also as a process simulation and optimization software open up a new market [Koller J, Kuckelberg A. CAPE-OPEN (CO) standards: and implementation maintenance[C] in Technology Innovation Information .Standardizationand, 2001 2nd IEEE Conference]. Academic institutions current software suppliers and the support of the standard CAPE-OPEN whether process modeling environment ( Environments Modeling Process) or process modeling component ( ModelingComponents Process) has been concentrated in the unit and operation storehouse thermodynamics and bussei library [RicardoMorales-Rodr íguez, Rafiqul Gani, et al.Use of CAPE-OPEN standards in theinteroperability between modeling tools (MoT) and process simulators (SimulisThermodynamics and ProSimPlus) .Chemical Engineering Research and Design, 2008, 86 (7): 823-833], but the numerical solver (in particular optimization solver) of the support is very little, only a process modeling environment gRPROMS[Process PSE Company EnterpriseLtd.gPROMS Systems v2.3 Guide Programmer System, London, United Kingdom, 2004], only the process modeling component in the development of Carnegie Mellon University IPOPT[Lang Y D, Biegler to L Update IPOPT CAPE-OPEN. CAPE-OPEN Interface T.The, Vol. 10]. CAPE-OPEN to the optimized solution for the standard interface definition there are three, are respectively ICapeMINLP, for optimizing algorithm is to provide specific model information; ICapeMINLPSystem, and disposing the solver is used for viewing the parameters of the call solver and; ICapeMINLPSolverManager, for generating a support interface ICapeMINLPSystem specific object instance. Content of the invention The purpose of this invention is to in order to make the Aspen Plus and the external solver standardized the interaction between, so as to better realize the integration and interoperability among software, to provide a kind of expansion Aspen CAPE-OPEN Plus on the basis of the compatibility of the non-linear programming solver method. The purpose of this invention is through the following technical scheme is:a kind of expansion Aspen CAPE-OPEN Plus on the basis of the compatibility of the non-linear programming solver method, comprising the following steps: 1st step: through component object model technology, Plus Aspen provided by the opening of the interface collection solver ( Solvers Open Aspen, AOS) interface ICapeMINLP realizing a support of the model object module, the information obtained through AOS, ICapeMINLP interface to get to the; 2nd step: through component object model technology, achieving a support ICapeMINLPSystem interface model processing module, this module is responsible for the configuration of the optimizing algorithm parameter optimization algorithm and activate; 3rd step: through component object model technology, to realize a support for the solver ICapeMINLPSolverManager interface management module, the module may be according to the 1st step in the model object generate a corresponding model processing object, the equivalent to a model object and one optimization algorithm are combined together; 4th step: using AOS realize a pseudo-solver module, the module is Aspen call Plus, and can receive a user interface Plus Aspen the commandline input a number of configuration command. The beneficial effect of the invention is: (1) as CAPE-OPEN a new generation of process system platform standard open simulation calculation, the can be easily AspenPlus access to and use of the built-in optimization algorithm and better stability than stronger solving capability optimization algorithm. (2) realizes the location transparency of optimization solver (can be local, can also be a long-range), and the optimization algorithm is arranged in a remote time, the decomposition of the computational burden can be realized. Description of drawings Figure 1 is a schematic diagram of Aspen CAPE-OPEN Plus realized on the basis of the compatibility of the non-linear programming solver. Mode of execution The invention, in order to make the Aspen Plus and the external solver standardized the interaction between, thus can be easily obtained compared with a built-in optimization algorithm stability is better and stronger solving capability optimization algorithm, has proposed a kind of expansion Aspen CAPE-OPEN Plus on the basis of the compatibility of the non-linear programming solver method, the method comprises the following steps: 1st step: through component object model technology, Plus Aspen provided by the opening of the interface collection solver ( Solvers Open Aspen, AOS) interface ICapeMINLP realizing a support of the model object module, so that the 3rd party solver ICapeMINLP interface to get through all of the information model object, including the number of variables, the number of constraint equations, the tolerance of the constraint equations, constraint equation of the Jacobian matrix, etc.; 2nd step: through component object model technology, achieving a support ICapeMINLPSystem interface model processing module, this module is responsible for solving 3rd party parameter configuration and activate the 3rd party solver; 3rd step: through component object model technology, to realize a support for the solver ICapeMINLPSolverManager interface management module, the module may be according to the 1st step in the model object generate a corresponding model processing object, the equivalent to a model object and one optimization algorithm are combined together; 4th step: using AOS realize a pseudo-solver module (is not a true optimization algorithm), the module is Aspen call Plus, and can receive a user interface Plus Aspen the commandline input a number of configuration command. In the module is Aspen Plus after the activation, first of all through the ICapeMINLPSolverManager interface to produce a model processing object, and the 3rd parties ICapeMINLPSystem interface to call the solver solving model object. When the optimization solver is deployed in the local time, as long as the user interface Plus Aspen the command line the lower input: 'SOLVER' solver enter // choose a certain SOLVER as an optimization solver Solver enter // display SOLVER settings of all default parameter setting SOLVER.max_iter=500 SOLVER enter // the maximum iteration times to 500 Solving solve enter // start-up When the optimization solver is deployed in the remote time, as long as the user interface Plus Aspen the command line the lower input: 'SOLVER' solver enter // choose a certain SOLVER as an optimization solver SOLVER. local=no enter // remote SOLVER. location=xxx .xxx.xxx.xxx enter // input remote server's IP SOLVER. user=xxx enter // input remote server's user-name SOLVER. password=xxx enter // input the remote server the password In the next setting and local the same. The invention discloses a method for expanding the compatibility of Aspen Plus for a nonlinear programming solver based on CAPE-OPEN. The method ensures that the compatibility o f Aspen Plus on the aspect of optimizing the solver is expanded, so that the Aspen Plus supports the optimization solver based on open computer aided process engineering. Aspen Plus interacts with the external nonlinear programming solver through the interface set of an open solver. In order to standardize the interaction between the Aspen Plus and the external solver, and well realize the integration and interoperability among software, a layer of middleware based on OI is realized between AOS and the external solver by adopting the technology of component object model and utilizing standard optimizing interface set issued by CAPE-OPEN laboratory network organization aiming at a mixed integer nonlinear programming. The invention ensures that the Aspen Plus can obtain and use an optimization algorithm with a better stability and stronger solving capability by comparing with a built-in optimization algorithm with greater ease, so that the location transparency of the optimization solver is realized, and thereduction for computer burden is realized when the optimization algorithm is arranged in a long distance manner. 1. A kind of expansion compatible Plus Aspen CAPE-OPEN-based method for the non-linear programming solver, characterized in that comprises the following steps: (1) through component object model technology, Plus Aspen provided by the opening of the interface collection solver AOS ICapeMINLP interface support the realization of a model object module, the information obtained through AOS, ICapeMINLP interface to get to the; (2) through component object model technology, achieving a support ICapeMINLPSystem interface model processing module, this module is responsible for the configuration of the optimizing algorithm parameter optimization algorithm and activate; (3) through component object model technology, to realize a support for the solver ICapeMINLPSolverManager interface management module, the module according to step (1) in the model object module generate a corresponding model processing object; (4) using AOS realize a pseudo-solver module, the module is Aspen call Plus, and receives through user interface Plus Aspen the commandline input a number of configuration order; Wherein said ICapeMINLP interface, interface and ICapeMINLPSystem CAPE-OPEN ICapeMINLPSolverManager interface is defined to the optimized solution for the standard interface.