Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PROCESS NETWORK WITH SEVERAL PLANTS
Document Type and Number:
WIPO Patent Application WO/2021/156484
Kind Code:
A2
Abstract:
A computer implemented method for generating a problem specific representation of a process network to enable controlling or monitoring a process network with at least two interconnected chemical plants, the method comprising the steps of providing a first digital representation of the process network comprising a digital process representation of each plant, its connections to other plants and sensor elements placed in the process network, generating based on the first digital representation a graph structure including vertices representing unit operations, edges linking unit operations representing at least physico-chemical quantities, wherein the edges include edge meta data representing at least physico-chemical quantities, and a measurable tag, generating based on the graph structure a collapsed graph structure including, vertices representing virtual unit operations, edges linking virtual unit operations representing at least physico-chemical quantities, wherein the edges include edge meta data representing observable physico chemical quantities, and their relation to vertices, deriving a set of balance equations from the collapsed graph structure, providing the set of balance equations, and physico- chemical quantities for monitoring and/or controlling operation of a process network is proposed.

Inventors:
PACK ROBERT (DE)
Application Number:
PCT/EP2021/052877
Publication Date:
August 12, 2021
Filing Date:
February 05, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BASF SE (DE)
International Classes:
G05B19/418; G05B17/02
Other References:
PREISIG, COPMUTER AND CHEM-ICAL ENGINEERING, vol. 33, 2009, pages 598 - 604
PREISIG ET AL., SIMS 2004, COPENHAGEN, DENMARK, 23 September 2004 (2004-09-23), pages 413 - 420
COMPUTERS AND CHEMICAL ENGINEERING, vol. 33, 2009, pages 598 - 604
"unit operations of chemical engineering", October 2004, MC GRAW HILL
KRETSOVALIS ET AL., COMPUT. CHEM. ENGNG, vol. 12, no. 7, 1988, pages 671 - 687,689-703
LEVENTE ET AL., ALCHE JOURNAL, vol. 00, no. 00, 2018, pages 1 - 12
YUAN ET AL., AICHE JOURNAL, vol. 61, no. 10, pages 3232 - 3248
Attorney, Agent or Firm:
BASF IP ASSOCIATION (DE)
Download PDF:
Claims:
Claims:

1. A computer implemented method for generating a model representation of a process net work with at least two interconnected chemical plants to enable controlling or monitoring the process network, the method comprising the steps of:

- providing a digital representation of the process network comprising o a digital process representation of each plant, o its connections to other plants (realized by mass or energy flow in the descrip tion) and sensor elements placed in the process network,

- generating based on the first digital representation a graph structure including o vertices representing unit operations, o edges representing physico chemical quantities, wherein the physico chemical quantities comprise mass-, energy- and component flows, the edges linking ver tices, wherein the edges include a measurable tag for each of the represented physico chemical quantities, the measurable tag indicating if the physico chemi cal quantity may be measured in the process network, or if the physico chemical quantity may not be measured;

- categorizing the physico chemical quantities that may be measured in the process net work as observable physico-chemical quantities,

- categorizing physico chemical quantities that may be calculated from balance equations around vertices as observable physico-chemical quantities,

- generating based on the graph structure a collapsed graph structure by collapsing edges with physico chemical quantities that are not categorized as observable into collapsed vertices,

- the collapsed graph structure including,

• collapsed vertices representing virtual unit operations,

• vertices representing unit operations o edges representing only observable physico chemical quantities, linking col lapsed vertices and / or vertices,

- deriving a set of balance equations for each mass-, energy- or component flow around each vertex, the set of balance equations modeling the plant network, the set of balance equations being usable for monitoring, controlling, production planning, prediction models,

- providing the set of balance equations, to a control device, a monitoring, a production planner device and or a prediction model generator.

2. Method according to claim 1 , wherein the vertices further represent vertex meta data, comprising physical quantities linked to the respective unit operation. 3. Method according to any preceding claims, wherein generating a collapsed graph struc ture comprises generating a collapsed graph for each physico-chemical quantity.

4. Method according to claim 3, wherein providing a set of balance equations from the collapsed graph structure comprises providing a set of balance equation for each con-served quanti ty

5. The method according to any of the preceding claims, wherein the step of collapsing edg es is followed by selecting at least two vertices that are connected via edges collapsing edges between the at least two vertices, thereby creating a virtual vertex.

6. Method according to any of the preceding claims wherein the step generating based on the first digital representation a graph structure further comprises generating a converged graph structure by attributing labels to all physico- chemical quantities dependent on whether they are measured physico-chemical quantities, deter-mined physico-chemical quantities, are measured and determined physico-chemical quantities or physico-chemical quantities that are neither measured physico-chemical quantities nor determined physico chemical quantities.

7. Method according to claim 7, further comprising receiving a trigger signal, wherein the method step of generating a converged graph structure is initiated upon evaluation of the trigger signal the trigger signal indicating that a physico-chemical quantity may no longer be measured.

8. A system for generating a problem specific representation of a process network to enable controlling or monitoring a process network with at least two interconnected chemical plants, the system comprising

- a processor configured for o performing the method steps according to any of the claims 1-8,

- an output interface for providing o the set of balance equations for monitoring and/or controlling operation of a pro-cess network.

9. Computer program product that when run on a computer performs the method steps of any of the method claims 1-8.

10.- A method for monitoring a process network with at least two plants, the method compris ing the steps of:

- receiving a request for at least one process network operation parameter, via an input in terface

- retrieving via the input interface a set of balance equations, and physico-chemical quanti ties a collapsed graph,

- retrieving historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a data-base,

- determining a value for the at least one process network operation parameter by solving the system of balance equations based on the historical data and the current data,

- providing via an output interface the value of the for at least one process network opera tion parameter.

11. A method for controlling a process network with at least two plants, the method compris ing the steps of:

- receiving via an input interface a request for at least one optimization objective by specify ing at least one process parameter to be optimized,

- receiving via the input interface retrieving via the input interface a set of balance equa tions, and physico-chemical quantities a collapsed graph structure, wherein the set of bal ance equations is derived according to the method of any of claims 1 to 7,

- retrieving from a database historical data, the historical data related to observable physi co-chemical quantities and metadata related to the at least one process network operation parameter to be optimized,

- determining a value for the at least one process network operation parameter to be opti mized by solving the system of balance equations

- providing via an output interface the value of the for at least one process network opera tion parameter to be optimized.

12. A method for generating a hybrid model to monitor and/or control a process network with at least two plants connected to each other, the method comprising the steps of:

- retrieving via the input interface a set of balance equations, and physico-chemical quanti ties a collapsed graph structure, wherein the set of balance equations is derived according to the method of any of claims 1 to 7, - receiving via an input interface at least one objective specifying at least one process pa rameter dependency to be trained

- retrieving via an input interface historical data of the process network with at least two plants connected to each other, - training of a hybrid model, including the system of balance equations and a data-driven model based on the historical data and on the least one objective specifying at least one process parameter dependency to be trained,

- providing the trained hybrid model via an output interface

Description:
PROCESS NETWORK WITH SEVERAL PLANTS

FIELD

The invention relates to a system and a computer implemented method for generating a prob lem specific representation of a process network to enable monitoring and or controlling a pro cess network with at least two plants. The system further relates to use cases of the problem specific representation.

BACKGROUND

Chemical production is a highly complex environment. Especially, when two or more production plants are involved. Chemical plants typically include multiple assets to produce the chemical product. Multiple feeds of pure components or mixtures are present and at various stages ener gy is provided or withdrawn. Multiple sensors are distributed in such plants for monitoring and control purposes and collect data. As such, chemical production is a data heavy environment. However, to date monitoring and controlling interconnected plants is challenging.

In process engineering flowsheet simulators include graph structures to simulate chemical plants. Models in such flowsheet simulators are typically built to solve a given problem and can not be transferred to other problems easily. Specifically, such simulators are static and cannot be easily adjusted. Additionally, the model design is cumbersome and time consuming. Specifi cally, each block / node used in a flowsheet model hast a largely fixed, though potentially para metrized, number of unknowns, and thus requires a specific number of specifications or addi tional con-straints / equations.

Using graph theory for describing a single plant were proposed by Preisig (Copmuter and Chem-ical Engineering, 33 (2009), 598-604).

Preisig et al. SIMS 2004, Copenhagen, Denmark, 23-24 September 2004, pp 413-420 and Computers and Chemical Engineering 33 (2009) 598-604 describe a modeler is built on imple menting a physical view of the world. It constructs an abstract process representation in form of a topology with two levels of refinements. First a physical view of the space occupied by the process and its relevant environment is defined, which is the physical topology. The first refine ment is seen as a coloring of the topology by adding the species that are present in the plant. Finally, the second refinement adds the variables and equations describing the behavior of the individual components of the topology. The modeler described by Preisig aims to guarantee structurally solvable simulation problems, namely differential algebraic equations of index 1. The modeler allows to generate models for problems, including dynamic simulation, optimization and control design. Nevertheless, building the physical topology of the process is not an automatic process but a design process, which requires an in-depth understanding of the process being modelled.

McCabe et al. describe the concept of unit operations in chemical engineering (“unit operations of chemical engineering”, Me Graw Hill, Oct. 2004, 7th edition)

Existing modelers are static and generate a set of equations that are tailored to the user speci fied problem. These models are not dynamic in the sense that they are automatically adaptable to e.g. different optimization problems. Additionally, interdependencies between process com- po-nents or multiple plants are difficult to capture and lead to less robust results.

The object of the present invention relates to a system and a method for generating a problem specific representation of two or more interconnected plants to enable controlling or a process network with at least two plants. The system further relates to use cases of the problem specific representation.

Summary

The proposed solution provides a more flexible approach for process simulation. Specifically, the processes are mapped and prepared in such a way that the model or optimization can be easily customized to the specific needs of a process user. Additionally, accuracy is enhanced by combining classical balance-equation based models with data-driven models that capture e.g. environmental effects not represented in rigorous models based on the laws of physics.

The proposed solution is particularly suited for monitoring, planning or controlling processes in plant networks, such as chemical production parks including downstream and upstream plants, energy generation complexes including or refineries. It allows for a more flexible approach to generate network models and to adapt the network model depending on present conditions. For example, if one plant in the network fails the network model can be adapted accordingly and still provide accurate predictions for monitoring or even controlling the plant network.

A computer implemented method for generating a model representation of a process network with at least two interconnected chemical plants to enable controlling or monitoring the process network is proposed, the method comprising the steps of:

- providing a digital representation of the process network comprising o a digital process representation of each plant, o its connections to other plants (realized by mass or energy flow in the descrip tion) and sensor elements placed in the process network,

- generating based on the first digital representation a graph structure including o vertices representing unit operations, o edges representing physico chemical quantities, wherein the physico chemical quantities comprise mass-, energy- and component flows, the edges linking ver tices, wherein the edges include a measurable tag for each of the represented physico chemical quantities, the measurable tag indicating if the physico chemi cal quantity may be measured in the process network, or if the physico chemical quantity may not be measured;

- categorizing the physico chemical quantities that may be measured in the process net work as observable physico-chemical quantities,

- categorizing physico chemical quantities that may be calculated from balance equations around vertices as observable physico-chemical quantities,

- generating based on the graph structure a collapsed graph structure by collapsing edges with unobservable physico chemical quantities into collapsed vertices

- the collapsed graph structure including,

• collapsed vertices representing virtual unit operations,

• vertices representing unit operations o edges representing only observable physico chemical quantities, linking col lapsed vertices and / or vertices,

- deriving a set of balance equations for each mass-, energy- or component flow around each vertex, the set of balance equations modeling the plant network, the set of balance equations being usable for monitoring, controlling, production planning, prediction models,

- providing the set of balance equations, to a control device, a monitoring, a production planning device and or a prediction model generator.

A process network may be understood as a network of at least two chemical plants. A chemical plant is a plant in which at least one chemical reaction occurs.

The at least two plants may be interconnected. This interconnection may be realized by energy exchange from one plant to another, by mass transport from one plant to another, and in rare cases, the exchange of information between plants or their control systems, captured via ex pressions. The process network may be located on one site. The process network may alterna tively be located across at least two sites, each site containing one or more interconnected chemical plants.

The digital process representation of each plant may be a Piping and instrumentation diagram (P&ID) representation of the plant or derived from the P&ID. The digital representation of the process network may further comprise kind and location of of fline measurements drawn from the process, known correlations between online and or offline data and other variables in the graph - i.e. expressions / models.

The digital representation may also comprise signals, which may come in three main realiza tions:

• online signals may be provided by sensors installed directly in the plant

• The digital representation may also comprise offline signals, e.g. laboratory data, and ex pert knowledge. Laboratory data may for example relate to concentrations, which were determined offline in a lab.

• The digital representation may also comprise expressions. Expressions are relations that link one or more signals to another physical quantity.

•The digital representation may also comprise models. Models may be available via APIs and may link any number of available signals, to any number of new signals which may relate to physical quantities.

In more detail the first digital representation of the process network may include smart piping and instrumentation diagrams for each plant including plant components, component character istics like physical dimensions and layout, operation conditions like operation parameters, total mass flow connections between plant components, sensor components including location and measurement quantities, as well as chemical data relating to chemical properties, e.g. molecu lar weight and reactions for each plant, expert knowledge on thermodynamics, or reduced ther mo-dynamic relations - like a known split of components in a liquid-liquid separator.

Unit operations may represent columns, reactors, pumps, heat exchangers, cristallers, and oth er known pieces of equipment that may be installed in a plant. Unit operations may further com prise transports, transports define connections between plants, transports may comprise (pipes, ships, trucks, trains, for lifts, or any means moving matter between unit operations). A model reflecting the process step of a specific unit operation may be reflected in the correspondent vertex. This model may be a rigorous model, a simple function or a data driven model or a hy brid model. These models may require physical quantities linked to the respective unit operation as input parameters. In particular chemical reactions may occur in unit operations and the chemical reaction may be modeled. More particular, a process network of two connected chem ical plants may comprise at least one unit operation where a reaction occurs, the corresponding vertex may comprise a model transforming physico chemical quantities from one connected edge to physico chemical quantities on another connected edge. The Vertices may further represent vertices meta data, comprising physical quantities linked to the respective unit operation e.g. volume, diameter, or data to internals - e.g. count and shape of pipes in a multi-tube reactor.

By providing vertices that represent vertices meta data comprising physical quantities linked to the respective unit operation the input parameters for the models related to the process step of the respective unit operation are provided in a very efficient way. Access is accelerated, be cause the graph structure is self-containing, such that it contains that relevant information. Ac celerated access leads to a faster execution of the method steps, which in turn allows the set of balance equations to be provided faster. This leads to a reduced time for generating a model of the process network. This also reduces time in monitoring and/or controlling. A short lag time is crucial for monitoring and/or controlling a process network with at least two interconnected plants.

In the graph structure edges are linking unit operations. The edges may represent at least phys- ico chemical quantities. Representing at least physico chemical quantities may comprise flow of conserved physico chemical quantities in and out of unit operations. Conserved physico chemi cal quantities are physico chemical quantities are physico chemical quantities following a con servation law. Another term may be conservation quantities. Physico-chemical quantities may also comprise variables as well as constraints. Conserved quantities may relate to quantities that are conserved in a self-contained system. These may be physical conserved quantities like e.g. total mass flow, energy flows and component flows. Conserved quantities may relate to quantities where conservation can be derived from physical laws. Furthermore, constitutive equations relate conserved quantities and the knowledge that along an edge these quantities are not changed, e.g. the sum of concentrations equals one. Consequently, the edges may fur ther comprise constitutive laws.

A component flow relates to the mass flow of a certain component in a process network. For example, when a reaction including two components x and y results in a new component z, the total mass flow into a reactor is mass_total =mass_x + mass_y, while component flow for x is mass_x.

The total mass flow may be for example understood as the sum of all component flows.

Edge metadata may also be comprised on each edge. Edge metadata may comprise physico chemical quantities and may be provided as signals. Physico-chemical quantities may further comprise physico-chemical quantities required to fully describe a conserved physico chemical quantity. Physico-chemical quantities may comprise temperature, pressure, weight, mass, en ergy, concentrations, concentrations, activity.

A measurable tag may be provided to each physico-chemical quantity on edges, when the physico-chemical quantity may be measured in the process network by a sensor, the tag may be “measured”, when the physico-chemical quantity may not measured, no tag may be associ ated or a tag “un-known” may be associated. Measured physico-chemical quantities may be provided directly from a sensor signal or may be derived from a sensor signal by expert knowledge or an expression. The physico-chemical quantity may be provided offline or online.

In other words, measured means that the physico-chemical quantity, will be available in the pro cess network either from inline measurements as data from a sensor, offline data, e.g. lab data, expert knowledge or an expression.

An expression may be a simple mathematical relation between online or offline data and a physico chemical quantity e.g. unit conversion.

A physico-chemical quantity may be considered observable, when the selected physi-co- chemical quantity may be measured in the process network, may be calculated from balance equations around a vertex or may be measured and calculated.. A physical quantity is consid ered calculated if the value can be derived from other measured physico-chemical quantities by laws of physics. Balance equations are based on conservation laws of the respective physico chemical quantity

Generating based on the on the graph structure a collapsed graph structure, vertices represent ing virtual unit operations, edges linking virtual unit operations representing at least physico chemical quantities, wherein the edges include edge meta data representing observable physi co chemical quantities, and their relation to vertices, ensures that all remaining physico chemi cal quantities in the graph structure are observable. Observability is essential for deriving a set of balance equations that is solvable. The relation to vertices can be understood that the physi co-chemical quantity is an output parameter of one vertex and an input parameter of the next vertex.

Generating based on the on the graph structure a collapsed graph structure, with only observa ble physico-chemical quantities on edges and their relation to the vertices, may comprise the step of generating new vertices, these are collapsed vertices representing virtual unit operations and may comprise several unit operations, wherein the all selected physical quantities connect ed to that vertex are observable. This new vertex may then be understood as a virtual unit op- eration. A new model reflecting the process step of that new virtual unit operation may be gen erated and reflected in the correspondent vertex. This model may be a rigorous model, a simple function or a data driven model or a hybrid model. These models may require physical quanti ties linked to the respective unit operation as input parameters. In a figurative way these col lapsed vertices are generated by combining unit removing edges with unobservable physico chemical quantities and collapsing the corresponding vertices into one collapsed vertex. This may be repeated until only

Now, a set of balance equations derived from the graph structure is solvable and as such the graph structure allows to extract balance equations for any specific problem. This greatly reduc es complexity of the digital representation. This reduced representation is problem specific, be cause the collapsed graph only contains problem specific physico-chemical quantities. This en ables controlling or monitoring a process network with at least two interconnected chemical plants. Without reduction to a set of balance equations that fully describe the plant network and providing these equations and physico-chemical quantities controlling and monitoring would not be possible. Computation times are greatly reduced, because only balance equations need to be solved. This further allows to describe the complex plant network in a digestible way, such that prediction and production planning is enabled.

Physical quantities that can be measured and determined may be labeled redundant It may be beneficial to define expressions on the level of the first digital representations. This increases the amount of physico-chemical quantities that can be labeled as measured. This increases the speed for generating the collapsed graph. This then allows the set of balance equations and physico-chemical quantities to be faster provided. This leads to a reduced lag time in monitoring and/or controlling. A short lag time is crucial for monitoring and/or controlling a pro-cess network with at least two interconnected plants.

The step generating based on the first digital representation a graph structure may further com prise generating a converged graph structure, by attributing labels to all physico-selected chem ical quantities dependent on whether they are measured physico-chemical quantities, deter mined physico-chemical quantities, are measured and deter-mined physico-chemical quantities or physico-chemical quantities that are neither measured physico-chemical quantities nor de termined physico-chemical quantities. The latter may be labeled unobservable.

Physical quantities that can be determined and measured may be labeled redundant. Providing such a label allows consistency checks. When a physico-chemical quantity is redundant, the measured physico-chemical quantities can be compared with the determined physico-chemical quantity. Comparing measured physico chemical quantity with the respective determined select-ed physico-chemical quantity may be described as consistency check.

Consistency is only confirmed, when both physico-chemical quantities are identical. Identical means that they are identical within error margins or when the residual between the respective selected pyhsico-chemical quantities is below a threshold or when the residual be-tween the respective selective quantities only shows random noise.

The labels may be provided as attributes to the collapsed graph structure. Providing these la bels at the level of the collapsed graph is a very efficient way to provide the information. This accelerates accessibility of the labeled information. Accelerated access leads to a faster execu tion of the method steps, which in turn allows the set of balance equations and physico chemical quantities to be faster provided. This leads to a reduced lag time in monitoring and/or controlling. A short lag time is crucial for monitoring and/or controlling a process network with at least two interconnected plants.

The labels may be provided to the set of balance equations. Providing these labels to the set of balance equations further accelerates accessibility of the information. Accelerated access leads to a faster execution of the method steps, which in turn allows the set of balance equations to be faster provided. This leads to a reduced lag time in monitoring and/or controlling. A short lag time is crucial for monitoring and/or controlling a process network with at least two interconnect ed plants. Essentially, the information does not need to be looked up in a separate database. Nowa-days databases are often in a cloud environment, this makes access slow compared to on site retrieval of the data.

For the purpose of labeling, observability and redundancy analysis may be performed. Redundancy and Observability analysis may be performed by applying the algorithms disclosed in Kretsovalis et al. (Comput. Chem. Engng, Vol 12, No7, pp 671-687, and 689-703,1988).

The step of generating the converged graph may comprise defining expressions between phys ico-chemical quantities, which may be stored in the graph. Storing expressions in the graph re duces the time for retrieving information from the converged graph.

The step generating based on the graph structure a collapsed graph structure collapsed graph structure may be preceded by collapsing edges comprising unobservable physico-chemical quantities into vertices. By collapsing the graph structure new vertices may be generated.

These new vertices relate to unit operations that no longer need to reflect unit operations de rived from the first digital representation. Virtual unit operations may be unit operations that no longer need to reflect unit operations derived from the first digital representation or reflect unit operations derived from the first digital representation.

This leads to a graph, where all conserved quantities can be derived based on measured se lected physical properties. The collapsed graph represents the maximum information available form all known data. It may be further collapsed to reduce complexity of any set of balance equations that can be derived, while still guaranteeing structural solvability of the derived sys tem. This greatly reduces complexity of the digital representation. This reduced representation is problem specific, because the collapsed graph only contains problem specific physico chemical quantities. This enables controlling or monitoring a process network with at least two interconnected chemical plants. Without reduction to a set of balance equations that fully de scribe the plant network and providing these equations controlling and monitoring would not be possible. Computation times are greatly reduced because only balance equations need to be solved. This further allows to describe the complex plant network in a digestible way, such that prediction and production planning is enabled.

Generating a collapsed graph structure may comprise generating a collapsed graph structure for each conserved quantity, e.g. a collapsed graph structure for total mass flow and a separate collapsed graph structure for energy flow. This may be required if the observables for each con served quantity are not on identical edges. Generating a collapsed graph structure for each con served quantity conserves the largest possible information in the graph. For controlling and/or monitoring maintaining the largest possible information is beneficial.

The system of balance equations may be stored in the graph or may be stored in a separate database.

This has the advantage that a new system of balance equations does not need to be generated every time a request for monitoring and/or controlling the plant network is provided.

The step generating based on the graph structure a collapsed graph structure collapsed graph structure may be preceded by collapsing edges comprising unobservable physico-chemical quantities into vertices may be followed by, based on an objective, further collapsing edges with observable physico-chemical quantities into vertices.

For certain specific problems a reduced set of information is sufficient. These specific problems may be defined as an objective based on this objective the graph may be further collapsed. Collapsing may be performed by aggregation of vertices and edges into a new collapsed vertex. This new collapsed vertex may then be understood as a new collapsed unit operation. A new collapsed model reflecting the process step of that new a specific unit operation may be gener ated and reflected in the correspondent collapsed vertex. This model may be a rigorous model, a simple function or a data driven model or a hybrid model. These models may require physical quantities linked to the respective unit operation as input parameters.

By further collapsing unnecessary information is removed. This results in a less complex graph. Consequently, the set of balance equations is also less complex although sufficient for that spe cific problem.

Therefore, the provided set of balance equations for monitoring and or controlling is faster to solve. This leads to a reduced lag time in monitoring and/or controlling. A short lag time is cru cial for monitoring and/or controlling a process network with at least two interconnected plants. Such a specific problem may occur, when the edges between two vertices are not relevant for the controlling and/monitoring and only the balance equations of the inflow into a first vertex and the outflow of a second vertex is relevant.

The method step of generating a converged graph structure may further comprise receiving a trigger signal, wherein the method step of generating a converged graph structure is initiated up-on evaluation of the trigger signal.

The trigger signal may be provided by a watchdog device. The watchdog device may monitor the process network for detecting changes in the process network. Upon detection of changes in the process network, generating a converged graph structure may be initiated.

Changes in the process network may result in changes to the observability of physico-chemical quantities some observables may become unobservable, which in turn would lead to an equa tion system that would no longer be solvable. Hence, monitoring and/or controlling would no longer be enabled.

By receiving a trigger signal, wherein the method step of generating a converged graph struc ture is initiated upon evaluation of the trigger signal these changes will be reflected in the step of generating the converged graph structure by attributing labels to all physico-chemical quanti ties dependent on whether they are measured physico-chemical quantities, deter-mined physi co-chemical quantities, are measured and determined physico-chemical quantities or physico chemical quantities that are neither measured physico-chemical quantities nor determined phys ico-chemical quantities. The change in the observability of physico-chemical quantities will then be reflected in the gen erated collapsed graph structure. The step of deriving a set of balance equations from the col lapsed graph structure will also reflect the changes in the process network. Such that the changes in the process network will also be reflected in the provided set of balance equations. This dynamic approach leads to a more robust method for generating a problem specific repre sentation to enable controlling or monitoring a process network with at least two interconnected chemical plants.

These changes in the process network may be sensor failures, or other errors.

The first aspect is also reflected in the following clauses:

1. A computer implemented method for generating a model representation of a process net work with at least two interconnected chemical plants to enable controlling or monitoring the process network, the method comprising the steps of:

- providing a digital representation of the process network comprising o a digital process representation of each plant, o its connections to other plants (realized by mass or energy flow in the descrip tion) and sensor elements placed in the process network,

- generating based on the first digital representation a graph structure including o vertices representing unit operations, o edges representing physico chemical quantities, wherein the physico chemical quantities comprise mass-, energy- and component flows, the edges linking ver tices, wherein the edges include a measurable tag for each of the represented physico chemical quantities, the measurable tag indicating if the physico chemi cal quantity may be measured in the process network, or if the physico chemical quantity may not be measured;

- categorizing the physico chemical quantities that may be measured in the process net work as observable physico-chemical quantities,

- categorizing physico chemical quantities that may be calculated from balance equations around vertices as observable physico-chemical quantities,

- generating based on the graph structure a collapsed graph structure by collapsing edges with physico chemical quantities that are not categorized as observable into collapsed vertices,

- the collapsed graph structure including,

• collapsed vertices representing virtual unit operations,

• vertices representing unit operations o edges representing only observable physico chemical quantities, linking col lapsed vertices and / or vertices,

- deriving a set of balance equations for each mass-, energy- or component flow around each vertex, the set of balance equations modeling the plant network, the set of balance equations being usable for monitoring, controlling, production planning, prediction models,

- providing the set of balance equations, to a control device, a monitoring, a production planner device and or a prediction model generator.

2. Method according to clause 1 , wherein the vertices further represent vertex meta data, comprising physical quantities linked to the respective unit operation.

3. Method according to any preceding clauses, wherein generating a collapsed graph struc ture comprises generating a collapsed graph for each physico-chemical quantity.

4. Method according to clause 3, wherein providing a set of balance equations from the col lapsed graph structure comprises providing a set of balance equation for each con-served quantity

5. The method according to any of the preceding clauses, wherein the step of collapsing edges is followed by selecting at least two vertices that are connected via edges collapsing edges between the at least two vertices, thereby creating a virtual vertex.

6. Method according to any of the preceding clauses wherein the step generating based on the first digital representation a graph structure further comprises generating a converged graph structure by attributing labels to all physico- chemical quantities dependent on whether they are measured physico-chemical quantities, deter-mined physico-chemical quantities, are measured and determined physico-chemical quantities or physico-chemical quantities that are neither measured physico-chemical quantities nor determined physico chemical quantities.

7. Method according to clause 7, further comprising receiving a trigger signal, wherein the method step of generating a converged graph structure is initiated upon evaluation of the trigger signal the trigger signal indicating that . 8. A system for generating a problem specific representation of a process network to enable controlling or monitoring a process network with at least two interconnected chemical plants, the system comprising

- a processor configured for o performing the method steps according to any of the clauses 1-7,

- an output interface for providing o the set of balance equations for monitoring and/or controlling operation of a pro-cess network.

9. Computer program product that when run on a computer performs the method steps of any of the method clauses 1-7.

10. A modeling system for generating a model representation of a process network with at least two interconnected chemical plants to enable controlling or monitoring the process network, the method comprising a processor and a communication interface, the proces sor configured to perform the steps of:

- providing via a communication interface to the processor a digital representation of the pro cess network comprising o a digital process representation of each plant, o its connections to other plants (realized by mass or energy flow in the descrip tion) and sensor elements placed in the process network,

- generating at the processor based on the first digital representation a graph structure in cluding o vertices representing unit operations, o edges representing physico chemical quantities, wherein the physico chemical quantities comprise mass-, energy- and component flows, the edges linking ver tices, wherein the edges include a measurable tag for each of the represented physico chemical quantities, the measurable tag indicating if the physico chemi cal quantity may be measured in the process network, or if the physico chemical quantity may not be measured;

- categorizing with the processor the physico chemical quantities that may be measured in the process network as observable physico-chemical quantities,

- categorizing with the processor physico chemical quantities that may be calculated from balance equations around vertices as observable physico-chemical quantities,

- generating with the processor based on the graph structure a collapsed graph structure by collapsing edges with physico chemical quantities that are not categorized as observable into collapsed vertices, - the collapsed graph structure including,

• collapsed vertices representing virtual unit operations,

• vertices representing unit operations o edges representing only observable physico chemical quantities, linking col lapsed vertices and / or vertices,

- deriving with the processor a set of balance equations for each mass-, energy- or com ponent flow around each vertex, the set of balance equations modeling the plant network, the set of balance equations being usable for monitoring, controlling, production planning, prediction models,

- providing via the communication interface the set of balance equations, to a control de vice, a monitoring, a production planner device and or a prediction model generator.

In a second aspect a method for monitoring a process network with at least two plants is pro posed, the method comprising the steps of:

- receiving a request for at least one process network operation parameter, via an input in terface

- retrieving via the input interface a system of balance equations from a collapsed graph structure of the process network,

- retrieving historical data related to measured physico-chemical quantities and metadata related to the at least one process network operation parameter from a data-base,

- receiving current data related to observable physico-chemical quantities and metadata for observable physico-chemical quantities,

- determining a value for the at least one process network operation parameter by solving the system of balance equations based on the historical data and the current data,

- providing via an output interface the value of the for at least one process network opera tion parameter.

The system of balance equations from a collapsed graph structure of the process network de rived by the method of any of clauses 1 to 7 from the first aspect

An input interface may be a physical interface (e.g. a keyboard, a mouse, a touch screen, a touch pad) or a non-physical interface (e.g. function call, API) it may also be a combination of physical and non-physical interfaces. An output interface may be a physical interface (e.g. screen, a monitor) or a non-physical inter face (e.g. function call, API) it may also be a combination of physical and non-physical interfac es.

Metadata for observable physico-chemical quantities may refer to additional information related to the observable physico-chemical quantities (e. g. location of a sensor, time stamp)

The at least one process network operation parameter refers to an operating parameter that is intended to be monitored. This process network operation parameter may be any observable selected physical quantity in the collapsed graph structure or any performance metric that can be derived from these selected observable physico-chemical quantities. The at least one pro cess network operation parameter, may reflect the operation parameter at a specific point in time, this may be the current one, and at a specific point in the process network, e.g. a specific unit operation. The at least one process network operation parameter may be a temperature, a concentration, a total mass flow, or any performance metric derived thereof.

The proposed method provides a fast and reliable way of monitoring a process network with at least two plants which would otherwise not be possible. The provided set of balance equations greatly reduces complexity in generating a suitable model. By specifying quantities of main in terest, the model can be reduced to the least complex viable model for observing these quanti ties. Therefore, computation times are greatly reduced, because only balance equations need to be solved. This leads to a reduced lag time in monitoring. A short lag time is crucial for monitor ing and/or controlling a process network with at least two interconnected plants.

Historic data may refer to data from a recent to history meaning enough data to be able to per form a significant stationarity test.

The step of providing a system of balance equations may also comprise providing a collapsed graph structure. By that the system of balance equations can be generated from the current col lapsed graph structure. This may be beneficial in an environment, where the collapsed graph structure changes.

Providing the system of balance equations from the collapsed graph may only be performed, when the value of the at least one process network operation parameter cannot be directly be retrieved as an observable from the database. This increases the speed of determining the val ue of the at least one process network operation parameter, because the value can directly be. Observables and metadata related to the at least one process network operation parameter are observables and metadata that are needed to determine the value of the at least one process network operation parameter.

The step of retrieving historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a database may comprise retrieving time series data.

Determining a value for the at least one process network operation parameter by solving the system of balance equations may be performed by solving the set of balance equations as an optimization problem. Solving the set of balance equations as an optimization problem, com prises minimizing an error that reflects the deviation from zero in a specific balance equation. A set of balance equations may be provided for each conserved quantity. Then an error may be de-fined for each set of balance equations for the respective conserved quantity. The optimiza tion problem is then to minimize all errors off all sets of balance equations.

Solving the set of balance equations as an optimization problem has the advantage that and un certainties in observable physico-chemical quantities are considered. These uncertain-ties may be results of e.g sensor noise, sensor failures, erroneous meta data. Consequently, the method is more robust.

The method may further comprise performing a stationary test on the observable selected phys ico-chemical quantities and metadata related to the at least one process network operation pa rameter from a database.

An algorithm for performing a stationary test on time series data is described by Levente et al. (AIChE Journal, 2018, Vol. 00, No. 00, p 1-12).

The concept of describing the process network in form of balance equations is only applicable when the process network is in a stationary state. Applying a stationary test has the advantage that only stationary states are considered Applying the stationary test hast the further advantage to ensure that the system to be monitored is currently in a stationary state. A signal may be generated, if the stationary test reveals that the current state of the process network is not sta tionary. This signal may be an alarm signal and may be provided to a plant network control cen ter. The alarm signal may shut down of one plant or trigger shut down of the process network. The stationarity test includes time series analysis based on volatility (typical models from fi nance) or activity (a custom metric derived from near zero variance test, made scalable by ap- plying hyper log-log algorithm). Additional tests are performed to detect outliers and anomalies based on models derived from the historical data set.

The step of retrieving observables and metadata related to the at least one process network op eration parameter may further comprise a step data reconciliation and/or gross error detection. Methods for data reconcialation and/or gross error detection are for example described in Yuan Yuan et al. (AICH E Journal, Vol. 61 , No. 10, p.3232-3248).

Data reconciliation addresses random noise on observable physico-chemical quantities which may be results of fluctuations or noise on the sensor signal that is used to determine or meas ure the respective observable physico-chemical quantity.

The use of data reconciliation has the advantage that accurate and reliable information about the state of processes network is extracted and a single consistent set of data representing the most probable state of the process network.

The use of gross error detection also has the advantage that accurate and reliable information about the state of processes network is extracted and a single a single consistent set of data rep-resenting the most likely state of the process network.

Gross error detection has the further advantage that gross errors may become apparent and therefore, may be detected. Detection of a gross error may generate a gross error signal.

The gross error signal may be provided to a control center of the process network.

The gross error signal may further trigger generating a converged graph structure.

The gross error signal may directly be the trigger signal

Alternatively, the gross error signal may be provided to a watchdog device which then gener ates the trigger signal.

The step of performing a consistency check allows. To assess whether the retrieved historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter may be confirmed as consistent.

Consistency is only confirmed, when both physico-chemical quantities are identical. Identical means that they are identical within error margins or when the residual between the respective selected pyhsico-chemical quantities is below a threshold or when the residual be-tween the respective selective quantities only shows random noise. A consistency signal may be generat ed depending on the result of the consistency check. The consistency check may be performed by a watchdog device and the consistency signal may be used as the trigger signal which may then be used for triggering generation a converged graph structure.

Alternatively, the consistency check signal may be provided to a watchdog device which then generates the trigger signal.

The trigger signal may be provided by a watchdog device. The watchdog device may monitor the process network for detecting changes in the process network. Upon detection of changes in the process network, generating a converged graph structure may be initiated.

The second aspect is also reflected in the following clauses:

1. A method for monitoring a process network with at least two plants, the method compris ing the steps of:

- receiving a request for at least one process network operation parameter, via an input in terface

- retrieving via the input interface a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices,

- retrieving historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a data-base,

- determining a value for the at least one process network operation parameter by solving the system of balance equations based on the historical data and the current data,

- providing via an output interface the value of the for at least one process network opera tion parameter.

2. The method of clause 1 , comprising a step of performing a stationary test.

3. The method of any of the preceding clauses, comprising a step a step of data reconcilia tion and/or gross error detection.

4. The method of any of the preceding clauses, comprising the step of a consistency check.

5. The method of any of the preceding clauses wherein the at least one process network op erating parameter comprises at least two or more process network operation parameters. 6. The method of clause 5, wherein providing via an output interface the values of the at least two or more process network operation parameters

7. The method of any preceding clauses, further performing the step of receiving current da ta related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter.

8. A system for monitoring a process network with at least two plants, the system compris ing:

- an input interface for o receiving a request for at least one process network operation parameter o retrieving a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices, o retrieving historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a database,

- an output interface for o providing the value of the for at least one process network operation parame ter, and

- a processor for performing the method steps according to any of the clauses 1 to 7.

9. Computer program product that when run on a computer performs the method steps of any of the method clauses 1-7.

In a Third aspect a method for controlling a process network with at least two plants is pro posed, the method comprising the steps of:

- receiving via an input interface a request for at least, one optimization objective by speci fying at least one process parameter to be optimized.

- retrieving via the input interface a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices,

- retrieving from a database historical data, the historical data related to observable physi co-chemical quantities and metadata related to the at least one process network operation parameter to be optimized,

- determining a value for the at least one process network operation parameter to be opti mized by solving the system of balance equations - providing via an output interface the value of the for at least one process network opera tion parameter.

The system of balance equations from a collapsed graph structure of the process network de rived by the method of any of clauses 1 to 7 from the first aspect

The step of providing a system of balance equations may also comprise providing a collapsed graph structure. By that the system of balance equations can be generated from the current col lapsed graph structure. This may be beneficial in an environment, where the collapsed graph structure frequently changes.

The step of determining a value for the at least one process network operation parameter to be optimized by solving the system of balance equations may be preceded by defining an optimiza tion objective function. The optimization objective function may be a value for the at least one process network operation parameter to be optimized or a deviation of a value for the at least one process network operation parameter to be optimized from a target value.

The step determining a value for the at least one process network operation parameter to be optimized by solving the system of balance equations may then be reduced to solving the sys tem of balance equations from a collapsed graph structure of the process network, with observ able physico-chemical quantities on edges and their relation to the vertices by minimizing an objective function and use as a constraint that the balance equations are best fulfilled. Solution for optimization problems are described in Books, (e.g. https://www.springer.com/de/book/9780387303031).

The step of receiving current data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter to be optimized ena bles in process control of the plant network.

Observables and metadata related to the at least one process network operation parameter to be optimized are observables and metadata that are needed to determine a value for the at least one process network operation parameter to be optimized by solving the system of bal ance equations. The step of retrieving historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a database may comprise retrieving time series data.

Determining a value for the at least one process network operation parameter to be optimized by solving the system of balance equations may be performed by solving the set of balance equa-tions as an optimization problem. Solving the set of balance equations as an optimization prob-lem, comprises minimizing an error that reflects the deviation from zero in a specific bal ance equation. A set of balance equations may be provided for each conserved quantity. Then an error may be defined for each set of balance equations for the respective conserved quanti ty. The optimization problem is then to minimize all errors off all sets of balance equations i.e. con-straint violation.

Solving the set of balance equations as an optimization problem has the advantage that and un certainties in observable physico-chemical quantities can be considered. These uncertainties may be results of e.g sensor noise, sensor failures, erroneous meta data - e.g. wrong unit sof measurement. Consequently, the method is more robust.

The method may further comprise performing a stationary test on the observable selected phys ico-chemical quantities and metadata related to the at least one process network operation pa rameter to be optimized from a database.

An algorithm for performing a stationary test on time series data is described by Levente et al. (AIChE Journal, 2018, Vol. 00, No. 00, p 1-12).

The concept of describing the process network in form of balance equations is only applicable when the process network is in a steady state. Applying a stationary test has the advantage that only stationary states are considered. Applying the stationary test has the further advantage to ensure that the system to be monitored is currently in a stationary state. A signal may be gener ated, if the stationary test reveals that the current state of the process network is not stationary. This signal may be an alarm signal and may be provided to a plant network control center. The alarm signal may shut down of one plant or trigger shut down of the process network.

The stationarity test includes time series analysis based on volatility (typical models from fi nance) or activity to detect outlier and anomalies based on dynamics in time constants derived from the historical data set. The step of retrieving observables and metadata related to the the at least one process network operation parameter to be optimized may further comprise a step data reconciliation and/or gross error detection.

Methods for data reconcialation and/or gross error detection are for example described in Yuan Yuan et al. (AICH E Journal, Vol. 61 , No. 10, p.3232-3248).

Data reconciliation addresses random noise on observable physico-chemical quantities which may be results of fluctuations or noise on the sensor signal that is used to determine or meas ure the respective observable physico-chemical quantity.

The use of data reconciliation has the advantage that accurate and reliable information about the state of processes network is extracted and a single a single consistent set of data repre senting the most probable state of the process network.

The use of gross error detection also has the advantage that accurate and reliable information about the state of processes network is extracted and a single a single consistent set of data rep-resenting the most probable state of the process network.

Gross error detection has the further advantage that gross errors may become apparent and therefore, may be detected. Detection of a gross error may generate a gross error signal.

The gross error signal may be provided to a control center of the process network.

The gross error signal may further trigger generating a converged graph structure.

The gross error signal may directly be the trigger signal

Alternatively, the gross error signal may be provided to a watchdog device which then gener ates the trigger signal.

The step of performing a consistency check allows. To asses if the provided whether the re trieved historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter may be confirmed as consistent. Consistency is only confirmed, when measured and determined physico-chemical quantities are identical. Identical means that they are identical within error margins or when the residual be tween the respective selected pyhsico-chemical quantities is below a threshold or when the re sidual between the respective selective quantities only shows random noise. A con-sistency signal may be generated depending on the result of the consistency check.

The consistency check may be performed by a watchdog device and the consistency signal may be used as the trigger signal which may then be used for triggering generation a converged graph structure. Alternatively, the consistency check signal may be provided to a watchdog device which then generates the trigger signal.

The trigger signal may be provided by a watchdog device. The watchdog device may monitor the process network for detecting changes in the process network. Upon detection of changes in the process network, generating a converged graph structure may be initiated.

The process parameter to be optimized may include plant output, energy consumption, C02 emission.

The step of specifying a further constraining objective for the system of balance equations. Has the advantage that further available information can be used in the optimization problem. Add ing additional information will increase the reliability of controlling

When the further constraining objective for the system of balance equations comprises a model of at least one plant of the plant network, this has the additional advantage that Determining optimized operating parameters for the optimization objective from the retrieved observables by solving the system of balance equations under evaluation of the constraint may further comprise a further constraint provided by a data driven model or a hybrid model. The data driven model may be generated according to the method of the fourth aspect.

The process network may limited by physical limitations. By adding further constraining objec tive for the system of balance equations relates to physical limitations of the process, this can be reflected in the optimization step. Physical limitations of the process network may include feed capacity, storage capacity, cooling capacity, safety constraints.

The at least one optimization objective by specifying at least one process parameter to be opti mized may comprise least two or more process parameters to be optimized.

The third aspect is also reflected in the following clauses:

1. A method for controlling a process network with at least two plants, the method compris ing the steps of:

- receiving via an input interface a request for at least one optimization objective by specify ing at least one process parameter to be optimized,

- retrieving via the input interface a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices,

- retrieving from a database historical data, the historical data related to observable physi co-chemical quantities and metadata related to the at least one process network operation parameter to be optimized, - determining a value for the at least one process network operation parameter to be opti mized by solving the system of balance equations

- providing via an output interface the value of the for at least one process network opera tion parameter to be optimized.

2. The method of clause 1 , further comprising the step of receiving current data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter to be optimized.

3. The method of any of the preceding clauses, wherein retrieving observables and metada ta if followed by a step of performing a stationary test.

4. The method of any of the preceding clauses, wherein retrieving observables and metada ta comprises a step of data reconciliation and/or gross error detection.

5. The method of any of the preceding clauses, wherein the method further comprises the step of specifying a further constraining objective for the system of balance equations.

6. The method of any of the preceding clauses, wherein the further constraining objective for the system of balance equations comprises a model of at least one plant of the plant net work.

7. The method of clause 6, wherein the model of the at least one plant of the plant network comprises a data driven model or a hybrid model based on a data driven model and a rig orous model

8. The method of clause 7, wherein the model relates the input of a plant or process network to the output of a plant or the process network

9. The method of clause 5, wherein the further constraining objective for the system of bal ance equations relates to physical limitations of the process.

10. The method of any of the preceding clauses wherein the at least one optimization objec tive by specifying at least one process parameter to be optimized comprises at least two or more process parameters to be optimized. 11. A system for controlling a process network with at least two plants, the system compris ing:

- an input interface for o receiving a request for at least one optimization objective by specifying at least one process parameter to be optimized and o retrieving a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices

- an output interface for o providing the value of the for at least one process network operation parameter to be optimized

- a processor configured to o perform the method steps according to any of the clauses 1 -10.

12. Computer program product that when run on a computer performs the method steps of any of the method clauses 1-10.

In a fourth aspect a method for generating a hybrid model to monitor and/or control a process network with at least two plants connected to each other is proposed, the method comprising the steps of:

- providing a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices,

- receiving via an input interface at least one objective specifying at least one process pa rameter dependency to be trained

- retrieving via an input interface historical data of the process network with at least two plants connected to each other,

- training of a hybrid model, including the system of balance equations and a data-driven model based on the historical data and on the least one objective specifying at least one process parameter dependency to be trained, providing the trained hybrid model via an output interface.

The system of balance equations from a collapsed graph structure of the process network de rived by the method of any of clauses 1 to 7 from the first aspect Retrieving historical data of the process network with at least two plants connected to each oth er may comprise retrieving only historical data related to the least one objective specifying at least one process parameter dependency to be trained. This leads to a reduced data set, com pared to the full set of historical data. This reduces the time of retrieving data, as only a subset of the available data is retrieved. This in turn leads to a faster training process.

In production process environment it is difficult to provide large data sets that allow reliable train-ing of data driven models. The size of a required data set increases, with the number of depend-encies that is to be learned. The step of receiving via an input interface at least one objective specifying at least one process parameter dependency to be trained addresses that issue. By receiving least one objective specifying at least one process parameter dependency to be trained, the scope of the training process is limited, thus it is possible to work with a re duced set of training data and therefore train the hybrid model faster.

One way of retrieving of determining the relevant data would be to start with the collapsed graph structure that fully describes the system with all observables. In a next step measured signals may be removed. In a next step all selected physical quantities may be labeled. This may be repeated as long as all of the physico-chemical quantity remain observable. By this the smallest data set required for training the hybrid model according to the at least one objective specifying at least one process parameter dependency to be trained.

For machine learning historical data needs to be provided. This data may be retrieved from data bases. Data for each plant may be stored separately in a corresponding data base for each plant. Alternatively, data for all plants may be stored in an enterprise database, which may be provided as a cloud service.

Historical data may comprise time series for measured values and/or observables. Generally, the historical data comprise various states of the production plant or the network of production plants. These states may comprise amongst other things, a steady-state, a start-up state, a shut-down state and an error state.

The method may further comprise the step of performing a stationary test on the observable physico-chemical quantities and metadata related to the at least one process network operation parameter from a database.

The concept of describing the process network in form of balance equations is only applicable when the process network is in a stationary state. Applying a stationary test to the historical da ta has the advantage that only stationary states are considered. An algorithm for performing a stationary test on time series data is described by Levente et al. (AIChE Journal, 2018, Vol. 00, No. 00, p 1-12) disclose a statistical framework to systematically determine mean stationary in the context of continuous manufacturing processes.

For monitoring and or controlling a plant or a plant network, the steady state is of major interest. Consequently, the time series data related to a steady state of the production process needs to be determined.

This may be done by stationary or event analysis. Stationary data are related to a steady state of a production process This allows to inspect the time series data and classify data in station ary and non-stationary, the non-stationary data may relate to ramp-up states, ramp down states, on/off states or error states and be labeled accordingly. Specifically, several segemnts of a pro cess may be analyzed independently, and labels aggregated to plant level. As one part of the process may in fact be stationary, while other are not. Depending on the targeted least one pro cess network operation parameter, constraints on stationarity may be relaxed for certain parts of the process. The time series data will then be separated according to their label. The data sets for each label may then be further separated into respective training and test data sets.

Since the balance equations require a stationary system only stationary data points are useful. Here all those data clusters which were recorded under stationary operating conditions are fil tered. Any anomalies shut down periods or other non-stationary segments in the data set are removed. The stationarity test may include time series analysis based on volatility (typical mod els from finance) or activity to detect outlier and anomalies based on dynamics in time constants derived from the historical data set. Such stationarity analysis allows to reduce the historical data set to such data that represents normal operating conditions in the process network. This restricts the historical data to stationary and / or cyclic stationary operating conditions.

Following the stationarity test the historical data set may be further enhanced by data validation and data reconciliation. This further consolidates the historical data set. Finally only the consoli dated historical data set may be used for training the hybrid model.

Preparing the historical data in such a way provides a clean data set reflecting true process con-ditions in the process network. Any effects of non-stationary operating conditions, gross errors or random errors are reduced. As a result, any hybrid model trained based on such clean data will not be affected by such effects.

Providing the trained hybrid model may comprise providing a rigorous model based on pyhsico- chemical laws and providing a data driven model based on historical data.

The major advantages of combining a flexible model from a graph structure data base with a data driven model into a hybrid model: - that the flexible graph structure allows an adaption of the rigorous model to the current state of the process network, including accounting for errors, while maintaining the trained model. Consequently, retraining of the model remains vastly unnecessary even in case of errors in the process network.

- since the rigorous model is not able to take environmental such as seasonal effects into account, the data driven part adds accuracy to the rigorous model and thus correcting any deficiencies

- depending on the input/output structure of the hybrid model, the graph data base and the extracted model may be used to calculated missing data points on the input part of the hybrid model

- the modelling approach is further scalable and may be extended from multiple plants via full Verbund or plant complexes to value chains

- once the hybrid model is generated it allows to closely control a full process network e.g. on a daily basis dependencies between components of the process network can easily be captured via the base graph structure allowing for more accurate prediction.

The use of the hybrid model is to provide recommendation on how to operate the process net work. For example, the hybrid model may provide recommendations on plant flows for specific objective. From such flows concrete operating parameters on plant level may be determined. Additionally, the hybrid model may be used to detect anomalies based on real-time sensor data. In such a case the output of the hybrid model may be compared to real-time sensor data. In case of significant differences, a notification or alarm may be triggered in the affected plants or may be used for root cause analytics.

Conversely any differences detected between the hybrid model output and the real-time sensor data over time may provide indications on model drift. If such drift is detected, the model may be re-trained based on more recent historical data or elements of the base graph structure are up dated to built a new rigorous model considering such changes.

The following description relates to the system, the method, the computer program, the com puter readable storage medium lined out above. In particular the systems, the computer pro grams and the computer readable storage media are configured to perform the method steps as set out above and further described below.

In the context of the present invention a plant may refer any facility in which a particular product is made or power is produced. In the context of the present invention chemical plant refers to any manufacturing facility based on chemical processes, e.g. transforming a feedstock to a product using chemical processes. In contrast to discrete manufacturing, chemical manufacturing is based on continuous or batch processes. As such monitoring and/or controlling of chemical plants is time dependent and hence based on large time series data sets. A chemical plant may include more than 1.000 sen sors producing measurement data points every couple of seconds. Such dimensions result in multiple terabytes of data to be handled in a system for controlling and/or monitoring chemical plants. A small-scale chemical plant may include a couple of thousand sensors producing data points every 1 to 10s. For comparison a large-scale chemical plant may include a couple of ten- thousand sensors, e.g. 10.000 to 30.000, producing data points every 1 to 10s. Contextualizing such data results in the handling of multiple hundred gigabytes to multiple terabytes.

Chemical plants may produce a product via one or more chemical processes transforming the feedstock via one or more intermediate products to the product. Preferably a chemical plant provides an encapsulated facility producing a product, that may be used as feedstock for the next steps in the value chain. Chemical plants may be large-scale plants like oil and gas facili ties, gas cleaning plants, carbon dioxide capture facilities, liquefied natural gas (LNG) plants, oil refin-eries, petro-chemical facilities or chemical facilities. Upstream chemical plants in petro chemicals process production for example include a steamcracker starting with naphtha being processed to ethylene and propylene. These upstream products may then be provided to further chemical plants to derive downstream products such as polyethylene or polypropylene, which may again serve as feedstock for chemical plants deriving further downstream products. Chem ical plants may be used to manufacture discrete products. In one example one chemical plant may be used to manufacture precursors for polyurethane foam. Such precursors may be pro vided to a second chemical plant for the manufacture of discrete products, such as an isolation plate comprising polyurethane foam.

The value chain production via various intermediate products to an end product can be decen tralized in various locations or integrated in a Verbund site or a chemical park. Such Verbund sites or chemical parks comprise a network of interconnected chemical plants, where products manufactured in one plant can serve as a feedstock for another plant.

Chemical plants may include multiple assets, such as heat exchangers, reactors, pumps, pipes, distillation or absorption columns to name a few of them. In chemical plants some assets may be critical. Critical assets are those, which when disrupted critically impact plant operation. This can lead to manufacturing processes being compromised. Reduced product quality or even manufacturing stops may the result. In the worst-case scenario fire, explosion or toxic gas re- lease may be the result of such disruption. Hence such critical assets may require more rigor ous monitoring and/or controlling then other assets depending on the chemical processes and the chemicals involved. To monitor and/or control chemical processes and assets multiple ac tors and sensors may be embedded in the chemical plant. Such actors or sensors may provide process or asset specific data relating to e.g. the state of an individual asset, the state of an individual actor, the composition of a chemical, or the state of a chemical process. In particular, process or asset specific data include one or more of the following data categories: process operation data, such as composition of a feedstock or an intermediate product, process monitoring data, such as flow, material temperature, asset operation data, such as current, voltage, and asset monitoring data, such as asset temperature, asset pressure, vibrations.

The fourth aspect is also reflected in the following clauses:

1. A method for generating a hybrid model to monitor and/or control a process network with at least two plants connected to each other, the method comprising the steps of:

- providing a system of balance equations from a collapsed graph structure of the process network, with observable physico-chemical quantities on edges and their relation to the vertices,

- receiving via an input interface at least one objective specifying at least one process pa rameter dependency to be trained

- retrieving via an input interface historical data of the process network with at least two plants connected to each other,

- training of a hybrid model, including the system of balance equations and a data-driven model based on the historical data and on the least one objective specifying at least one process parameter dependency to be trained,

- providing the trained hybrid model via an output interface

2. The method of clause 1 , comprising a further step of performing a stationary test on the historical data of the process network.

3. The method according to any of the preceding clauses , comprising a further step of data reconciliation and/or gross error detection.

4. The method of any of the preceding clauses, wherein the hybrid model further comprises a rigorous model, reflecting physico chemical laws. 5. A system for generating a hybrid model to monitor and/or control a process network with at least two plants connected to each other, comprising

- an input interface for receiving one objective specifying at least one process parameter dependency to be trained

- an output interface for providing the trained hybrid model

- a processor configured to perform o the method of any of clauses 1 -4.

6. A computer program product, that when run on a computer performs the method of any of clauses 1-4.

The disclosure applies to the systems, methods, computer programs, computer readable non- transitory media, computer program products disclosed herein alike. Therefore, no differentia tion is made between systems, methods, computer programs, computer readable non-volatile storage media or computer program products. All features are disclosed in connection with the systems, methods, computer programs, computer readable non-transitory storage media, and computer program products disclosed herein.

DETAILED DESCRIPTION

Figure 1 shows a process network of two plants, with a first plant A 10 and a second Plant B 20, the two plants are interconnected by a product transportation system 30.

A simplified flow chart of plant A 10 is shown in figure 2. This simple flow chart is a digital pro cess representation of the first plant A.

In this case the plant is a simplified ammonia production plant 100. A product supply 110 pro vides educts to a mixer 120, a pipe system 130 then transports a stream of mixed educts to a reactor 140, where a reaction takes place. Heat exchanger 140 liquifies a reaction product prior to separation. After the reaction Amonia is separated from residuals, in a separator 150. The product is provided to a transportation system 30 via product pipe 150. The residual is provided to a splitter via residual pipe 170, which provides a portion of the residual back to the mixer and another part of the residual is provided to a further location. In this example a temperature sen sor 180, a pressure sensor 190 and a volume flow sensor 195 are provided on residual pipe 170. Figure 3 shows a graph structure 200 of the first plant. Each vertex 2xx in this graph structure represent a unit operation. Vertex 210 represents unit operation of the mixer, Vertex 220 repre sents unit operation unit operation of the reactor, vertex 320 represents unit operation unit op eration of the heat exchanger, vertex 240 represents unit operation unit operation of the separa tor and vertex 250 represents unit operation unit operation of the splitter. An additional vertex 260 - the environment vertex - is added to the graph structure. This vertex serves as a sink and as a source and secures that the graph structure represents a self-contained system. Describ ing a plant as a self-contained system has the advantage that the conservation rules of physics apply.

Edges link vertices. The edges represent at least physico-chemical quantities and metadata rep-resenting at least physico-chemical quantities and a measurable tag.

In case of the edges 415, 425, 435 around unit vertex 240. These physico-chemical quantities- physico-chemical quantities comprise that the total massflow going into vertex 240 which is rep resented as a selected physcico-chemical quantity on edge 415 is equal to the sum of mass flows represented by edges 425 and 435 going out of vertex 240.

The edges 415, 425, 435 also include meta data representing at least selected physical quanti ties.

One physico-chemical quantity represented in the meta data of edge 415 is the total massflow into unit operation 240. One physico-chemical quantity represented in the meta data of 435 is the mass of NH3 going out of unit operation 240. One physico-chemical quantity represented in the meta data of edge 425 is the mass of the combined residual in this example N2 and H2. Further physico-chemical quantities included in represented in the meta data of edge 425 are values from the temperature sensor, the pressure sensor 190 and the flow sensor 195, namely pressure P, temperature T und volume flow F of the residual.

The meta data also include a measurable tag. On edge 425 P,T and F will be tagged measura ble.

A further physico-chemical relation that is represented by the edge 425 is the relation that the massflow for the residual can be determined from P, T and F.

Under this condition only one of the massflows represented by edge 415 and edge 435 have to be measured to determine the other.

By evaluating all physico-chemical quantities and all physico-chemical quantitiesphysico- chemical quantities using the meta data on edges we can generate a new graph. An example of such a new graph struc-ture is shown in figure 4a. 300 represents a graph with vertices 310-350. In this example one physico-chemical quantity (assume total massflow) on all edges is measured and/or determined using physico-chemical quantitiesphysico-chemical quantities.

This means that this physico-chemical quantities are observable.

The generated collapsed graph structure 400 does not change as can be seen in Fig. 4 b.

Figures 5 a and 5 b show an alternative graph structure the graph structure where one physico chemical quantity is only measured and/or determined on edges 515, 555 and remains un known on edges 525, 535, 545, then a collapsed graph structure 600 is generated, which only contains edges, where the physico-chemical quantity is observable.

Dependent on the physico-chemical quantity starting from an identical graph structure 400 and 500, the collapsed graph structure may be different. Hence, a collapsed graph for each physico chemical quantity is generated.

Figure 6 shows a network of to plants, each plant is shown as a graph structure 2000, 3000. Feeds for the first plant are shown as 2100, 2200. A river 4000 serves as a water supply for cool-ing. Cooling water is provided to the vertex 2300 representing a unit operation. A product 2900 is generated in the first plant. Waste 2800 is also generated in the first plant. The waste of the first plant serves as a feed for the second plant. The waste is provided to the vertex 3200, a second feed 3500 is provided to the second plant. The second plant provides an output product at 3800. The distribution of product 2900 to waste 2800 may be dependent on various process parame-ters, which in turn influences the product output at 3800. In this example the process parameter to be trained relates to mass flow at output 3800. Massflow at output 3800 is a func tion of tem-perature of the water of the river. In general this is not a relation that can be solved by a rigorous model. In this case, a hybrid model may be trained, based in historical data of the first plant.

Figure 7 shows depicts the method 5000 of the first aspect.

At first method step 5100, a first digital representation of the process network including a digital process representation of each plant, its connections to other plants and sensor elements placed in the process network, is provided. The digital process representation of each plant may be according to figure 2.

At step 5200 a graph structure is generated based on the first digital representation. The graph structure including o vertices representing unit operations, o edges linking unit operations representing conserved quantities, wherein the edg-es include edge meta data representing physico chemical quantities, and a measurable tag

At step 5300 a collapsed graph structure including, o vertices representing virtual unit operations, o edges linking virtual unit operations representing at least physico-chemical rela tions, wherein the edges include edge meta data representing observable phys ico chemical quantities, and their relation to vertices, is generated generating based on the graph structure generated at step 5200.

At step 5400 a set of balance equations from the collapsed graph structure is derived.

At step 5500 the set of balance equations, and physico-chemical quantitiesphysico-chemical quantities for monitoring and/or controlling operation of a process network is provided.

Figure 8 shows the method 6000 of the second aspect.

At step 6100 a request for at least one process network operation parameter, via an input inter face is received

At step 6200 a set of balance equations, and physico-chemical quantitiesphysico-chemical quantities a collapsed graph struc-ture is retrieved via the input interface At Step 6300 historical data related to observable physico-chemical quantities and metadata related to the at least one process network operation parameter are retrieved from a database, At step 6400 a value for the at least one process network operation parameter by solving the system of balance equations based on the historical data and the current data, is determined

At step 6500 the value of the for at least one process network operation parameter is provided via an output interface.

Figure 9 shows the method 7000 of the third aspect.

At step 7100 a request for at least one optimization objective by specifying at least one process parameter to be optimized, is received via an input interface.

At step 7200 a set of balance equations, and physico-chemical quantitiesphysico-chemical quantities a collapsed graph struc-ture, is received via an input interface. At Step 7300 historical data, the historical data related to observable physico-chemical quanti ties and metadata related to the at least one process network operation parameter to be opti mized, are retrieved from a database.

At step 7400 a value for the at least one process network operation parameter to be optimized by solving the system of balance equations is determining

At step 7500 the value of the for at least one process network operation parameter to be opti mized is provided via an output interface.

Figure 10 shows the method 8000 of the fourth aspect. At step 8100 a set of balance equations, and physico-chemical quantities a collapsed graph structure, is received via the input interface.

At step 8200 at least one objective specifying at least one process parameter dependency to be trained is received via an input interface.

At step 8300 historical data of the process network with at least two plants connected to each other, are retrieved via an input interface

At step 8400 training of a hybrid model, including the system of balance equations and a data- driven model based on the historical data and on the least one objective specifying at least one process parameter dependency to be trained, is performed At step 8500 the trained hybrid model is provided via an output interface.