Multi-scale process model description by generalized hierarchical CPN models. E. Németh, K. M. Hangos

Size: px
Start display at page:

Download "Multi-scale process model description by generalized hierarchical CPN models. E. Németh, K. M. Hangos"

Transcription

1 Multi-scale process model description by generalized ierarcical CPN models E. Német, K. M. Hangos Researc Report SCL-002/2004

2 Researc Report SCL-002/ Contents 1 Introduction 2 2 Coloured Petri nets (CPNs) Coloured Petri nets Generalized ierarcical coloured Petri nets Introduction to ierarcical coloured Petri nets Formal definition of generalized ierarcical coloured Petri nets Instances Examples for te CPN ierarcies Substitution nodes Invocation nodes Fusion sets Case study Te countercurrent eat excanger: models of various levels of detail Te single cell model of te HE Cascade model of te HE Te CPN models of te countercurrent eat excanger Single cell models Cascade models Conclusion and future work 18 List of Figures 1 Substitution transition Substitution place Substitution place-transition Invocation transition Fusion sets Te diagram of te single cell countercurrent eat excanger Te cascade model of te eat excanger Te diagram of a eat excanger cell Te ierarcical CPN model of one cell eat excanger Te ierarcical CPN model of te cascade eat excanger Te CPN model of te cascade eat excanger after te substitutions

3 Researc Report SCL-002/ Abstract In tis paper we sow ow to extend coloured Petri nets (CPNs) wit a ierarcy concept. Te basic idea beind using ierarcical CPNs is to allow te modeller to construct a large model by using a number of small CPNs wic are related to eac oter in a well-defined way. We discuss seven different ways to relate submodels to eac oter, and tey are illustrated by examples. Te ierarcy constructions can be used for a simple countercurrent eat excanger. 1 Introduction Tis paper purposes a generalized definition of ierarcical coloured Petri nets (CPNs) for multi-scale process modelling purposes. It sows ow a set of subnets (called pages) can be related to eac oter in suc a way tat tey togeter constitute a single model [1]. Te basic idea is to allow te modeller to describe a set of submodels wic all contribute to a larger model, in wic te submodels interact wit eac oter in a well-defined way. Tis idea is well-known from oter kind of artificial languages. Te purpose is to break down te complexity of te large model by dividing it into a number of submodels. Te idea is most easily explained by proposing te notion of a substitution node, wic is a place or a transition or a combination of a place and a transition related to a submodel. Usually, te submodel totally replaces te substitution node and te surrounding arcs. Te paper describes 7 different ways to relate submodels to eac oter. Tese 7 ierarcy constructions are not at all independent and it is often possible to coose between tem, in order to fulfil a certain modelling goal. Tee proposed 7 ierarcy constructions are as follows: substitution transition, substitution place, substitution place-transition pair, invocation transition, invocation place, fusion place, fusion transition. Te concepts and notions are illustrated by using a simple process example: a countercurrent eat excanger model. 2 Coloured Petri nets (CPNs) In tis section, we summarize te basic notations found in te literature about coloured Petri nets and generalized ierarcical coloured Petri nets. For first, te general non-ierarcical coloured case will be considered, wile te second part concerns wit te various ierarcical Petri nets.

4 Researc Report SCL-002/ Coloured Petri nets Coloured Petri nets (CPNs) [2] belong to te area of discrete event system metodology. A CPN is well known for its capability in modelling discrete event systems. Te structure of a Petri net is a bipartite directed grap describing te structure of a discrete event system, wile te dynamics of te system is described by te execution of te Petri net. A Petri net is coloured if te tokens are distinguisable. According to te formal definition of CPNs [3] a coloured Petri net model is a nine-tuple satisfying te following requirements: CPN = (Σ, P, T, A, N, C, G, E, IN) (i) Σ is a finite set of non-empty types, called colour sets (ii) P is a finite set of places (iii) T is a finite set of transitions (iv) A is a finite set of arcs suc tat P T = P A = T A = (v) N : A P T T P is a node function (vi) C : P Σ is a colour function (vii) G is a guard function. It is defined from T into expressions suc tat t T : [Type(G(t)) = Bool Type(V ar(g(t))) Σ] (viii) E is an arc function. It is defined from A into expressions suc tat a A : [Type(E(a)) = C(p(s)) MS Type(V ar(e(a))) Σ] were p(a) is te place of N(a) and C MS denotes te set of all multi-sets over C (ix) IN is an initialization function. It is defined from P into expressions suc tat p P : [Type(IN(p)) = C(p(s)) MS V ar(in(p)) = ] were: Type(expr) denotes te type of an expression, V ar(expr) denotes te set of variables in an expression, C(p) MS denotes a multi-set over C(p). A binding of a transition t is a function b defined on V ar(t), suc tat: (i) v V ar(t) : b(v) Type(v), (ii) G(t) <b> denotes te evaluation of te guard expression G(t) in te binding b. A token element is a pair (p, c) were p P and c C(p). A binding element is a pair (t, b) were t T and b B(t). By B(t) denotes te set of all bindings for t. Te set of all token elements is denoted by TE wile te set of all binding elements is denoted by BE. A marking is a multi-set over TE wile a step is a non-empty and finite multi-set over BE. Te initial marking M 0 is te marking wic is obtained by evaluating te initialization expressions.

5 Researc Report SCL-002/ A transition is enabled if eac of its input places contain te multi-set specified by te input arc inscription (possibly in conjunction wit te guard), and te guard evaluates to true. Wen a transition is enabled it may occur, and tis means tat te tokens are removed from te input places and added to te output places of te occurring transitions. Te number and colour of te tokens are determined by te arc expressions, evaluated for te occurring bindings. A finite occurrence sequence is a sequence of markings and steps: M 1 [Y 1 M 2 [Y 2 M 3... M n [Y n M n+1, suc tat n N. A marking M is reacable from a marking M if and only if exists a finite occurrence sequence aving M as start marking and M as end marking, i.e., if and only if for some n N tere exists a sequence of steps Y 1 Y 2...Y n suc tat: M [Y 1 Y 2...Y n M. We ten also say tat M is reacable from M in n step. Te set of markings wic are reacable from M is denoted by [M. 2.2 Generalized ierarcical coloured Petri nets In tis subsection we sall see ow non-ierarcical CPNs can be extended to ierarcical nets, i.e., ow it is possible to construct a large CPN by combining a number of smaller nets by different several ierarcical constructions Introduction to ierarcical coloured Petri nets CPNs [3, 4] are capable of describing te dynamic beaviour of process systems and andle te ierarcy. Te basic idea beind using ierarcical CPNs [1, 5] is to allow te modeller to construct a large model by using a number of small CPNs wic are related to eac oter in a well-defined way. At one level, we want to give a simple description of te modelled activity witout aving to consider internal details about ow it is carried out. Moreover, we want to be able to integrate te detailed specification wit more crude descriptions and tis integration must be done in suc a way tat it is meaningful to speak about te beaviour of te complete net. Pages and teir instances We want to relate individual CPNs to nodes, wic are members of oter CPNs, and tis means tat our description will contain a set of non-ierarcical CPNs, wic we sall call pages. A diagram is a set of related non-ierarcical CPNs, called pages. A page may ave many different page instances. Tese page instances will ave teir own private markings, wic are independent of te markings of te oter instances (in a similar way tat eac procedure call as its own private copies of te local variables in te procedure). Eac ierarcical inscription in a CPN tells us te identity of te subpage, i.e. te page wic contains te detailed description of te activity modelled by te corresponding substitution node. Eac substitution node is said to be a supernode (of te corresponding subpage) wile te page of substitution node is a superpage (of te corresponding subpage). Page ierarcy To give an overview of te set of pages, we use a page ierarcy grap. Tis is a directed grap wic contains a node for eac page and an arc for eac direct superpage-subpage relationsip. Eac node is inscribed by te name of te corresponding page, wile eac arc is inscribed wit te names of te corresponding substitution or invocation nodes. Ellipse sape indicates tat all supernodes must be places, box sape tat tey must be transitions, exagon sape tat tey must be place-transition pair and rounded box sape tat tere is no restriction. Global fusion sets

6 Researc Report SCL-002/ are indicated in te page ierarcy, but page and instance fusion sets are not represented in te page ierarcy, because tey involve only a single page. Substitution nodes Te idea of substitution nodes is to allow te user to relate a node (and its surrounding arcs) to a more complex CPN, called subnet, wic usually gives a more precise and detailed description of te activity represented by te substitution nodes. Eac subnet as a number of places called port nodes and tey constitute te interface wit wic te subnet communicates wit its surroundings. A substitution node as some input nodes and some output nodes called input and output socket nodes, respectively. To specify te relationsip between a substitution node and its subnet, we must describe ow te port nodes of te subnet are related to te socket nodes of te substitution node. Tis is done by providing a port assignment. Wen a port node is assigned to a socket node, te two nodes become identical. Troug te input and output ports te subnet can be in communication wit its surroundings. Invocation nodes In contrast to substitution nodes, te invocation nodes are not substituted by teir subpage. Tis means tat tey can occur and eac of teir occurrences triggers te creation of a new instance of te subpage. Tese subpage instances are executed concurrently wit te oter page instances in te model, until some specified exit condition is reaced. Te termination of a recursive substitution is usually triggered by execution of te last statement or by an explicit exit statement. Te execution is terminated te first time an exit transition occurs or an exit place receives a token. Eac invocation node can ave any page as a subpage. Tis means tat te invocation ierarcy is allowed to contain circular (i.e. recursive) dependencies wile te substitution ierarcy is demanded to be acyclic (to avoid infinite substitution). Fusion sets Te main idea beind fusion is to allow te modeller conceptually to fold a set of nodes into a single node witout grapically aving to represent tem as a single object. A fusion is obtained by defining a fusion set containing an arbitrary number of places or an arbitrary number of transitions. Te nodes tat participate in suc a fusion set may belong to a single page or to several different pages. Tere are tree different kind of fusion sets: global fusion sets are allowed to ave members from many different pages, page fusion sets and instance fusion sets only ave members from a single page. A page fusion unifies all te instances of its nodes (independently of te page instance at wic te node instance appear). An instance fusion set only identifies node instances tat belong to te same page instance Formal definition of generalized ierarcical coloured Petri nets A ierarcical CPN consists of a set of subnets. Eac subnet s S is a non-ierarcical CPN, i.e., a tuple: (Σ s, P s, T s, A s, N s, C s, G s, E s, IN s ).

7 Researc Report SCL-002/ In ere we must to note tat a substitution or invocation node(s) sould not be considered as a normal node(s). Tese are special elements signifying wit special tags. Wen we talk about te elements of te entire ierarcical CPN, we use te following notations: Σ = s S Σ s, P = s S P s, T = s S T s, A = s S A s, were it sould be noted tat te sets of colour sets usually ave common elements, wile te sets of net elements (P s, T s, A s ) are required to be disjoint. X = P T is te set of nodes. X [X X S ] maps eac node x to te set of its surrounding nodes, i.e., te nodes tat are connected to x by an arc: X(x) = {x X a A : [N(a) = (x, x ) N(a) = (x, x)]}. In [X X S ] maps eac node x to te set of its input nodes, i.e., te nodes tat are connected to x by an arc: In(x) = {x X a A : N(a) = (x, x)}. Out [X X S ] maps eac node x to te set of its output nodes, i.e., te nodes tat are connected to x by an arc: Out(x) = {x X a A : N(a) = (x, x )}. ST(x 1, x 2 ), x 1 P, x 2 T is te socket type function, wic maps from pairs of socket nodes and substitution nodes into {in,out,i/o}. in if x 1 (In(x 2 ) Out(x 2 )), ST(x 1, x 2 ) = out if x 1 (Out(x 2 ) In(x 2 )), i/o if x 1 (In(x 2 ) Out(x 2 )) A generalized ierarcical coloured Petri-net is ten a tuple satisfying te following requirements: HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) (i) S is a finite set of pages (subnets) suc tat: Eac page s S is a non-ierarcical CPN: (Σ s, P s, T s, A s, N s, C s, G s, E s, IN s ). Te sets of net elements are pairwise disjoint: s 1, s 2 S : [s 1 s 2 (P s1 T s1 A s1 ) (P s2 T s2 A s2 ) = ]. (ii) SN T P (T P) (P T) is a set of substitution nodes. (iii) SA is a page assignment function. It is defined from SN into S suc tat: 1 Wen we allow invocation nodes: page is a subpage of itself: {s 0 s 1...s n S n N + s 0 = s n k N + : s k SA(SN sk 1 )}. Wen we do NOT allow invocation nodes: No page is a subpage of itself: {s 0 s 1...s n S n N + s 0 = s n k 1...n : s k SA(SN sk 1 )} =. (iv) PN P T is a set of port nodes. (v) P T is a port type function. It is defined from P N into {in, out, i/o}. 1 S denotes all finite sequences wit element from S.

8 Researc Report SCL-002/ (vi) PA is a port assignment function. It is defined from SN into binary relations suc tat: Socket nodes are related to port nodes : x SN : PA(x) X(x) PN SA(x). Socket nodes are of te correct type: x SN : (x 1, x 2 ) PA(x) : [PT(x 2 ) {in, out, i/o} ST(x 1, x) = PT(x 2 )]. Related nodes ave identical colour sets, equivalent initialization expressions, equivalent guards, equivalent arc expressions: (a) t SN T : (p 1, p 2 ) PA(t) : [C(p 1 ) = C(p 2 ) I(p 1 ) <> = I(p 2 ) <> ]. (b) p SN P : (t 1, t 2 ) PA(p) : [G(t 1 ) = G(t 2 ) A(t 1, p) = A(t 2, p) if PT(t 2 ) = in, A(p, t 1 ) = A(p, t 2 ) if PT(t 2 ) = out, ]. PT(t 2 ) = in PT(t 2 ) = out if PT(t 2 ) = i/o. (c) (p, t) SN and (t, p) SN : for t te (a) is required and for p te (b) is required. (vii) FS P s is a finite set of fusion sets suc tat: Members of fusion set ave identical colour sets and equivalent initialization expressions: fs FS : p 1, p 2 fs : [C(p 1 ) = C(p 2 ) I(p 1 ) <> = I(p 2 ) <> ]. (viii) FT is a fusion type function. It is defined from fusion sets into {global, page, instance} suc tat: Page and instance fusion sets belong to a single page: fs FS : [FT(fs) global s S : fs P s ]. (ix) PP S MS is a multi-set of prime pages Instances A page s S may ave many different page instances. Te set of page instances of a page s S is te set SI s of all triples (s, n, x 1 x 2...x m ) tat satisfy te following requirements: (i) s PP n 1... PP(s ). (ii) x 1 x 2...x m is a sequence of substitution nodes, wit m N, suc tat: m = 0 s = s m > 0 (x 1 SN s [k 2...m x k SN SA(xk 1 )] SA(x m ) = s). Page instances were te tird component is te empty sequence are said to be prime page instances, wile all oters are secondary page instances. Wen a page as several page instances, tese eac ave teir own instances of te corresponding places, transitions and arcs. However, it sould be noted tat substitution nodes and teir surrounding arcs do not ave instances because tey are replaced by instances of te corresponding direct subpages. Te set of place instances of a page s S is te set PI s of all pair (p, id) tat satisfy te following requirements: (i) p P s \ SN s. (ii) id SI s.

9 Researc Report SCL-002/ Some of te place instances are related to eac oter, because of te fusion sets and because of te port assignments. Two place instances (p 1, id 1 ) and (p 2, id 2 ) are related by a fusion set fs FS iff te following conditions are fulfilled: Te two original places must bot belong to fs, i.e. p 1, p 2 fs. Wen fs is an instance fusion set, te two place instances must belong to te same page instance, i.e. id 1 = id 2. Wen fs is a global fusion set or a page fusion set, tere is no restriction on te relation between id 1 and id 2. Analogously, two place instances (p 1, id 1 ) and (p 2, id 2 ) are related by te port assignment of a substitution transition t SN iff te following conditions are fulfilled: Te two original places must be related by te port assignment, i.e. (p 1, p 2 ) PA(t). Te page instance id 2 = (s 2, n 2, tt 2 ) of te port node p 2 must not be a prime page instance because of te existance of te substitution transition t on te page instance id 1 = (s 1, n 1, tt 1 ) of te socket node p 1. Tis means tat te two page instance must originate from te same prime page instance, i.e. tat (s 1, n 1 ) = (s 2, n 2 )- Moreover, id 2 must ave te same sequence of substitution nodes as id 1, expect tat t as been added, i.e. tt 1 t = tt 2, were denotes concatenation of sequences. Te set of transition instances of a page s S is te set TI s of all pair (t, id) tat satisfy te following requirements: (i) t T s \ SN s. (ii) id SI s. Te set of arc instances of a page s S is te set AI s of all pair (a, id) tat satisfy te following requirements: (i) a A s \ A(SN s ). (ii) id SI s. Eac place instance, transition instance and arc instance is said to belong to te page instance in its second component. We define token elements, binding elements, markings, steps, initial markings, reacability and occurrence sequences analogously to te corresponding concepts for non-ierarcical CPNs. 2.3 Examples for te CPN ierarcies In te following we sow some illustrative examples for te different types of CPN ierarcies. We ave omitted most of te oter net inscriptions, e.g. te initial markings, since we are focusing more on te net structure tan on te details of colour sets, arc expressions and guards, etc.

10 Researc Report SCL-002/ Substitution nodes Te relationsip between eac of te substitution nodes and te corresponding subpages is defined by te inscription next to te tag ( = Hierarcy + Substitution). Tis inscription tells te name of te subpage and it describes ow eac of te nodes surrounding te compound node is assigned to one of te border nodes of te subpage. Te interfaces of subnets are defined by te B-tags (B = Border) and te inscription (in, out, i/o) next to tem. Substitution transition Te page in te left part of Fig. 1 represents a supernet, and te subnet of te substituted transition an be see in te rigt part. Below it is sown ow te ierarcical CPN in Fig. 1 is represented as a many-tuple. To save space (and time) we don t give te tuple-definition of te individual pages. SuperPage#1 SubPage#2 PA B in PF B in PC B in PA PB PC T1 T2 T SubPage#2 PB PF PE PG PH PD PE PD B out T3 PG B out Figure 1: Substitution transition Te tuple HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) of te ierarcical CPN sown in Fig. 1 is defined as below: (i) S = {SuperP age#1, SubP age#2} (ii) SN = {T@SuperPage#1} (iii) SA(x) = SubPage#2 if x = T@SuperPage#1. (iv) PN = {PA@SubPage#2, PF@SubPage#2, PC@SubPage#2, PD@SubPage#2, PG@SubPage#2} { in if x {PA@SubPage#2, PF@SubPage#2, PC@SubPage#2} (v) PT(x) = out if x {PD@SubPage#2, PG@SubPage#2}. (vi) PA(x) = { (PA@SuperPage#1, PA@SubPage#2), (PB@SuperPage#1, PF@SubPage#2), (P C@SuperP age#1, P C@SubP age#2), (P D@SuperP age#1, P D@SubP age#2), (PE@SuperPage#1, PG@SubPage#2) } if x = T@SuperPage#1. (vii) FS = (viii) FT(fs) = global (ix) PP = 1`SuperPage#1. for all fs FS Substitution place Te page in te left part of Fig. 2 represents a supernet, and te subnet of te substituted place can be seen in te rigt part. Below we sow ow te ierarcical CPN in Fig. 2 is represented as a many-tuple. To save space (and time) we don t give te tuple-definition of te

11 Researc Report SCL-002/ SuperPage#3 SubPage#4 PI PJ PK B in B in T1 T2 T3 B in T1 T2 T3 PL PM P SubPage#4 T6 T7 T4 T5 PN PO PL T4 B out T5 B out Figure 2: Substitution place individual pages. Te tuple HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) of te ierarcical CPN sown in Fig. 2 is defined as below: (i) S = {SuperP age#3, SubP age#4} (ii) SN = {P@SuperPage#3} (iii) SA(x) = SubPage#4 if x = P@SuperPage#3. (iv) PN = {T1@SubPage#4, T2@SubPage#4, T3@SubPage#4, T4@SubPage#4, T5@SubPage#4} { in if x {T1@SubPage#4, T2@SubPage#4, T3@SubPage#4} (v) PT(x) = out if x {T4@SubPage#4, T5@SubPage#4}. (vi) PA(x) = { (T1@SuperPage#3, T1@SubPage#4), (T2@SuperPage#3, T2@SubPage#4), (T 3@SuperP age#3, T 3@SubP age#4), (T 4@SuperP age#3, T 4@SubP age#4), (T5@SuperPage#3, T5@SubPage#4) } if x = P@SuperPage#3. (vii) FS = (viii) FT(fs) = global (ix) PP = 1`SuperPage#3. for all fs FS Substitution place-transition pair Te page in te left part of Fig. 3 presents a supernet, and te subnet of te substituted place-transition pair can be seen in te rigt part. Te exagon represents te substituted place-transition pair as a composite node. Te order of te place and te transition in te pair depends on te input and output node types (i.e. wic are places and wic are transitions). Below it is sown ow te ierarcical CPN in Fig. 3 represented as a many-tuple. Te tuple HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) of te ierarcical CPN sown in Fig. 3 is defined as below: (i) S = {SuperP age#5, SubP age#6} (ii) SN = {(T1, P1)@SuperPage#5, (T2, P2)@SuperPage#5} (iii) SA(x) = SubPage#6 if x {(T1, P1)@SuperPage#5, (T2, P2)@SuperPage#5, T2@SubPage#8}. (iv) PN = {P3@SubPage#6, P4@SubPage#6, T5@SubPage#6, T6@SubPage#6} { in if x {P3@SubPage#6, P4@SubPage#6} (v) PT(x) = out if x {T5@SubPage#6, T6@SubPage#6}.

12 Researc Report SCL-002/ SuperPage#5 SubPage#6 Pa T1 P1 Ta Pb P3 B in T3 T5 B out Pd SubPage#6 Pa P3 P2 P4 Ta T5 T2 T6 P2 T2 SubPage#6 Pc P3 P1 P4 Tb T5 T1 T6 Pc P4 B in T4 PF T6 B out Tb Figure 3: Substitution place-transition (vi) PA(x) = {(P a@superp age#5, P 3@SubP age#6), (P 2@SuperP age#5, P 4@SubP age#6) (T a@superp age#5, T 5@SubP age#6), (T 2@SuperP age#5, T 6@SubP age#6)} if x = (T1, P1)@SuperPage#5 {(P c@superp age#5, P 3@SubP age#6), (P 1@SuperP age#5, P 4@SubP age#6) (T b@superp age#5, T 5@SubP age#6), (T 1@SuperP age#5, T 6@SubP age#6)} if x = (T2, P2)@SuperPage#5 (vii) FS = (viii) FT(fs) = global for all fs FS (ix) PP = 1`SuperPage#5. In ere we note tat we do not allow a substitution node to be a neigbor of anoter substitution node because ten it would be impossible to construct an equivalent non-ierarcical CPN by te metods defined above. To solve cases wen two substitution nodes come too close togeter, tey can always be separated by inserting an extra place and an extra transitions between tem Invocation nodes Te invocation nodes are distinguisable by te HI-tags (HI = Hierarcy + Invocation) and te inscription next to tem specifies te subpage and te port assignment. Invocation transition Te page in te left part of Fig. 4 presents a supernet, and te subnet of te invocation transition can be seen in te rigt part. Below we sow ow te ierarcical CPN in Fig. 3 is represented as a many-tuple. Te tuple HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) of te ierarcical CPN sown in Fig. 4 is defined as below: (i) S = {SuperP age#7, SubP age#8} (ii) SN = {T@SuperPage#7, T1@SubPage#8, T2@SubPage#8} (iii) SA(x) = SubPage#8 (iv) P N = {Start@SubP age#8, Stop@SubP age#8} { in if x {Start@SubPage#8} (v) PT(x) = out if x {Stop@SubP age#8}. if x {T@SuperPage#7, T1@SubPage#8, T2@SubPage#8}.

13 Researc Report SCL-002/ P1 P2 SuperPage#7 B in Start T3 SubPage#8 B out Stop T1 T4 P3 Pa Pb T5 T P4 HI SubPage#8 P3 Start P4 Stop HI SubPage#8 Pa Start Pc Stop T1 Pc T2 Pd HI SubPage#8 Pb Start Pd Stop Figure 4: Invocation transition (vi) PA(x) = {(P 3@SuperP age#7, Start@SubP age#8), (P 4@SuperP age#7, Stop@SubP age#8)} if x = T@SuperP age#7 {(P a@subp age#8, Start@SubP age#8), (P c@subrp age#8, Stop@SubP age#8)} if x = T 1@SubP age#8 {(P b@subp age#8, Start@SubP age#8), (P d@subrp age#8, Stop@SubP age#8)} if x = T 2@SubP age#8 (vii) FS = (viii) FT(fs) = global for all fs FS (ix) PP = 1`SuperPage#7. Invocation place Exactly te same set of concepts as above for te invocation transition applies to te invocation place Fusion sets Place fusion Tis idea is illustrated in Fig. 5 were te left CPN as a fusion set called A. Tis fusion set contains te fusion set members A1 and A2 wic are distinguisable by te FP-tags (FP = Fusion + Page). FusA is a page fusion set and tis means tat it is allowed to ave only fusion set members from a single page in te diagram. Let us assume tat tis page as only one instance. Ten te equivalent CPN net is sown in Fig. 5. It is obtained by merging A1 into A2. Intuitively, tis semantics means tat te places A1 and A2 sare te same marking. Now let us consider te case were te page of FusA as more tan one page instances. Ten we ave two possibilities. Eiter we can merge all instances of all fusion set members into a single conceptual node FI-tags (FI = Fusion + Instance), or we can merge tem into a node for eac instance wit FP-tags. Finally we allow global fusion sets wit FG-tags (FG = Fusion + Global). Tis allows fusion set members from all pages in te diagram and all instances of tese nodes are merged into a single conceptual node. Tis means tat a page fusion set is a special case of global fusion set. Te part of te tuple HCPN = (S, SN, SA, PN, PT, PA, FS, FT, PP) of te ierarcical CPN sown in Fig. 1 is defined as below: (i) S = {..., SubPage#10,...}.

14 Researc Report SCL-002/ SubPage#10 SubPage#10 Before unification of fusion nodes After unification of fusion nodes FusA T1 T4 FusA T1 T4 FP FP A1 T2 B A2 A T2 B T3 T5 T3 T5 Figure 5: Fusion sets (vii) F S = {{A1@SubP age#10, A2@SubP age#10}} (viii) FT(fs) = SubPage#10. for all fs FS Te members of a fusion set must be comparable to eac oter. For places tis means tat tey must ave te same colour set and te same initial marking. It also means tat tey eiter all must be ordinary places, all be substitution places or all be invocation places, and in te two latter cases tey must all ave te same subpage. Fusion of substitution places are useful, wen we want to apply te same instance at several locations in te diagram. Transition fusion Exactly te same set of concepts as above for place fusion applies to transition fusion. For transitions we do not demand tat te guards are identical. Instead, we form te conjunction of te guards. Te members of a transition fusion set must eiter all be ordinary transitions, all be substitution transitions or all be invocation transitions. In te two latter cases tey must all ave te same subpage. In addition, it is not allowed to use global and page fusion for transitions, wic appear on subpages of invocation transitions (or on subpages of suc pages). 3 Case study In te following example a simple multi-scale process model will be used to demonstrate te top-down model building by using generalized ierarcical coloured Petri net models. 3.1 Te countercurrent eat excanger: models of various levels of detail Te single cell model of te HE Consider a countercurrent eat excanger (HE) sown in Fig. 6, were te cold liquid stream is being eated by a ot liquid stream. On te top level te eat excanger is modelled by a single pair of perfectly stirred lumps forming a so called eat excanger cell. Eac cell consists of two perfectly stirred tanks wit in- and outflows. Te two tanks are connected by a eat transfer area between tem.

15 Researc Report SCL-002/ ( in) Heat transfer ( in) Figure 6: Te diagram of te single cell countercurrent eat excanger Modelling assumptions Te overall mass (volume) of te liquids on bot sides is constant. No diffusion takes place. No eat lost to te surroundings. Heat transfer coefficients are constant. Specific eats and densities are constant. Bot liquids are in plug flow. Te eat excanger is described as a CSTR pair of ot and cold liquid volumes. Balance volumes We consider perfectly mixed balance volumes wit equal oldups for eac of te ot and cold sides. Te subscripts and c denote te ot and cold sides respectively. Model Equations: Variables ( (t), (t)), 0 t (1) were (t) and (t) is te ot and te cold side temperature in te tank and t is time. Energy balances for te ot side d (t) dt = F ( ) T (in) V KA ( (t) (t)) (2) c p ρ V T (in) (t) is te ot liquid inlet temperature to te eat excanger. Energy balances for te cold side d (t) = F ( c c dt V c T (in) ) (t) (t) (in) (t) is te cold liquid inlet temperature to te eat excanger. KA c pc ρ c V c ( (t) (t)) (3) Here F and F c are te flowrates, V and V c are te volumes, A is te eat transfer area, c p and c pc are te specific eats, ρ and ρ c are te densities, K is te eat transfer coefficient.

16 Researc Report SCL-002/ Cascade model of te HE If we want to refine te model, te eat excanger is divided into n equal parts, and it gives te cascade model of te HE (see in Fig. 7). Te cascade model consists of eat excanger (HE) cells sown in Fig. 8. (0) (1) (2) (1) (1) (2) (2) ( n) ot side ( n 1) T ( n) ( n) (1) (1) (2) (2) (3) Heat transfer T ( n) c ( n) ( n 1) + cold side Figure 7: Te cascade model of te eat excanger (i-1) v V (i) (i) A (i) (i) v (i) v c V c (i) (i) Q (i) (i-1) v c Figure 8: Te diagram of a eat excanger cell Modelling assumptions Replace te last item of te modelling assumptions wit te following item: Te eat excanger is described as a sequence of n CSTR pairs of ot and cold liquid volumes (n = 3). Balance volumes We consider tree perfectly mixed balance volumes wit equal oldups for eac of te ot and cold sides. Model Equations: Variables ( T (k) ) (k) (t), (t), k = 1, 2, 3, 0 t (4) were T (k) (k) (t) and (t) is te ot and te cold side temperature in te kt tank pair respectively and t is time.

17 Researc Report SCL-002/ Energy balances for te ot side dt (k) (t) dt = F (k) ( T (k 1) V ) T (k) K(k) A (k) c (k) p ρ (k) V (k) ( T (k) ) (k) k = 1, 2, 3, T (0) (i) (t) = T (t) (5) T (i) (t) is te ot liquid inlet temperature to te eat excanger. Energy balances for te cold side d (k) (t) dt = F (k) ( c (k+1) V c ) (k) K(k) A (k) c (k) p c ρ c (k) V c (k) ( T (k) c ) T (k) k = 1, 2, 3, T (4) (i) (t) = (t) (6) T (i) c (t) is te cold liquid inlet temperature to te eat excanger. Note tat te cold stream flows in te direction of descending volume indices. Initial conditions T (k) (0) = f(k) 1, k = 1, 2, 3 (7) were te values of f (k) 1, k = 1, 2, 3 and f (k) 2, k = 1, 2, 3 are given. (k) (0) = f (k) 2, k = 1, 2, 3 (8) 3.2 Te CPN models of te countercurrent eat excanger Single cell models First consider a single cell ierarcical CPN model in Fig. 9. Te SuperPage#1 as prime page of te single cell HE model is divided into two main parts: te ot side and te cold side parts wic are connected. Te left part of Fig. 9 sows te top level of te one cell HE, te rigt part sows te subpages HotCell#2 and ColdCell#3 of te substitution place-transition pairs. Subnets denoted by exagons contain te ot and cold side cell details, respectively. We use substitution place-transition pairs for ierarcical decomposition. Te ot or cold side balance volume is described by a node containing its state variable value, and te incoming transitions realized te applications of input data. Te outgoing arcs serve te information to te surrounding about te balance volume Cascade models Te next step is to divide te single cell model into a n-cell model. Te CPN realization can be seen in Fig. 10. Te prime page of te cascade CPN model is te page SuperPage_Cascade#3, wic is similar to te prime page of te single cell model, but te substitution subnets are canged. Te new substitution subnets SubP age_casc_ot#4 and SubP age_casc_cold#5 in Fig. 10 describe te division of balance volumes of te single cell model. Tese inserted subnets do not describe te cell details. Te ot and cold cell details are substituted to te corresponding substitution nodes by using subnets HotCell#2 and ColdCell#3 (see in Fig. 9).

18 Researc Report SCL-002/ HotCell#2 B in B out T (in) t1 t4 SuperPage#1 B in T B out (in) t t8 (out) T (2) t2 t5 t3 HotCell#2 (in) T (in) T (2) t8 t4 t c t5 ColdCell#2 (in) T (in) T (2) t9 t4 t t5 B in ColdCell#3 B out T (in) t1 t4 (out) t9 t c (in) B in T B out T (2) t2 t5 t3 Figure 9: Te ierarcical CPN model of one cell eat excanger SuperPage_Cascade#3 (in) t t8 (out) SubPage_Casc_ot#4 SubPage_Casc_cold#5 (out) t9 t c (in) SubPage_Casc_ot#4 (in) (1) (1) HotCell#2 (2) (2) HotCell#2 (n) (n) HotCell#2 SubPage_Casc_cold#5 (1) (1) ColdCell#3 (2) (2) ColdCell#3 (n) (n) ColdCell#3 (in) Figure 10: Te ierarcical CPN model of te cascade eat excanger Finally, te wole CPN model of te cascade HE can be see in Fig. 11 after te substitutions of te corresponding subnets.

19 Researc Report SCL-002/ (0) (1) (2) (n) (n+1) (0) (1) (2) (n) (n+1) Figure 11: Te CPN model of te cascade eat excanger after te substitutions 4 Conclusion and future work We ave proposed extension of coloured petri nets (CPNs) by ierarcy concept in seven ways: substitution transition, substitution place, substitution place-transition pair, invocation transition, invocation place, fusion place, fusion transition. Hierarcical CPN is formulated and illustrated by examples. Te presented experiments are very difficult and rater complex, but we believe tat our work will form te base for multi-scale process description for diagnostics.

20 Researc Report SCL-002/ References [1] Huber P., K. Jensen, and R.M. Sapiro. Hierarcies in coloured petri nets. Lecture Notes in Computer Science 483, Advances in Petri Nets 1990, pages , [2] Kurt Jensen and Grzegorz Rosenberg. Hig-level Petri nets: Teory and Application. Springer- Verlag, [3] Kurt Jensen. Coloured Petri Nets. Basic Concepts, Analysis Metods and Practical Use Volume 1. Springer-Verlag, [4] Kurt Jensen. Coloured Petri Nets. Basic Concepts, Analysis Metods and Practical Use Volume 2. Springer-Verlag, [5] Lakos C. A. Te role of substitution places in erarcical coloured petri nets. Tecnical Report TR93-7, Computer Science Department, University of Tasmania, 1993.

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point MA00 Capter 6 Calculus and Basic Linear Algebra I Limits, Continuity and Differentiability Te concept of its (p.7 p.9, p.4 p.49, p.55 p.56). Limits Consider te function determined by te formula f Note

More information

Simulation and verification of a plate heat exchanger with a built-in tap water accumulator

Simulation and verification of a plate heat exchanger with a built-in tap water accumulator Simulation and verification of a plate eat excanger wit a built-in tap water accumulator Anders Eriksson Abstract In order to test and verify a compact brazed eat excanger (CBE wit a built-in accumulation

More information

Combining functions: algebraic methods

Combining functions: algebraic methods Combining functions: algebraic metods Functions can be added, subtracted, multiplied, divided, and raised to a power, just like numbers or algebra expressions. If f(x) = x 2 and g(x) = x + 2, clearly f(x)

More information

f a h f a h h lim lim

f a h f a h h lim lim Te Derivative Te derivative of a function f at a (denoted f a) is f a if tis it exists. An alternative way of defining f a is f a x a fa fa fx fa x a Note tat te tangent line to te grap of f at te point

More information

Efficient algorithms for for clone items detection

Efficient algorithms for for clone items detection Efficient algoritms for for clone items detection Raoul Medina, Caroline Noyer, and Olivier Raynaud Raoul Medina, Caroline Noyer and Olivier Raynaud LIMOS - Université Blaise Pascal, Campus universitaire

More information

Exam 1 Review Solutions

Exam 1 Review Solutions Exam Review Solutions Please also review te old quizzes, and be sure tat you understand te omework problems. General notes: () Always give an algebraic reason for your answer (graps are not sufficient),

More information

Continuity and Differentiability Worksheet

Continuity and Differentiability Worksheet Continuity and Differentiability Workseet (Be sure tat you can also do te grapical eercises from te tet- Tese were not included below! Typical problems are like problems -3, p. 6; -3, p. 7; 33-34, p. 7;

More information

2.11 That s So Derivative

2.11 That s So Derivative 2.11 Tat s So Derivative Introduction to Differential Calculus Just as one defines instantaneous velocity in terms of average velocity, we now define te instantaneous rate of cange of a function at a point

More information

Average Rate of Change

Average Rate of Change Te Derivative Tis can be tougt of as an attempt to draw a parallel (pysically and metaporically) between a line and a curve, applying te concept of slope to someting tat isn't actually straigt. Te slope

More information

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. Preface Here are my online notes for my course tat I teac ere at Lamar University. Despite te fact tat tese are my class notes, tey sould be accessible to anyone wanting to learn or needing a refreser

More information

Introduction to Derivatives

Introduction to Derivatives Introduction to Derivatives 5-Minute Review: Instantaneous Rates and Tangent Slope Recall te analogy tat we developed earlier First we saw tat te secant slope of te line troug te two points (a, f (a))

More information

Numerical Differentiation

Numerical Differentiation Numerical Differentiation Finite Difference Formulas for te first derivative (Using Taylor Expansion tecnique) (section 8.3.) Suppose tat f() = g() is a function of te variable, and tat as 0 te function

More information

The derivative function

The derivative function Roberto s Notes on Differential Calculus Capter : Definition of derivative Section Te derivative function Wat you need to know already: f is at a point on its grap and ow to compute it. Wat te derivative

More information

MAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016

MAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016 MAT244 - Ordinary Di erential Equations - Summer 206 Assignment 2 Due: July 20, 206 Full Name: Student #: Last First Indicate wic Tutorial Section you attend by filling in te appropriate circle: Tut 0

More information

Chapter 3 Thermoelectric Coolers

Chapter 3 Thermoelectric Coolers 3- Capter 3 ermoelectric Coolers Contents Capter 3 ermoelectric Coolers... 3- Contents... 3-3. deal Equations... 3-3. Maximum Parameters... 3-7 3.3 Normalized Parameters... 3-8 Example 3. ermoelectric

More information

Chapter 2 Limits and Continuity

Chapter 2 Limits and Continuity 4 Section. Capter Limits and Continuity Section. Rates of Cange and Limits (pp. 6) Quick Review.. f () ( ) () 4 0. f () 4( ) 4. f () sin sin 0 4. f (). 4 4 4 6. c c c 7. 8. c d d c d d c d c 9. 8 ( )(

More information

5.1 We will begin this section with the definition of a rational expression. We

5.1 We will begin this section with the definition of a rational expression. We Basic Properties and Reducing to Lowest Terms 5.1 We will begin tis section wit te definition of a rational epression. We will ten state te two basic properties associated wit rational epressions and go

More information

. If lim. x 2 x 1. f(x+h) f(x)

. If lim. x 2 x 1. f(x+h) f(x) Review of Differential Calculus Wen te value of one variable y is uniquely determined by te value of anoter variable x, ten te relationsip between x and y is described by a function f tat assigns a value

More information

Chapter 5 FINITE DIFFERENCE METHOD (FDM)

Chapter 5 FINITE DIFFERENCE METHOD (FDM) MEE7 Computer Modeling Tecniques in Engineering Capter 5 FINITE DIFFERENCE METHOD (FDM) 5. Introduction to FDM Te finite difference tecniques are based upon approximations wic permit replacing differential

More information

Math 312 Lecture Notes Modeling

Math 312 Lecture Notes Modeling Mat 3 Lecture Notes Modeling Warren Weckesser Department of Matematics Colgate University 5 7 January 006 Classifying Matematical Models An Example We consider te following scenario. During a storm, a

More information

Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT the Math. What is the half-life of radon?

Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT the Math. What is the half-life of radon? 8.5 Solving Exponential Equations GOAL Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT te Mat All radioactive substances decrease in mass over time. Jamie works in

More information

REVIEW LAB ANSWER KEY

REVIEW LAB ANSWER KEY REVIEW LAB ANSWER KEY. Witout using SN, find te derivative of eac of te following (you do not need to simplify your answers): a. f x 3x 3 5x x 6 f x 3 3x 5 x 0 b. g x 4 x x x notice te trick ere! x x g

More information

The Verlet Algorithm for Molecular Dynamics Simulations

The Verlet Algorithm for Molecular Dynamics Simulations Cemistry 380.37 Fall 2015 Dr. Jean M. Standard November 9, 2015 Te Verlet Algoritm for Molecular Dynamics Simulations Equations of motion For a many-body system consisting of N particles, Newton's classical

More information

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x)

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x) Calculus. Gradients and te Derivative Q f(x+) δy P T δx R f(x) 0 x x+ Let P (x, f(x)) and Q(x+, f(x+)) denote two points on te curve of te function y = f(x) and let R denote te point of intersection of

More information

Material for Difference Quotient

Material for Difference Quotient Material for Difference Quotient Prepared by Stepanie Quintal, graduate student and Marvin Stick, professor Dept. of Matematical Sciences, UMass Lowell Summer 05 Preface Te following difference quotient

More information

Lab 6 Derivatives and Mutant Bacteria

Lab 6 Derivatives and Mutant Bacteria Lab 6 Derivatives and Mutant Bacteria Date: September 27, 20 Assignment Due Date: October 4, 20 Goal: In tis lab you will furter explore te concept of a derivative using R. You will use your knowledge

More information

CHAPTER (A) When x = 2, y = 6, so f( 2) = 6. (B) When y = 4, x can equal 6, 2, or 4.

CHAPTER (A) When x = 2, y = 6, so f( 2) = 6. (B) When y = 4, x can equal 6, 2, or 4. SECTION 3-1 101 CHAPTER 3 Section 3-1 1. No. A correspondence between two sets is a function only if eactly one element of te second set corresponds to eac element of te first set. 3. Te domain of a function

More information

1.5 Functions and Their Rates of Change

1.5 Functions and Their Rates of Change 66_cpp-75.qd /6/8 4:8 PM Page 56 56 CHAPTER Introduction to Functions and Graps.5 Functions and Teir Rates of Cange Identif were a function is increasing or decreasing Use interval notation Use and interpret

More information

Math 31A Discussion Notes Week 4 October 20 and October 22, 2015

Math 31A Discussion Notes Week 4 October 20 and October 22, 2015 Mat 3A Discussion Notes Week 4 October 20 and October 22, 205 To prepare for te first midterm, we ll spend tis week working eamples resembling te various problems you ve seen so far tis term. In tese notes

More information

Digital Filter Structures

Digital Filter Structures Digital Filter Structures Te convolution sum description of an LTI discrete-time system can, in principle, be used to implement te system For an IIR finite-dimensional system tis approac is not practical

More information

MVT and Rolle s Theorem

MVT and Rolle s Theorem AP Calculus CHAPTER 4 WORKSHEET APPLICATIONS OF DIFFERENTIATION MVT and Rolle s Teorem Name Seat # Date UNLESS INDICATED, DO NOT USE YOUR CALCULATOR FOR ANY OF THESE QUESTIONS In problems 1 and, state

More information

3.4 Algebraic Limits. Ex 1) lim. Ex 2)

3.4 Algebraic Limits. Ex 1) lim. Ex 2) Calculus Maimus.4 Algebraic Limits At tis point, you sould be very comfortable finding its bot grapically and numerically wit te elp of your graping calculator. Now it s time to practice finding its witout

More information

= 0 and states ''hence there is a stationary point'' All aspects of the proof dx must be correct (c)

= 0 and states ''hence there is a stationary point'' All aspects of the proof dx must be correct (c) Paper 1: Pure Matematics 1 Mark Sceme 1(a) (i) (ii) d d y 3 1x 4x x M1 A1 d y dx 1.1b 1.1b 36x 48x A1ft 1.1b Substitutes x = into teir dx (3) 3 1 4 Sows d y 0 and states ''ence tere is a stationary point''

More information

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx.

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx. Capter 2 Integrals as sums and derivatives as differences We now switc to te simplest metods for integrating or differentiating a function from its function samples. A careful study of Taylor expansions

More information

lecture 26: Richardson extrapolation

lecture 26: Richardson extrapolation 43 lecture 26: Ricardson extrapolation 35 Ricardson extrapolation, Romberg integration Trougout numerical analysis, one encounters procedures tat apply some simple approximation (eg, linear interpolation)

More information

Chapters 19 & 20 Heat and the First Law of Thermodynamics

Chapters 19 & 20 Heat and the First Law of Thermodynamics Capters 19 & 20 Heat and te First Law of Termodynamics Te Zerot Law of Termodynamics Te First Law of Termodynamics Termal Processes Te Second Law of Termodynamics Heat Engines and te Carnot Cycle Refrigerators,

More information

SECTION 1.10: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES

SECTION 1.10: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES (Section.0: Difference Quotients).0. SECTION.0: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES Define average rate of cange (and average velocity) algebraically and grapically. Be able to identify, construct,

More information

3.4 Worksheet: Proof of the Chain Rule NAME

3.4 Worksheet: Proof of the Chain Rule NAME Mat 1170 3.4 Workseet: Proof of te Cain Rule NAME Te Cain Rule So far we are able to differentiate all types of functions. For example: polynomials, rational, root, and trigonometric functions. We are

More information

A = h w (1) Error Analysis Physics 141

A = h w (1) Error Analysis Physics 141 Introduction In all brances of pysical science and engineering one deals constantly wit numbers wic results more or less directly from experimental observations. Experimental observations always ave inaccuracies.

More information

INTRODUCTION TO CALCULUS LIMITS

INTRODUCTION TO CALCULUS LIMITS Calculus can be divided into two ke areas: INTRODUCTION TO CALCULUS Differential Calculus dealing wit its, rates of cange, tangents and normals to curves, curve sketcing, and applications to maima and

More information

2.8 The Derivative as a Function

2.8 The Derivative as a Function .8 Te Derivative as a Function Typically, we can find te derivative of a function f at many points of its domain: Definition. Suppose tat f is a function wic is differentiable at every point of an open

More information

Some Review Problems for First Midterm Mathematics 1300, Calculus 1

Some Review Problems for First Midterm Mathematics 1300, Calculus 1 Some Review Problems for First Midterm Matematics 00, Calculus. Consider te trigonometric function f(t) wose grap is sown below. Write down a possible formula for f(t). Tis function appears to be an odd,

More information

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these. Mat 11. Test Form N Fall 016 Name. Instructions. Te first eleven problems are wort points eac. Te last six problems are wort 5 points eac. For te last six problems, you must use relevant metods of algebra

More information

1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t).

1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t). . Consider te trigonometric function f(t) wose grap is sown below. Write down a possible formula for f(t). Tis function appears to be an odd, periodic function tat as been sifted upwards, so we will use

More information

1watt=1W=1kg m 2 /s 3

1watt=1W=1kg m 2 /s 3 Appendix A Matematics Appendix A.1 Units To measure a pysical quantity, you need a standard. Eac pysical quantity as certain units. A unit is just a standard we use to compare, e.g. a ruler. In tis laboratory

More information

1. Which one of the following expressions is not equal to all the others? 1 C. 1 D. 25x. 2. Simplify this expression as much as possible.

1. Which one of the following expressions is not equal to all the others? 1 C. 1 D. 25x. 2. Simplify this expression as much as possible. 004 Algebra Pretest answers and scoring Part A. Multiple coice questions. Directions: Circle te letter ( A, B, C, D, or E ) net to te correct answer. points eac, no partial credit. Wic one of te following

More information

Section 2: The Derivative Definition of the Derivative

Section 2: The Derivative Definition of the Derivative Capter 2 Te Derivative Applied Calculus 80 Section 2: Te Derivative Definition of te Derivative Suppose we drop a tomato from te top of a 00 foot building and time its fall. Time (sec) Heigt (ft) 0.0 00

More information

De-Coupler Design for an Interacting Tanks System

De-Coupler Design for an Interacting Tanks System IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-issn: 2278-1676,p-ISSN: 2320-3331, Volume 7, Issue 3 (Sep. - Oct. 2013), PP 77-81 De-Coupler Design for an Interacting Tanks System

More information

232 Calculus and Structures

232 Calculus and Structures 3 Calculus and Structures CHAPTER 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS FOR EVALUATING BEAMS Calculus and Structures 33 Copyrigt Capter 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS 17.1 THE

More information

Lecture 21. Numerical differentiation. f ( x+h) f ( x) h h

Lecture 21. Numerical differentiation. f ( x+h) f ( x) h h Lecture Numerical differentiation Introduction We can analytically calculate te derivative of any elementary function, so tere migt seem to be no motivation for calculating derivatives numerically. However

More information

MAT 145. Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points

MAT 145. Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points MAT 15 Test #2 Name Solution Guide Type of Calculator Used TI-89 Titanium 100 points Score 100 possible points Use te grap of a function sown ere as you respond to questions 1 to 8. 1. lim f (x) 0 2. lim

More information

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY (Section 3.2: Derivative Functions and Differentiability) 3.2.1 SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY LEARNING OBJECTIVES Know, understand, and apply te Limit Definition of te Derivative

More information

THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Math 225

THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Math 225 THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Mat 225 As we ave seen, te definition of derivative for a Mat 111 function g : R R and for acurveγ : R E n are te same, except for interpretation:

More information

Notes on wavefunctions II: momentum wavefunctions

Notes on wavefunctions II: momentum wavefunctions Notes on wavefunctions II: momentum wavefunctions and uncertainty Te state of a particle at any time is described by a wavefunction ψ(x). Tese wavefunction must cange wit time, since we know tat particles

More information

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a?

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a? Solutions to Test 1 Fall 016 1pt 1. Te grap of a function f(x) is sown at rigt below. Part I. State te value of eac limit. If a limit is infinite, state weter it is or. If a limit does not exist (but is

More information

Differential Calculus (The basics) Prepared by Mr. C. Hull

Differential Calculus (The basics) Prepared by Mr. C. Hull Differential Calculus Te basics) A : Limits In tis work on limits, we will deal only wit functions i.e. tose relationsips in wic an input variable ) defines a unique output variable y). Wen we work wit

More information

Continuity and Differentiability of the Trigonometric Functions

Continuity and Differentiability of the Trigonometric Functions [Te basis for te following work will be te definition of te trigonometric functions as ratios of te sides of a triangle inscribed in a circle; in particular, te sine of an angle will be defined to be te

More information

Higher Derivatives. Differentiable Functions

Higher Derivatives. Differentiable Functions Calculus 1 Lia Vas Higer Derivatives. Differentiable Functions Te second derivative. Te derivative itself can be considered as a function. Te instantaneous rate of cange of tis function is te second derivative.

More information

Characterization of reducible hexagons and fast decomposition of elementary benzenoid graphs

Characterization of reducible hexagons and fast decomposition of elementary benzenoid graphs Discrete Applied Matematics 156 (2008) 1711 1724 www.elsevier.com/locate/dam Caracterization of reducible exagons and fast decomposition of elementary benzenoid graps Andrej Taranenko, Aleksander Vesel

More information

Derivatives of Exponentials

Derivatives of Exponentials mat 0 more on derivatives: day 0 Derivatives of Eponentials Recall tat DEFINITION... An eponential function as te form f () =a, were te base is a real number a > 0. Te domain of an eponential function

More information

1 Limits and Continuity

1 Limits and Continuity 1 Limits and Continuity 1.0 Tangent Lines, Velocities, Growt In tion 0.2, we estimated te slope of a line tangent to te grap of a function at a point. At te end of tion 0.3, we constructed a new function

More information

Lines, Conics, Tangents, Limits and the Derivative

Lines, Conics, Tangents, Limits and the Derivative Lines, Conics, Tangents, Limits and te Derivative Te Straigt Line An two points on te (,) plane wen joined form a line segment. If te line segment is etended beond te two points ten it is called a straigt

More information

Physically Based Modeling: Principles and Practice Implicit Methods for Differential Equations

Physically Based Modeling: Principles and Practice Implicit Methods for Differential Equations Pysically Based Modeling: Principles and Practice Implicit Metods for Differential Equations David Baraff Robotics Institute Carnegie Mellon University Please note: Tis document is 997 by David Baraff

More information

SFU UBC UNBC Uvic Calculus Challenge Examination June 5, 2008, 12:00 15:00

SFU UBC UNBC Uvic Calculus Challenge Examination June 5, 2008, 12:00 15:00 SFU UBC UNBC Uvic Calculus Callenge Eamination June 5, 008, :00 5:00 Host: SIMON FRASER UNIVERSITY First Name: Last Name: Scool: Student signature INSTRUCTIONS Sow all your work Full marks are given only

More information

Derivatives. By: OpenStaxCollege

Derivatives. By: OpenStaxCollege By: OpenStaxCollege Te average teen in te United States opens a refrigerator door an estimated 25 times per day. Supposedly, tis average is up from 10 years ago wen te average teenager opened a refrigerator

More information

1. AB Calculus Introduction

1. AB Calculus Introduction 1. AB Calculus Introduction Before we get into wat calculus is, ere are several eamples of wat you could do BC (before calculus) and wat you will be able to do at te end of tis course. Eample 1: On April

More information

Precalculus Test 2 Practice Questions Page 1. Note: You can expect other types of questions on the test than the ones presented here!

Precalculus Test 2 Practice Questions Page 1. Note: You can expect other types of questions on the test than the ones presented here! Precalculus Test 2 Practice Questions Page Note: You can expect oter types of questions on te test tan te ones presented ere! Questions Example. Find te vertex of te quadratic f(x) = 4x 2 x. Example 2.

More information

Symmetry Labeling of Molecular Energies

Symmetry Labeling of Molecular Energies Capter 7. Symmetry Labeling of Molecular Energies Notes: Most of te material presented in tis capter is taken from Bunker and Jensen 1998, Cap. 6, and Bunker and Jensen 2005, Cap. 7. 7.1 Hamiltonian Symmetry

More information

Coloured Petri Nets Extended with Channels for Synchronous Communication

Coloured Petri Nets Extended with Channels for Synchronous Communication Coloured Petri Nets Extended with Channels for Synchronous Communication S ren Christensen Niels Damgaard Hansen Computer Science Department, Aarhus University Ny Munkegade, Bldg. 540 DK-8000 Aarhus C,

More information

Chapter 2 Performance Analysis of Call-Handling Processes in Buffered Cellular Wireless Networks

Chapter 2 Performance Analysis of Call-Handling Processes in Buffered Cellular Wireless Networks Capter 2 Performance Analysis of Call-Handling Processes in Buffered Cellular Wireless Networks In tis capter effective numerical computational procedures to calculate QoS (Quality of Service) metrics

More information

Time (hours) Morphine sulfate (mg)

Time (hours) Morphine sulfate (mg) Mat Xa Fall 2002 Review Notes Limits and Definition of Derivative Important Information: 1 According to te most recent information from te Registrar, te Xa final exam will be eld from 9:15 am to 12:15

More information

Integral Calculus, dealing with areas and volumes, and approximate areas under and between curves.

Integral Calculus, dealing with areas and volumes, and approximate areas under and between curves. Calculus can be divided into two ke areas: Differential Calculus dealing wit its, rates of cange, tangents and normals to curves, curve sketcing, and applications to maima and minima problems Integral

More information

Excerpt from "Calculus" 2013 AoPS Inc.

Excerpt from Calculus 2013 AoPS Inc. Excerpt from "Calculus" 03 AoPS Inc. Te term related rates refers to two quantities tat are dependent on eac oter and tat are canging over time. We can use te dependent relationsip between te quantities

More information

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1

Numerical Analysis MTH603. dy dt = = (0) , y n+1. We obtain yn. Therefore. and. Copyright Virtual University of Pakistan 1 Numerical Analysis MTH60 PREDICTOR CORRECTOR METHOD Te metods presented so far are called single-step metods, were we ave seen tat te computation of y at t n+ tat is y n+ requires te knowledge of y n only.

More information

HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS

HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS Po-Ceng Cang National Standard Time & Frequency Lab., TL, Taiwan 1, Lane 551, Min-Tsu Road, Sec. 5, Yang-Mei, Taoyuan, Taiwan 36 Tel: 886 3

More information

Math 212-Lecture 9. For a single-variable function z = f(x), the derivative is f (x) = lim h 0

Math 212-Lecture 9. For a single-variable function z = f(x), the derivative is f (x) = lim h 0 3.4: Partial Derivatives Definition Mat 22-Lecture 9 For a single-variable function z = f(x), te derivative is f (x) = lim 0 f(x+) f(x). For a function z = f(x, y) of two variables, to define te derivatives,

More information

Name: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ).

Name: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ). Mat - Final Exam August 3 rd, Name: Answer Key No calculators. Sow your work!. points) All answers sould eiter be,, a finite) real number, or DNE does not exist ). a) Use te grap of te function to evaluate

More information

Robotic manipulation project

Robotic manipulation project Robotic manipulation project Bin Nguyen December 5, 2006 Abstract Tis is te draft report for Robotic Manipulation s class project. Te cosen project aims to understand and implement Kevin Egan s non-convex

More information

INTRODUCTION AND MATHEMATICAL CONCEPTS

INTRODUCTION AND MATHEMATICAL CONCEPTS Capter 1 INTRODUCTION ND MTHEMTICL CONCEPTS PREVIEW Tis capter introduces you to te basic matematical tools for doing pysics. You will study units and converting between units, te trigonometric relationsips

More information

Termination Problems in Chemical Kinetics

Termination Problems in Chemical Kinetics Termination Problems in Cemical Kinetics Gianluigi Zavattaro and Luca Cardelli 2 Dip. Scienze dell Informazione, Università di Bologna, Italy 2 Microsoft Researc, Cambridge, UK Abstract. We consider nondeterministic

More information

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist Mat 1120 Calculus Test 2. October 18, 2001 Your name Te multiple coice problems count 4 points eac. In te multiple coice section, circle te correct coice (or coices). You must sow your work on te oter

More information

The Laws of Thermodynamics

The Laws of Thermodynamics 1 Te Laws of Termodynamics CLICKER QUESTIONS Question J.01 Description: Relating termodynamic processes to PV curves: isobar. Question A quantity of ideal gas undergoes a termodynamic process. Wic curve

More information

Exponentials and Logarithms Review Part 2: Exponentials

Exponentials and Logarithms Review Part 2: Exponentials Eponentials and Logaritms Review Part : Eponentials Notice te difference etween te functions: g( ) and f ( ) In te function g( ), te variale is te ase and te eponent is a constant. Tis is called a power

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 6. Differential Calculus 6.. Differentiation from First Principles. In tis capter, we will introduce

More information

Regularized Regression

Regularized Regression Regularized Regression David M. Blei Columbia University December 5, 205 Modern regression problems are ig dimensional, wic means tat te number of covariates p is large. In practice statisticians regularize

More information

Finding and Using Derivative The shortcuts

Finding and Using Derivative The shortcuts Calculus 1 Lia Vas Finding and Using Derivative Te sortcuts We ave seen tat te formula f f(x+) f(x) (x) = lim 0 is manageable for relatively simple functions like a linear or quadratic. For more complex

More information

Problem Solving. Problem Solving Process

Problem Solving. Problem Solving Process Problem Solving One of te primary tasks for engineers is often solving problems. It is wat tey are, or sould be, good at. Solving engineering problems requires more tan just learning new terms, ideas and

More information

ch (for some fixed positive number c) reaching c

ch (for some fixed positive number c) reaching c GSTF Journal of Matematics Statistics and Operations Researc (JMSOR) Vol. No. September 05 DOI 0.60/s4086-05-000-z Nonlinear Piecewise-defined Difference Equations wit Reciprocal and Cubic Terms Ramadan

More information

Chapter 2. Limits and Continuity 16( ) 16( 9) = = 001. Section 2.1 Rates of Change and Limits (pp ) Quick Review 2.1

Chapter 2. Limits and Continuity 16( ) 16( 9) = = 001. Section 2.1 Rates of Change and Limits (pp ) Quick Review 2.1 Capter Limits and Continuity Section. Rates of Cange and Limits (pp. 969) Quick Review..... f ( ) ( ) ( ) 0 ( ) f ( ) f ( ) sin π sin π 0 f ( ). < < < 6. < c c < < c 7. < < < < < 8. 9. 0. c < d d < c

More information

Math 34A Practice Final Solutions Fall 2007

Math 34A Practice Final Solutions Fall 2007 Mat 34A Practice Final Solutions Fall 007 Problem Find te derivatives of te following functions:. f(x) = 3x + e 3x. f(x) = x + x 3. f(x) = (x + a) 4. Is te function 3t 4t t 3 increasing or decreasing wen

More information

Practice Problem Solutions: Exam 1

Practice Problem Solutions: Exam 1 Practice Problem Solutions: Exam 1 1. (a) Algebraic Solution: Te largest term in te numerator is 3x 2, wile te largest term in te denominator is 5x 2 3x 2 + 5. Tus lim x 5x 2 2x 3x 2 x 5x 2 = 3 5 Numerical

More information

Solutions Manual for Precalculus An Investigation of Functions

Solutions Manual for Precalculus An Investigation of Functions Solutions Manual for Precalculus An Investigation of Functions David Lippman, Melonie Rasmussen 1 st Edition Solutions created at Te Evergreen State College and Soreline Community College 1.1 Solutions

More information

Analytic Functions. Differentiable Functions of a Complex Variable

Analytic Functions. Differentiable Functions of a Complex Variable Analytic Functions Differentiable Functions of a Complex Variable In tis capter, we sall generalize te ideas for polynomials power series of a complex variable we developed in te previous capter to general

More information

Solution for the Homework 4

Solution for the Homework 4 Solution for te Homework 4 Problem 6.5: In tis section we computed te single-particle translational partition function, tr, by summing over all definite-energy wavefunctions. An alternative approac, owever,

More information

Notes: DERIVATIVES. Velocity and Other Rates of Change

Notes: DERIVATIVES. Velocity and Other Rates of Change Notes: DERIVATIVES Velocity and Oter Rates of Cange I. Average Rate of Cange A.) Def.- Te average rate of cange of f(x) on te interval [a, b] is f( b) f( a) b a secant ( ) ( ) m troug a, f ( a ) and b,

More information

Recall from our discussion of continuity in lecture a function is continuous at a point x = a if and only if

Recall from our discussion of continuity in lecture a function is continuous at a point x = a if and only if Computational Aspects of its. Keeping te simple simple. Recall by elementary functions we mean :Polynomials (including linear and quadratic equations) Eponentials Logaritms Trig Functions Rational Functions

More information

The total error in numerical differentiation

The total error in numerical differentiation AMS 147 Computational Metods and Applications Lecture 08 Copyrigt by Hongyun Wang, UCSC Recap: Loss of accuracy due to numerical cancellation A B 3, 3 ~10 16 In calculating te difference between A and

More information

Polynomials 3: Powers of x 0 + h

Polynomials 3: Powers of x 0 + h near small binomial Capter 17 Polynomials 3: Powers of + Wile it is easy to compute wit powers of a counting-numerator, it is a lot more difficult to compute wit powers of a decimal-numerator. EXAMPLE

More information

Click here to see an animation of the derivative

Click here to see an animation of the derivative Differentiation Massoud Malek Derivative Te concept of derivative is at te core of Calculus; It is a very powerful tool for understanding te beavior of matematical functions. It allows us to optimize functions,

More information

HARMONIC ALLOCATION TO MV CUSTOMERS IN RURAL DISTRIBUTION SYSTEMS

HARMONIC ALLOCATION TO MV CUSTOMERS IN RURAL DISTRIBUTION SYSTEMS HARMONIC ALLOCATION TO MV CUSTOMERS IN RURAL DISTRIBUTION SYSTEMS V Gosbell University of Wollongong Department of Electrical, Computer & Telecommunications Engineering, Wollongong, NSW 2522, Australia

More information