Response Time Analysis of Asynchronous Periodic and Sporadic Tasks Scheduled by a Fixed-Priority Preemptive Algorithm

Size: px
Start display at page:

Download "Response Time Analysis of Asynchronous Periodic and Sporadic Tasks Scheduled by a Fixed-Priority Preemptive Algorithm"

Transcription

1 Response Tme Analyss of Asynchronous Perodc and Sporadc Tasks Scheduled by a Fxed-Prorty Preemptve Algorthm Manuel Coutnho EDISOFT /IST-UTL manuel.coutnho@edsoft.pt José Rufno FCUL ruf@d.fc.ul.pt Carlos Almeda IST-UTL cra@comp.st.utl.pt Abstract Real-tme systems usually consst of a set of perodc and sporadc tasks. Perodc tasks can be dvded nto two classes: synchronous and asynchronous. The frst type does not defne the task frst release, contrary to the second. Hence, synchronous perodc tasks are assumed to be released at the worst nstant: the crtcal nstant. The schedulablty test s reduced to check a sngle executon of the task under analyss. The ntegraton of sporadc tasks s also straghtforward: they are treated as a perodc task wth maxmum arrval frequency. On the other hand, asynchronous perodc tasks requre a test for each release n the hyperperod and the ntegraton of sporadc tasks s not trval: the worst release nstant s unknown a pror. However, they do not assume that the tasks are released at the worst nstant. Ths paper presents a new schedulablty analyss method based on the Response Tme Analyss (RTA) to determne the worst response tme of both asynchronous perodc and sporadc tasks, scheduled by a fxed-prorty preemptve algorthm wth general deadlnes. It also presents another method that enables the ntroducton of a user confgurable degree of pessmsm, reducng the hyperperod dependency. 1. Introducton Tradtonally, real-tme system desgners choose to mplement both perodc and sporadc tasks due to ther deter- Rua Qunta dos Medronheros - Lazarm, Apartado 382, Caparca, Portugal. Tel: Fax: Insttuto Superor Técnco - Unversdade Técnca de Lsboa, Avenda Rovsco Pas, Lsboa, Portugal. Tel: Fax: Ths work was supported by EU and FCT, through Project POSC/EIA/56041/2004 (DARIO) WWW Page - Faculdade de Cêncas da Unversdade de Lsboa, Campo Grande - Bloco C8, Lsboa, Portugal. Tel: Fax: Ths work was supported by EU and FCT, through Project POSC/EIA/56041/2004 (DARIO) and through the FCT Multannual Fundng Programme. Ths work was partally motvated by the research results of Project AIR, supported by ESA (European Space Agency) through the ITI program, ESTEC Contract 19912/06/NL/JD. mnsm and responsveness. Perodc tasks are used typcally for process control (e.g. atttude control n space systems) whereas sporadc tasks provde very fast responses to external events (e.g. arbag n automotve applcatons). Two consecutve releases of a perodc task are separated by a well-known fxed tme nterval: the task perod. On the other hand, sporadc tasks have a more non determnstc behavour: two consecutve releases are separated by a wellknown mnmum tme nterval. Perodc tasks can be dvded nto two man classes: synchronous and asynchronous 1. Ths dfference relates to defnton (or lack of) of the frst release nstant. Sporadc tasks usually react to external events so there s lttle advantage n specfyng ther frst release tme. The frst release nstant s undefned n synchronous perodc tasks. Hence, the schedulablty analyss has to consder the worst possble release: the crtcal nstant. Therefore, only one release has to be studed, allowng pseudopolynomal tests to produce necessary and suffcent condtons [11, 12]. The ntegraton of sporadc tasks wth synchronous perodc tasks s straghtforward: they are treated as synchronous perodc tasks, released at a crtcal nstant and wth perod equal to ts mnmum nter-arrval tme (maxmum frequency). On the other hand, the frst release nstant s defned n asynchronous perodc tasks. These are more dffcult to analyze snce the worst release nstant s unknown apror. The determnaton of suffcent and necessary schedulablty condtons of asynchronous perodc tasks n a preemptve fxed-prorty schedulng algorthm has been shown to be co-np-complete [13]. In fact, an analyss through the task hyperperod s requred to determne that all releases meet ther deadlne [1]. Snce the hyperperod ncreases exponentally wth the number of tasks, specally those wth prme perods, ths analyss can be heavy, even wth few tasks. Furthermore, sporadc tasks are more dffcult to analyze snce the worst release nstant s also unknown. 1 Asynchronous perodc tasks are sometmes referred as concrete perodc tasks n the doman of non-preemptve schedulers [10].

2 However, asynchronous perodc tasks have an mportant advantage over the synchronous counterpart: they are not released at the crtcal nstant. Hence, ths generc methodology may be used to accurately represent real settngs [16, 19, 18]. In addton, there can co-exst tasks that never nterfere wth each other, even wth dfferent perods. The use of asynchronous an perodc task model allows an ncrease of CPU usage and can guarantee hgher system responsveness thus avodng the costs of buyng and certfyng faster equpment [16]. The hyperperod dependency s also present n the tmetrggered archtecture, whch to some degree demonstrates the practcablty of ths type of analyss. However, even though these systems generally allow a hgher CPU usage, they have a low responsveness to external events. Ths paper proposes a method to analyze the schedulablty of systems comprsng asynchronous perodc and sporadc tasks wth general deadlnes (deadlnes less than or equal to the perod), scheduled by a fxed-prorty preemptve algorthm. As far as our knowledge can say, the schedulablty analyss of sporadc tasks together wth asynchronous perodc tasks has not been addressed yet n the lterature. The proposed methods follow the Response Tme Analyss (RTA) approach, determnng the response tmes of all perodc releases throughout the system hyperperod. The determnaton of the worst response tmes also allows a greater nsght to the amount of jtter assocated to a perodc task and the number of mssed deadlnes (assumng the response tme s larger than the deadlne but smaller than the perod). In control systems ths s useful because, f not carefully bounded, the jtter can potentally degrade the system performance [17]. The worst release nstant caused by the asynchronous task set, the asynchronous crtcal nstant, s unknown a pror. Ths paper presents a method that determnes a set of canddates to the asynchronous crtcal nstant to analyze the schedulablty of sporadc tasks. Snce many real-tme embedded systems have large desgnng/mplementng perods, the heavy schedulablty analyss requred s stll manageable n most systems, as seen n the tme-trggered archtecture usage cases. However, f the hyperperod s too large, another method s presented that produces a faster result at the expense of the ntroducton of a varable degree of pessmsm. 2. Related work The schedulablty analyss has commonly used the crtcal nstant as a means to produce very fast results. In fact, n systems where the release nstants are not known apror derve necessary and suffcent condtons, as the RTA [11]. Ths analyss gves the response tme of a gven task renderng the schedulablty test trval: the response tme must be smaller than the deadlne. Attempts to remove the crtcal nstant assumpton by defnng release nstants for perodc tasks have produced some results. Perhaps the most wdely known result s produced by the offset system model [3, 15, 4, 20, 14]. In ths model, there s a set of perodc transactons, each one composed by a set of tasks (wth the same perod as the transacton and normally related by a precedence order). The tasks are released at a fxed tme nterval after the transacton has begun but the release of the transacton s unknown. As a consequence, tasks nsde the same transacton have lttle or no nterference wth one another. However, tasks n dfferent transactons are analyzed assumng they are released at the worst nstant. Furthermore, tasks nsde a transacton must share the same perod. As a consequence, the hyperperod s typcally small (smaller number of tasks wth dfferent perods). Note also that ths offset analyss can be made a partcular case of asynchronous perodc tasks wth the addtonal defnton of the release nstants of the transactons. Regardng asynchronous perodc tasks, schedulablty analyss has been addressed n [1] and n [6, 8]. In [1] t s presented an optmum prorty assgnment algorthm for fxed-prorty schedulers wth O(n 2 ) complexty. Ths algorthm requres a suffcent and necessary schedulablty test (also known as a feasblty test) whch s also presented. However, ths analyss determnes the nterference of each ndvdual hgher prorty task release, whch requres a sortng procedure and a hgh number of teratons. In [5] the author treats both asynchronous perodc and sporadc tasks, but only provdes a suffcent test when consderng sporadc tasks. Both [6] and [8] determne the response tme n dynamc prorty schedulers wth arbtrary deadlnes (deadlnes can be larger than the perod), whereas fxed-prorty schedulng s brefly addressed n [7]. However, ths work can be smplfed when appled to fxed-prorty systems. Other work has addressed offset-free systems, characterzed by allowng the scheduler to choose the best (frst) release nstants of the perodc tasks. In [9] near-optmal prorty and release assgnments are produced usng a heurstc and usng the schedulablty test descrbed n [1, 2]. Fxed-prorty non-preemptve schedulers have been consdered n [10], where t s demonstrated that the complexty of the schedulablty analyss s NP-hard n the strong sense, but t dd not provde a schedulablty test. 3. System Model The system model consdered n ths paper ntegrates both perodc and sporadc tasks, scheduled by a fxedprorty preemptve algorthm. It s assumed that the tasks are ndependent, co-exst n a sngle processor and the con-

3 text swtchng overhead s null. Each task has a unque prorty but perodc and sporadc can ntertwne ther relatve prortes, that s, the prorty of a gven sporadc task can be n between the prortes of two other perodc tasks. Concernng only the perodc task set, t s commonly referred as an asynchronous task set wth general deadlnes. In ths model, the perodc tasks are defned by the parameters Γ = {c,t,r,d } where c represents the Worst Case Executon Tme (WCET), T the task perod, r the release tme of the task and D the relatve deadlne from the task release. The condton of general deadlnes specfes that the deadlne s smaller than or equal to the perod. Hence, the parameters are condtoned to 0 c D T and 0 r. A job s a partcular executon of a perodc task. Smlarly, the sporadc task set s characterzed by τ m = {e m,mit m,h m } where e m s the WCET, MIT m s the Mnmum Inter-Arrval Tme between consecutve task releases and H m s the relatve deadlne from the task release. Smlarly, the deadlne s nferor to the mnmum nter-arrval tme, hence 0 e m H m MIT m. Both tasks sets are ordered by ncreasng prorty, that s, task Γ has a hgher prorty than task Γ +1 and τ m has also a hgher prorty than τ m+1. Addtonal Defntons R - Response tme (nstant) of the synchronous perodc counterpart of the asynchronous perodc task Γ l r = r +lt - Release nstant of the l th job of the asynchronous perodc task Γ l R - Response nstant of the l th job of the asynchronous perodc task Γ R m - Response nstant of the sporadc task τ m l R l r - Response tme of the l th job of an asynchronous perodc task Γ Λ - Hyperperod of the asynchronous perodc task Γ 4. Response Tme Analyss for Synchronous Tasks The Response Tme Analyss (RTA) for synchronous perodc tasks and sporadc tasks s a well-known fast method that produces necessary and suffcent schedulablty condtons [11]. Ths secton presents the essental detals of how ths method works, snce t s used as a startng pont of the analyss descrbed latter on. In synchronous perodc tasks, the worst nstant where the tasks can be released s at a crtcal nstant: all hgher prorty tasks start at the same nstant. Hence, the response tme of the synchronous counterpart of Γ,gvenbyR,s the soluton of the equaton Fgure 1. Iteratons of the Response Tme Calculaton, Equaton (2) R = c + 1 R j=1 T j c j (1) Due to the non-lnear celng operator x, ths equaton can not be easly solved from drect analyss. Instead, an teratve fxed-pont method s used to determne ts value R (0) = c R (n+1) = c + 1 j=1 R (n) (2) c j T j The basc phlosophy behnd ths teratve method s to ncrementally ncrease the response tme based on the hgher prorty task demanded workload. Each teraton gves the nstant where the workload request has been fulflled. However, between the last teraton and the present one, new workload may have been demanded. Hence, the algorthm contnues to update the new workload demanded untl t stops ncreasng. At ths pont the method halts, where R (n+1) = R (n) = R. The schedulablty test s reduced to check f R D. If so, then the task s schedulable. Fgure 1 shows an example of how the teratons progress untl the response tme s found. The ntegraton of sporadc tasks s straghtforward wthn ths model: they are treated as perodc tasks, released at the crtcal nstant and wth perod equal to ther MIT. As such, there s lttle dfference analysng synchronous perodc or sporadc tasks. 5. Response Tme Analyss of Asynchronous Perodc Tasks Ths secton provdes a new method to determne the response tme of all asynchronous perodc jobs. For smplcty of exposton, sporadc tasks are not yet consdered. The ntroducton of the release nstant of perodc tasks has to be frstly reflected nto the workload functon. Hence, the workload requested n the nterval [0,t[ by the tasks Γ 1,...,Γ s gven by

4 w (t)= j=1 t r j T j c j (3) 0 where the x 0 operator gves the max{0, x }. Ths operator s ntroduced to reflect that the number of tmes a task s nvoked cannot be lower than zero. The response nstant of an asynchronous perodc task released at l r s obtaned by addng ts executon tme, c, and the nterference from the hgher prorty tasks, I 1 ( l r, l R ), to the nstant t was released, l r l R = l r + c + I 1 ( l r, l R ) (4) The nterference from hgher prorty tasks s the only unknown element. Ths nterference can be dvded nto the nterference remanng at l r, desgnated by I b 1 (l r ),and the nterference that arses after the task release untl ts response nstant, I a 1 (l r, l R ). I 1 ( l r, l R )=I b 1 (l r )+I a 1 (l r, l R ) (5) The term I b 1 (l r ) reflects the nterference from hgher prorty tasks requested before the release nstant. In [1], ths term s calculated by searchng backwards all the hgher prorty task releases n the nterval [ l 1 r + D, l r [ plus the workload remanng at l 1 r + D. Ths set of task releases s then sorted chronologcally and ndvdually analyzed. Instead, our approach requres the determnaton of the last dle nstant before l r, desgnated by L 1 ( l r ).Thslast dle nstant s defned as the last nstant where all hgher prorty tasks prevously demanded workload has been fulflled. Hence, from L 1 ( l r ) to l r the system s processng the hgher prorty tasks. The remanng nterference s easly found by subtractng the workload demanded wth the workload processed by the hgher prorty tasks n the nterval [L 1 ( l r ), l r [. I 1 b (l r )=w 1 ( l r ) w 1 (L 1 ( l r )) }{{} workload demanded ( l r L 1 ( l r )) }{{} workload processed (6) As wll be shown later on, the calculaton of the last dle nstant follows a method smlar to the RTA, so t does not analyze each hgher prorty task pror release ndvdually, nor does t requre a sortng operaton. The term I 1 a (l r, l R ) accounts for the total workload request by the hgher prorty tasks after the release, that s, n the nterval [ l r, l R [. In [1] the author determnes all the hgher prorty tasks releases n the nterval [ l r, l r + D [. Ths set of releases s ordered chronologcally and ndvdually analyzed. The nterference found at l r + D s used to calculate the remanng nterference for the next job, I 1 b (l+1 r ), as prevously stated. Our approach determnes the nterference after the release untl the response nstant, correspondng to the nterval [ l r, l R [ and t s gven by I 1( a l r, l R )=w 1 ( l R ) w 1 ( l r ) (7) Jonng equatons (4), (5), (6) and (7), the response nstant s gven by l R = L 1 ( l r ) + c + w 1 ( l R ) w 1 ( L 1 ( l r )) The smallest soluton (larger than l r ) of ths equaton gves the response nstant of a task released at l r. The equaton starts from the last dle nstant, as opposed to l r n equaton (4). It then adds the task executon tme to the workload demanded by the hgher prorty tasks n the nterval [L 1 ( l r ), l R [. Ths equaton has to be verfed for all jobs of Γ released nsde the hyperperod. In [1] the hyperperod s proven to correspond to the nterval [max(r 1,...,r ),max(r 1,...,r )+LCM(T 1,...,T )[ where the LCM functon corresponds to the Least Common Multple. The hyperperod s the mnmum nterval n whch the task set starts repeatng tself. Note that t starts after a ntal transent phase. Ths ntal transent phase does not need to be analyzed snce there s less nterference than the worst case (not all tasks have been made actve). Hence, the hyperperod can start at any nstant after max(r 1,...,r ) as long as t mantans the same length. Due to the sporadc task nterference, we begn the hyperperod at S = max(r 1,...,r )+T Λ =[S,S + LCM(T 1,...,T )[ (9) Ths new nterval has the same length and starts after the transent phase, so t mantans the same propertes. Secton 6.2 explans the reasons for the change made to the hyperperod. In short, t s necessary to analyze the nterval ] l 1 r, l r ] to determne l R, so ths nterval must not contan a transent phase. The mnmum and maxmum l such that l r Λ are gven by l mn = S r l max = T S +LCM(T 1,...,T ) r T 1 The schedulablty analyss can be summarzed n the condton (8) { l: l r Λ l R l r D, Γ s schedulable l: l r Λ l R l r > D, Γ s unschedulable (10)

5 w (t)= j=1 1 + t r j c j (11) T j 0 Fgure 2. Extended Workload Request 5.1. Last Idle Instant Calculaton The response tme analyss presented requres the determnaton of the last dle nstant of the hgher prorty perodc tasks for a gven tme, L (t). Even though prevous work n [1] analyzes the small nterval [ l 1 r + D, l r [ to determne the remanng workload at l r, t also has to add the remanng workload at l 1 r + D. So, n essense, t has to analyze the whole tme sequence snce the beggnng of tme to determne the remanng workload at l r. In fact, all prevous work regardng asynchronous systems requred determnng the schedule snce the beggnng of tme [1, 5]. Our method also has to analyze the nterval [0,t[ but, nstead of searchng every ndvdual hgher prorty task release as [1], our approach follows a method closely related wth the fast teratons of the RTA algorthm. Our am s to extend the workload functon wth the knowledge of the dle perods: w ext (t), Fgure 2. When the system s n an dle state (at the current prorty level) the extended workload s equal to t (nstant t 1 n Fgure 2), so w ext (t) t gves the remanng workload at each nstant. By trackng the extended workload functon, the dle perods can be determned and the last dle nstant found. In summary, when the system s non dle (computng), the method advances n tme smlarly to the RTA method; when t s n dle, a new functon, ρ (t), determnes the next computng nstant. The transton between an dle nstant to a computng nstant requres the determnaton of the workload requested at a partcular nstant. To do ths, the auxlary functon w (t) s ntroduced where the non-lnear operator x denotes the floor functon and x 0 = max{0, x }. The functon w (t) gves the workload request n the nterval [0,t]. Notce that ths nterval s closed at both ends. Hence, the workload requested at t can be gven by w (t) w (t). The method advances through the computng perods through a fxed-pont method. Let ϒ(t) be the total dle tme untl a gven nstant. At each teraton, the fxed-pont method gves the nstant where the workload demanded has been fulflled. Snce from the last teraton to the present one new workload may have been demanded, the method contnues to update the new workload untl t stops ncreasng w (n+1) = j=1 w (n) T j r j c j + ϒ(t) (12) When w (n+1) = w (n) the method stops and w (n) s equal to the nstant where the computng perod has ended. The dagram n Fgure 4 shows how ths teratve method fnds the next pont computng nstant. After fndng the nstant where the workload as been fulflled, whch also corresponds to an dle nstant, the functon ρ (t) gves the next computng nstant, whch corresponds to the closest task release ( t r j ρ (t)= mn j=1... T j 0 ) T j + r j 0 (13) Beng t the last computng nstant of a computng perod, the dfference between ρ (t) and t gves the next dle perod. By sequentally addng these dle perods to the workload request functon we get the extended workload functon, Fgure 2. w ext (t)=w (t)+l (t) w (L (t)) }{{} total dle tme (14) An teratve method s thus bult by sequentally determnng the computng and dle perods. The transton from an dle to a computng perod s accomplshed by addng the workload request at that nstant, gven by w (ρ (t)) w (ρ (t)). The pseudo-code that mplements ths method s llustrated n Fgure 3. An example of how ths pseudo-code works s shown on Fgure 4. As llustrated, the algorthm adds to the workload the dle tme perods so as to follow the extended workload request functon.

6 functon L (t){ f( = 0)return t; // there are no hgher prorty tasks last dle nstant = 0; total dle tme = 0; terator = 0; whle(true) { last terator = terator; terator = w (terator)+total dle tme; f(terator > t) return last dle nstant; f(last terator = terator) { // arrved at an dle nstant f(terator t ρ (terator)) return t; last dle nstant = ρ (terator); total dle tme += ρ (terator) terator; terator = ρ (terator)+w (ρ (terator)) w (ρ (terator)); }}} Fgure 3. Pseudo-code to determne L (t) 5.2. Response Instant Calculaton Fgure 4. Iteratons of the functon L (t) Lke the classc RTA teratve method, the response nstants can also be found teratvely. Hence, the response nstants of Γ, l R, are determned usng the fxed-pont method { l R (0) = c + l r l R (n+1) = c + w 1 ( l R (n) )+L 1 ( l r ) w 1 (L 1 ( l r )) When l R (n+1) = l R (n) the response nstant has been found Applcaton Example An example of how ths method can be appled s presented n Table 1 and the frst tme sequences are shown n Fgure 5. The Example 1 has a 98,67% CPU usage and c D = 282,54%. Notce also that the larger hyperperod, Λ 10, s qute large, above 60 mllon tme unts. Ths was made to show that even for very large hyperperods, the amount of tme requred by the analyss s stll managable. The schedulablty method presented thus far has very demandng processng tmes 2, so the analyss followed an mproved method, dscussed n Secton 7.1. The Table 1 compares the number of teratons of the presented method wth the one descrbed n [1] 3. As depcted, the number of teratons requred s smaller by up to 95% and the performance gan ncreases as the hyperperod becames larger. From Table 1 we can see that the response tme calculated assumng a crtcal nstant, R, renders four tasks unschedulable: Γ 2,6,7,8. Note n partcular that Γ 2 s deemed 2 A rough estmaton gves more than hours to analyze Γ Ths result may vary somewhat wth the mplementaton snce the algorthm n [1] requres a sortng procedure. Fgure 5. Schedulng Example 1 for the tasks Γ 1,...,Γ 8. The symbol denotes the task release whereas denotes the response nstant schedulable from Fgure 5. In fact, ths task never suffers nterference from the hgher prorty task Γ 1. For the tasks Γ 7,8, we show that ther response tme s always nferor to the deadlne by analysng every job n the hyperperod: Fgure 6. Followng a smlar approach, task Γ 6 s also deemed schedulable. Note that to determne f the task s schedulable the determnaton of R (or other, even faster schedulablty test) can be suffcent n most cases. There are, however, scenaros where the classc schedulablty analyss gves too pessmstc results. Ths analyss can be taken n these stuatons and when there s enough tme. Ths method provdes the worst response tme for all jobs and therefore allows a better vew as to how much response jtter s ntroduced. For example, as seen on Fgure 5, Γ 2 never suffers the nterference of Γ 1. Hence ts jtter s only bounded by ts mnmum and maxmum executon tme, [c 2,c 2], makng t an almost jtter-free task.

7 System Parameters Schedulablty Results Γ c T r D R max (l R l ) r LCM(T 1,...,T ) Analyss Tme (s) # Iteratons Improvement over [1] Γ % Γ % Γ % Γ % Γ % Γ % Γ % Γ % Γ % Γ % Table 1. Parameters of Example 1. The schedulablty analyss followed the mproved method descrbed n Secton 7.1, Fgure 13 (a) (b) (c) Fgure 6. Response tme of each job n the hyperperod for the tasks: (a) Γ 7 ;(b)γ 8 ;(c)γ 8 wth D 8 = 90 In a more general case, the determnaton of the worst jtter requres two analyss: one wth the mnmum executon tmes, c 1,...,c ; the other wth the worst executon tmes, c 1,...,c. The nterval between the best response tme of the frst case wth the worst response tme of the latter gves the largest jtter. If, for example, c = c, then Fgure 6 can tell us the jtter of tasks Γ 7 and Γ 8. Ths analyss also covers systems that support occasonal mssed deadlnes. For example, by lowerng D 8 to 90 tme unts, there are some jobs that do not fulfll the deadlne, as depcted n Fgure 6. Note however, that snce the responses are all lower than T 8, f one job msses ts deadlne, the next job wll not suffer any temporal nterference. If a job has a response tme hgher than ts perod, than ths analyss does not suffce and a model extenson (to ncorporate arbtrary deadlnes, for example) s needed. Snce the knowledge of L 1 ( l r ) s requred to determne the response tme for each job nsde a hyperperod, the overall complexty to determne f a gven task Γ s schedulable s O(ELCM(T 1,...,T ) 2 ),wheree s the average number of steps requred to calculate the next dle nstant snce the prevous one. The algorthm s dependent on the quadratc power of the LCM because, when calculatng L 1 ( l r ), the method starts from the begnnng for every job. For a LCM(T 1,...,T )/T number of jobs, the number of total teratons requred s E 1 + E ELCM(T 1,...,T )/T = O(E LCM(T 1,...,T ) 2 ). In Secton 8.1 we wll descrbe how to make ths O(ELCM(T 1,...,T )). 6. Integraton of Sporadc Tasks One major advantage of usng event-drven systems wth a combnaton of perodc and sporadc tasks comes from the hgh responsveness and low resource consumpton. Suppose a hgh prorty sporadc task wth a very low deadlne (H ) but wth a very large MIT: the sporadc task wll execute seldomly havng a low mpact on the remanng tasks schedulablty. A pure tme-trggered system, on the other hand, would need a hgh frequency pollng task to provde such responsveness. The synchronous approach assumes that all tasks,

8 whether perodc or sporadc, are released at the same nstant: crtcal nstant. However asynchronous perodc tasks are released at fxed nstants whch may not concde wth the crtcal nstant. Therefore t s necessary to know the worst possble nstant where a sporadc task can be released: asynchronous crtcal nstant. It s also necessary to account for the nterference produced by the sporadc tasks. Hence, assumng that all sporadc tasks are released at t = 0, the workload demanded by the tasks τ 1,...,τ m,gvenbyω m (t), s equal to m t ω m (t)= e k (15) k=1 MIT k 0 If the sporadc tasks are released at t 0 then ther workload functon s ω m (t t 0 ). As wll be shown latter on, the worst nstant comes when all sporadc tasks are released at the same nstant Asynchronous Crtcal Instant Ths secton presents a method to determne the asynchronous crtcal nstant, κ, mposed by the hgher prorty asynchronous perodc tasks. Ths nstant corresponds to the release nstant where low prorty sporadc tasks are released to produce the worst response tme. Observng Fgure 7, whch llustrates the functon w ext (t) t, we conclude that the asynchronous crtcal nstant can only be n the begnnng of the computng perods/end of the dle perods. Ths can easly be proved by assumng the contrary: f the asynchronous crtcal nstant s n the dle perod before, then the response nstant wll also be sooner by at least the same amount, Fgure 7; f t s n the computng perod after, then the response nstant s equal but, snce t started later, the response tme s smaller, Fgure 7. Hence, we need only concern wth the start of the computng perods because these wll gve the canddates for the asynchronous crtcal nstant. The worst release nstant for the lower prorty sporadc tasks s therefore one of these canddates. To determne the canddates for the asynchronous crtcal nstant we need a method to determne the next dle nstant, ϕ (t). Ths new method s very smlar to the teratons of the L (t) algorthm. As specfed n Fgure 8, the functon ϕ (t) receves a work nstant. Ths s the frst work nstant of the computng perod. The frst teraton adds the work demanded at that nstant. The followng teratons are very smlar to the other methods, addng at each teraton the new workload demanded. An example of the ϕ (t) teratons s shown n Fgure 9. Fgure 8 also descrbes a method, κ (t mn,t max ), that captures all canddates nsde the nterval ]t mn,t max ]. Ths method s ether calculatng the next work nstant, usng Fgure 7. Asynchronous Crtcal Instants Canddates ρ (t), or the next dle nstant, usng ϕ (t). When the work nstant found s greater than t max the method stops. The complexty of determnng the asynchronous crtcal nstant canddates n Λ s smlar to the determnaton of the last dle nstant: O(ELCM(T 1,...,T )) Response Tme Analyss of Asynchronous Perodc Tasks The worst nterference that sporadc tasks can produce to the lower prorty perodc tasks can be determned wth knowledge of the asynchronous crtcal nstant canddates. Suppose a perodc job released at l r and that τ K s the lowest prorty sporadc task wth hgher prorty than Γ. In Fgure 10 s llustrated the hgher prorty perodc tasks remanng workload at each nstant, w ext (t) t. There are four canddate nstants between l 1 r and l r : κ (1),...,κ (4). From Fgure 10 t s clear that the worst nterference that hgh prorty sporadc tasks nduce nto the low prorty perodc tasks happens when they are released at the crtcal nstant canddates. If the sporadc tasks are released earler, then they wll be executed (snce the system s dle). If they are released after the canddate, then the nterval where they can cause nterference s smaller.. Ths release nstant removes the dle perod between κ (2) and l r, makng one sngle computaton perod. In fact, f there are dle perods between the release of the sporadc tasks and l r then that cannot be the worst release nstant snce all the workload has been fulflled at one nstant and hence wll not be added to the next computng perod (take example of the The worst release nstant n Fgure 10 s κ (2) release at κ (1) n Fgure 10). Snce from the worst release nstant to l r there cannot exst dle perods, f the worst release s before l 1 r then the l 1 job could not be executed and would mss ts deadlne. Hence, assumng that all prevous jobs fulfll ther deadlne,

9 functon κ (t mn,t max ){ next work nstant = L (t mn ); work nstants = {}; whle(true) { next dle nstant = ϕ (next work nstant); next work nstant = ρ (next dle nstant); f( next work nstant > t max ) return work nstants; work nstants = work nstants {next work nstant}; }} functon ϕ (work nstant){ //returns the next dle nstant total dle tme = work nstant w (work nstant); terator = work nstant + w (work nstant) w (work nstant); whle(true) { last terator = terator; terator = w (terator)+total dle tme; f( terator = last terator ) return terator; }} Fgure 8. Pseudo-code to determne all the canddates of the asynchronous crtcal nstant n the nterval ]t mn,t max ] Fgure 10. Analyss of the canddates to the worst sporadc release Fgure 9. Examples of the ϕ (t) teratons the canddates to the worst release nstant are n the nterval ] l 1 r, l r ]. If there are no crtcal nstant canddates, then the task s not schedulable snce durng that nterval the system never completed ts workload and hence the prevous job dd not fullfll ts deadlne. The nterval ] l 1 r, l r ] must not be nsde the ntal transent phase. So the hyperperod must start T after the ntal phase has ended. Hence the need to make S = max(r 1,...,r )+T n Equaton (9). Ths change n the hyperperod does not affect sgnfcantly the analyss tme snce the LCM s stll by far the man factor. Snce the dle perods from the worst release nstant, κ, to l r are now occuped processng the hgher prorty tasks, these have to be subtracted when calculatng the response nstant. The total dle tme from κ to l r s gven by [L 1 ( l r ) w 1 (L 1 ( l r ))] [L 1(κ ) w 1(L 1(κ ))] }{{}}{{} total dle tme untl l r total dle tme untl κ Snce at κ the hgher prorty perodc tasks are dle, then L 1 (κ )) = κ. The response nstant of an asynchronous perodc task s found by addng to equaton (8) the workload from the hgher prorty sporadc tasks and subtractng the total dle tme l R = κ + c + w 1 ( l R ) w 1 (κ )+ω K ( l R κ ) (16) where the smallest soluton (larger than l r ) corresponds to the response nstant. Ths equaton can be solved usng the fxed-pont method wth l R (0) = l r + c. Ths equaton has to be solved for every κ ] l 1 r, l r ] and the worst response nstant found s used n expresson (10) to determne f Γ s schedulable. Note that f a partcular κ s not the worst nstant and t does not completely remove the dle perods, then the correspondng response nstant calculated wll be smaller than t should be (because we are subtractng all the dle perods), but snce ths s not the worst case t wll not be consdered n the fnal schedulablty test. If there are no hgher prorty sporadc tasks then the only κ canddate that does not have any dle perods between κ and l r s L 1 ( l r ) (κ (4) n Fgure 10), so equaton (16) becomes equvalent to equaton (8) Response Tme Analyss of Sporadc Tasks To determne the worst possble response tme of a sporadc task we have to consder all asynchronous crtcal n-

10 stant canddates. Consder Γ to be the lowest prorty perodc task wth hgher prorty than τ m. The worst response nstant of a sporadc job s found when all hgher prorty sporadc tasks are released at the same asynchronous crtcal canddate. Hence, t s the smallest soluton (larger than κ )of R m = κ + e m + w (R m ) w (κ )+ω m 1 (R m κ ) (17) Lkewse, ths equaton can be solved usng the fxedpont method, wth R (0) m = e m + κ. The schedulablty analyss can be summarzed n the condton { κ Λ R m κ H m, τ m s schedulable κ Λ R m κ > H m, τ m s unschedulable (18) As an example take the nterference gven by Γ 1,...,Γ 3 (Table 1). The canddates for the asynchronous crtcal nstant are (frst 10): 37; 45; 57; 60; 67; 75; 77; 87; 89; 97. In total, there are 55 canddates n Λ 3. The response tmes of a sporadc task wth e 1 = 1 and released at the canddates nstants are respectvely: 3; 9; 3; 2; 8; 2; 3; 9; 7; 3. For a e 1 = 10 the response tmes are: 20; 21; 23; 21; 20; 21; 20; 23; 21; 20. Note that f the task s released at t = 57, for a e 1 = 1 the response tme s very low compared to other nstants, but when e 2 = 10 t has the hghest response tme. Therefore all crtcal nstants canddates must be consdered, even f for lower WCET they gve very good response tmes. Ths s because for a task wth a very low WCET, then the worst canddate corresponds to the sngle longest computaton perod. But for a task wth a large WCET t can be the longest chan of computng perods wth lttle dle perods n between. 7. Improvng the Response Tme Calculaton To speedup the schedulablty test of a partcular task t s possble to determne the response tme assumng a crtcal nstant, R. If the task s schedulable under ths condton then t s always schedulable, whatever the release tme [1] Explotng Last Idle Instant Knowledge As descrbed earler, the complexty of determnng the last dle nstant for all jobs of a gven task Γ s O(E LCM(T 1,...,T ) 2 ). The quadratc dependency comes from the rentalzaton of the teratve method to determne L (t) for each job. But by keepng track of the last known dle nstant, the algorthm can start from ths pont nstead of dong the same analyss snce the begnnng. Ths reduces the overall complexty to O(E LCM(T 1,...,T )). Snce the functon L (last known dle,t){ f( = 0)return t; // there are no hgher prorty tasks last dle nstant = last known dle; total dle tme = last known dle w (last known dle); terator = last known dle; whle(true) { last terator = terator; terator = w (terator)+total dle tme; f(terator > t) return last dle nstant; f(last terator = terator) { // arrved at an dle nstant f(terator t ρ (terator)) return t; last dle nstant = ρ (terator); total dle tme += ρ (terator) terator; terator = ρ (terator)+w (ρ (terator)) w (ρ (terator)); }}} Fgure 11. Improved pseudo-code to determne the L (t) startng from the last known dle nstant LCM s obvously the lmtng factor, ths mprovement s very sgnfcant. The Fgure 11 llustrates the mproved pseudo-code that determnes the last dle nstant startng from the last known dle nstant. Note the changes made only n the ntalzaton phase. Fgure 12 descrbes the mproved pseudo-code that determnes κ usng the new functon L (last,t). Fnally, Fgure 13 llustrates the mproved pseudocode to determne the response nstants for the jobs l ntal,...,l fnal. Note that the last dle nstant s updated after the maxmum known crtcal nstant canddate snce, as prevously stated, the crtcal nstant canddates are themselves dle nstants. If the response tme s larger than the task perod, then ths analyss cannot determne the response nstants of the followng jobs (snce the next job wll have some addtonal nterference) and the method halts. As an example of the mprovement made, the determnaton of the response tmes for the Γ 7 jobs took approxmately one hour wth the standard method 4. Wth the mproved method t took 5 seconds - Table 1. A smlar approach was also taken n [1] Handlng Large Hyperperods The schedulablty analyss s rgdly dependent on the hyperperod defned by the perodc tasks. For a hgh number of tasks, ths analyss can be deemed unfeasble, specally when the perods are co-prme. Ths paper ntroduces an nnovatve dea to handle large hyperperods by allowng some degree of pessmsm. Instead of consderng that all tasks are released at a crtcal 4 Usng MatLab under Wndows XP on a PIII processor at 1300 MHz.

11 functon κ (t mn,t max,last dle nstant){ next work nstant = L (last dle nstant,t mn ); work nstants = {}; whle(true) { next dle nstant = ϕ (next work nstant); next work nstant = ρ (next dle nstant); f( next work nstant > t max ) return work nstants; work nstants = work nstants {next work nstant}; }} Fgure 12. Improved pseudo-code to determne κ n the nterval ]t mn,t max ] usng the functon L (last,t) functon R (l ntal,l fnal ) { dle = 0; // last known dle nstant for ( l = l ntal ; l l fnal ; l++ ) { l R = l r + c ; // smallest possble value of l R κ = κ ( l 1 r, l r,dle); dle = max(κ ); // update last known dle nstant foreach(κ (x) κ ){ R = l r + c ; // ntal teraton do { last R = R; R = κ (x) + c + w 1 (R) w 1 (κ (x) )+ω K (R κ (x) ); f(r > l+1 r ) return cannot determne response nstant ; } whle(last R R); f(r > l R ) // update l R wth largest response nstant l R = R; }} return l mnr,..., l maxr ; } Fgure 13. Improved pseudo-code to determne l ntalr,..., l fnal R usng the functon κ (t mn,t max,last) nstant, t s possble to allow that only a small porton s released at pessmstc nstants. Hence t s possble to compromse between the pessmsm nduced and the number of teratons requred. By knowng the asynchronous crtcal nstants mposed by the perodc tasks, the analyss can encompass a reduced set of hgh prorty perodc tasks and determne the worst nstants n whch lower prorty tasks (perodc and sporadc) can be released. For example, suppose a task set of 40 perodc and 40 sporadc tasks. If the hyperperod defned by the 40 perodc tasks s too large, the system desgner determnes the asynchronous crtcal nstants of only the frst 20 perodc tasks. A suffcent test can thus be found by assumng that all lower prorty tasks, perodc and sporadc, are released at these nstants. Note that even though the number of canddates can be very large, t s fxed, makng the analyss of the lower prorty tasks take relatvely the same amount of tme. As a concrete example take the schedulablty analyss of Γ 8 n Example 1 (Table 1). The determnaton of all canddates of the asynchronous crtcal nstant of the tasks Γ 1,...,Γ 7 n Λ 7 took 4.28s and the determnaton of the response tmes of Γ 8, assumng t was released at these canddates, took 9.2s (not shown n Table 1). The worst response tme s found when the task s released at t = 925;49435;97945 and equals to 110. Snce the deadlne s 120, ths analyss s suffcent to say that Γ 8 s schedulable. If the worst response tme s larger than the deadlne, then nothng can be concluded. 8. Conclusons Ths paper presents an algorthm to analyze the schedulablty of asynchronous perodc and sporadc tasks scheduled by a fxed-prorty preemptve algorthm. The results presented n ths paper can be used to Dmnsh the pessmsm nduced by the crtcal nstant Allow offset relatonshps Determne the worst response tme of each job analyze response jtter account for mssed deadlnes Calculate the asynchronous crtcal nstant ntegrate sporadc tasks ncrease analyss speed By assumng that the release tmes are not equal to zero and hence not consderng the crtcal nstant scenaro, more than just one response tme calculaton s requred. The determnaton of the response tmes of all jobs under a hyperperod s necessary. Ths makes the overall computaton tme strongly dependent on the LCM of the tasks perods. Therefore, the proposed methods do not scale well aganst the number of perodc tasks, especally task sets usng co-prme perods. Hence, t s only expected to be used as an offlne test. However, there are a number of applcatons where the schedulablty analyss presented s manageable and useful, such as the automotve, satellte and other aerospace ndustres, where the typcal task frequency s around Hz. The ncluson of the sporadc tasks also enables a new faster schedulablty method by manpulatng the degree of pessmsm ntroduced. In essence, the lower prorty tasks

12 are consdered to be sporadc tasks released at a set of asynchronous crtcal nstants (worst possble nstants). Ths method strongly reduces the hyperperod under analyss. The ncorporaton of major model extensons found for synchronous systems, such as blockng factors, context swtch overhead, non-preemptve schedulers, dynamc prorty schedulers, arbtrary deadlnes, etc, s very appealng as future work. The ntroducton of release jtter s also of great nterest. Furthermore, a study s beng performed to allow the determnaton of L (t) wthout havng to analyze the whole nterval [0,t[. Ths enables an effcent dstrbuton of the overall method through several ndependent machnes, each one analysng a small porton of the hyperperod wth a very small overhead. Acknowledgments Ths work was motvated by our research actvtes under the scope of Projects DARIO (Dstrbuted Agency for Relable Input/Output), AIR (ARINC 653 Interface n RTEMS) [16] and RTEMS CENTRE [19]. The authors are n debt to researchers and techncal offcers at ESTEC (ESA - European Space Agency, Noordwjk) for some nformal dscussons on task tmng characterstcs of typcal spacecraft on-board software applcatons. References [1] N. Audsley. Optmal prorty assgnment and feasblty of statc prorty tasks wth arbtrary start tmes. Techncal report, Department of Computer Scence, Unversty of York, [2] N. Audsley. On Prorty Assgnment n Fxed Prorty Schedulng. Informaton Processng Letters, 79(1):39 44, [3] N. Audsley, K. Tndell, and A. Burns. The end of the lne for statc cyclc schedulng? In Ffth Euromcro Workshop on Real-tme Systems, pages 36 41, Oulu, Fnland, IEEE Computer Socety Press. [4] I. Bate and A. Burns. Schedulablty analyss of fxed prorty real-tme systems wth offsets. In Proc. of 9th Euromcro Workshop on Real-Tme Systems, pages , Toledo, Span, June IEEE Computer Socety. [5] G. Bernat. Response tme analyss of asynchronous realtme systems. Real-Tme Syst., 25(2-3): , [6] R. Devllers and J. Goossens. General response tme computaton for the deadlne drven schedulng of perodc tasks. Fundamenta Informatcae, 40(2 3): , November- December [7] J. Goossens. Schedulng of Hard Real-Tme Perodc Systems wth Varous Knds of Deadlne and Offset Constrans. PhD thess, Faculté des Scences, December [8] J. Goossens and R. Devllers. Feasblty ntervals for the deadlne drven scheduler wth arbtrary deadlnes. In I. C. Socety, edtor, The 6th Internatonal Conference on Real- Tme Computng Systems and Applcatons (RTCSA 99), pages 54 61, December [9] M. Grener, J. Goossens, and N. Navet. Near-optmal fxed prorty preemptve schedulng of offset free systems. In Proceedngs of the 14th Internatonal Conference on Network and Systems (RTNS 2006), Poters, France, May [10] K. Jeffay, D. Stanat, and C. Martel. On non-preemptve schedulng of perodc and sporadc tasks. In I. C. S. Press, edtor, Proceeedngs of the 12th IEEE Real-Tme Systems Symposum, pages , December [11] M. Joseph and P. Pandaya. Fndng response tmes n a realtme system. The Computer Journal, 29: , [12] J. Lehoczky, L. Sha, and Y. Dng. The rate monotonc schedulng algorthm: Exact characterzaton and average case behavor. In Proceedngs IEEE Real-Tme Systems Symposum, pages , Santa Monca, USA, [13] J. Leung and J. Whtehead. On the complexty of fxedprorty schedulng of perodc real-tme tasks. Performance Evaluaton, 2: , [14] J. Mäk-Turja and M. Noln. Fast and tght response-tmes for tasks wth offsets. In 17th EUROMICRO Conference on Real-Tme Systems, page 10, Palma de Mallorca Span, July IEEE. [15] R. Pellzzon and G. Lpar. Feasblty analyss of real-tme perodc tasks wth offsets. Real-Tme Systems, 30(1-2): , [16] J. Rufno, S. Flpe, M. Coutnho, S. Santos, and J. Wndsor. ARINC 653 nterface n RTEMS. In Proceedngs of the DASIA 2007 DAta Systems In Aerospace Conference, Naples, Italy, June EUROSPACE. [17] K. Shn and X. Chu. Computng tme delay and ts effects on real-tme control systems. IEEE Transactons on Control Systems Technology, 3(2): , June [18] H. Slva, A. Constantno, D. Fretas, M. Coutnho, S. Faustno, and M. Zulanello. RTEMS CENTRE - support and mantenance CENTRE to RTEMS operatng system. In Proceedngs of the DASIA 2008 DAta Systems In Aerospace Conference, Palma de Majorca, Span, May EUROSPACE. [19] H. Slva, A. Constantno, M. Mota, D. Fretas, and M. Zulanello. RTEMS CENTRE - support and mantenance to RTEMS operatng system. In Proceedngs of the DASIA 2007 DAta Systems In Aerospace Conference, Naples, Italy, June EUROSPACE. [20] K. Tndell. Addng tme-offsets to schedulablty analyss. Techncal report, Unversty of York, 1994.

Available online at ScienceDirect. Procedia Computer Science 24 (2013 ) 9 14

Available online at   ScienceDirect. Procedia Computer Science 24 (2013 ) 9 14 Avalable onlne at www.scencedrect.com ScenceDrect Proceda Computer Scence 24 (2013 ) 9 14 17th Asa Pacfc Symposum on Intellgent and Evolutonary Systems, IES2013 A Proposal of Real-Tme Schedulng Algorthm

More information

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019 5-45/65: Desgn & Analyss of Algorthms January, 09 Lecture #3: Amortzed Analyss last changed: January 8, 09 Introducton In ths lecture we dscuss a useful form of analyss, called amortzed analyss, for problems

More information

Improved Response-Time Analysis Calculations

Improved Response-Time Analysis Calculations Improved Response-Tme Analyss Calculatons Mkael Sjödn Hans Hansson 2& Department of Computer Systems 2 Dept. of Computer Engneerng Uppsala Unversty Mälardalens Högskola Sweden Sweden fmc,hanshg@docs.uu.se

More information

Elements of Economic Analysis II Lecture VI: Industry Supply

Elements of Economic Analysis II Lecture VI: Industry Supply Elements of Economc Analyss II Lecture VI: Industry Supply Ka Hao Yang 10/12/2017 In the prevous lecture, we analyzed the frm s supply decson usng a set of smple graphcal analyses. In fact, the dscusson

More information

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002 TO5 Networng: Theory & undamentals nal xamnaton Professor Yanns. orls prl, Problem [ ponts]: onsder a rng networ wth nodes,,,. In ths networ, a customer that completes servce at node exts the networ wth

More information

Improving Schedulability of Fixed-Priority Real-Time Systems using Shapers

Improving Schedulability of Fixed-Priority Real-Time Systems using Shapers Improvng Schedulablty of Fxed-Prorty Real-Tme Systems usng Shapers Lnh T.X. Phan Insup Lee Department of Computer and Informaton Scences, Unversty of Pennsylvana Emal: {lnhphan, lee}@cs.upenn.edu Abstract

More information

A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME

A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME Vesna Radonć Đogatovć, Valentna Radočć Unversty of Belgrade Faculty of Transport and Traffc Engneerng Belgrade, Serba

More information

Finance 402: Problem Set 1 Solutions

Finance 402: Problem Set 1 Solutions Fnance 402: Problem Set 1 Solutons Note: Where approprate, the fnal answer for each problem s gven n bold talcs for those not nterested n the dscusson of the soluton. 1. The annual coupon rate s 6%. A

More information

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees A Vrtual Deadlne Scheduler for Wndow-Constraned Servce Guarantees Yutng Zhang, Rchard West and Xn Q Computer Scence Department Boston Unversty Boston, MA 02215 {danazh,rchwest,xq}@cs.bu.edu Abstract Ths

More information

Applications of Myerson s Lemma

Applications of Myerson s Lemma Applcatons of Myerson s Lemma Professor Greenwald 28-2-7 We apply Myerson s lemma to solve the sngle-good aucton, and the generalzaton n whch there are k dentcal copes of the good. Our objectve s welfare

More information

OPERATIONS RESEARCH. Game Theory

OPERATIONS RESEARCH. Game Theory OPERATIONS RESEARCH Chapter 2 Game Theory Prof. Bbhas C. Gr Department of Mathematcs Jadavpur Unversty Kolkata, Inda Emal: bcgr.umath@gmal.com 1.0 Introducton Game theory was developed for decson makng

More information

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees

A Virtual Deadline Scheduler for Window-Constrained Service Guarantees A Vrtual Deadlne Scheduler for Wndow-Constraned Servce Guarantees Yutng Zhang, Rchard West and Xn Q Computer Scence Department Boston Unversty Boston, MA 02215 {danazh,rchwest,xq}@cs.bu.edu Abstract Ths

More information

Parallel Prefix addition

Parallel Prefix addition Marcelo Kryger Sudent ID 015629850 Parallel Prefx addton The parallel prefx adder presented next, performs the addton of two bnary numbers n tme of complexty O(log n) and lnear cost O(n). Lets notce the

More information

Financial mathematics

Financial mathematics Fnancal mathematcs Jean-Luc Bouchot jean-luc.bouchot@drexel.edu February 19, 2013 Warnng Ths s a work n progress. I can not ensure t to be mstake free at the moment. It s also lackng some nformaton. But

More information

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost Tamkang Journal of Scence and Engneerng, Vol. 9, No 1, pp. 19 23 (2006) 19 Economc Desgn of Short-Run CSP-1 Plan Under Lnear Inspecton Cost Chung-Ho Chen 1 * and Chao-Yu Chou 2 1 Department of Industral

More information

Evaluating Performance

Evaluating Performance 5 Chapter Evaluatng Performance In Ths Chapter Dollar-Weghted Rate of Return Tme-Weghted Rate of Return Income Rate of Return Prncpal Rate of Return Daly Returns MPT Statstcs 5- Measurng Rates of Return

More information

Lecture Note 2 Time Value of Money

Lecture Note 2 Time Value of Money Seg250 Management Prncples for Engneerng Managers Lecture ote 2 Tme Value of Money Department of Systems Engneerng and Engneerng Management The Chnese Unversty of Hong Kong Interest: The Cost of Money

More information

IN most real-time systems, predictability is achieved by

IN most real-time systems, predictability is achieved by 198 IEEE TRANSACTIONS ON COMPUTERS, VOL. 54, NO. 2, FEBRUARY 2005 Effcent Reclamng n Reservaton-Based Real-Tme Systems wth Varable Executon Tmes Marco Caccamo, Member, IEEE, Gorgo C. Buttazzo, Member,

More information

Understanding Annuities. Some Algebraic Terminology.

Understanding Annuities. Some Algebraic Terminology. Understandng Annutes Ma 162 Sprng 2010 Ma 162 Sprng 2010 March 22, 2010 Some Algebrac Termnology We recall some terms and calculatons from elementary algebra A fnte sequence of numbers s a functon of natural

More information

Cyclic Scheduling in a Job shop with Multiple Assembly Firms

Cyclic Scheduling in a Job shop with Multiple Assembly Firms Proceedngs of the 0 Internatonal Conference on Industral Engneerng and Operatons Management Kuala Lumpur, Malaysa, January 4, 0 Cyclc Schedulng n a Job shop wth Multple Assembly Frms Tetsuya Kana and Koch

More information

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013 COS 511: Theoretcal Machne Learnng Lecturer: Rob Schapre Lecture #21 Scrbe: Lawrence Dao Aprl 23, 2013 1 On-Lne Log Loss To recap the end of the last lecture, we have the followng on-lne problem wth N

More information

/ Computational Genomics. Normalization

/ Computational Genomics. Normalization 0-80 /02-70 Computatonal Genomcs Normalzaton Gene Expresson Analyss Model Computatonal nformaton fuson Bologcal regulatory networks Pattern Recognton Data Analyss clusterng, classfcaton normalzaton, mss.

More information

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena Producton and Supply Chan Management Logstcs Paolo Dett Department of Informaton Engeneerng and Mathematcal Scences Unversty of Sena Convergence and complexty of the algorthm Convergence of the algorthm

More information

A DUAL EXTERIOR POINT SIMPLEX TYPE ALGORITHM FOR THE MINIMUM COST NETWORK FLOW PROBLEM

A DUAL EXTERIOR POINT SIMPLEX TYPE ALGORITHM FOR THE MINIMUM COST NETWORK FLOW PROBLEM Yugoslav Journal of Operatons Research Vol 19 (2009), Number 1, 157-170 DOI:10.2298/YUJOR0901157G A DUAL EXTERIOR POINT SIMPLEX TYPE ALGORITHM FOR THE MINIMUM COST NETWORK FLOW PROBLEM George GERANIS Konstantnos

More information

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers II. Random Varables Random varables operate n much the same way as the outcomes or events n some arbtrary sample space the dstncton s that random varables are smply outcomes that are represented numercally.

More information

The Integration of the Israel Labour Force Survey with the National Insurance File

The Integration of the Israel Labour Force Survey with the National Insurance File The Integraton of the Israel Labour Force Survey wth the Natonal Insurance Fle Natale SHLOMO Central Bureau of Statstcs Kanfey Nesharm St. 66, corner of Bach Street, Jerusalem Natales@cbs.gov.l Abstact:

More information

Creating a zero coupon curve by bootstrapping with cubic splines.

Creating a zero coupon curve by bootstrapping with cubic splines. MMA 708 Analytcal Fnance II Creatng a zero coupon curve by bootstrappng wth cubc splnes. erg Gryshkevych Professor: Jan R. M. Röman 0.2.200 Dvson of Appled Mathematcs chool of Educaton, Culture and Communcaton

More information

Quiz on Deterministic part of course October 22, 2002

Quiz on Deterministic part of course October 22, 2002 Engneerng ystems Analyss for Desgn Quz on Determnstc part of course October 22, 2002 Ths s a closed book exercse. You may use calculators Grade Tables There are 90 ponts possble for the regular test, or

More information

EDC Introduction

EDC Introduction .0 Introducton EDC3 In the last set of notes (EDC), we saw how to use penalty factors n solvng the EDC problem wth losses. In ths set of notes, we want to address two closely related ssues. What are, exactly,

More information

We consider the problem of scheduling trains and containers (or trucks and pallets)

We consider the problem of scheduling trains and containers (or trucks and pallets) Schedulng Trans and ontaners wth Due Dates and Dynamc Arrvals andace A. Yano Alexandra M. Newman Department of Industral Engneerng and Operatons Research, Unversty of alforna, Berkeley, alforna 94720-1777

More information

AC : THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS

AC : THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS AC 2008-1635: THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS Kun-jung Hsu, Leader Unversty Amercan Socety for Engneerng Educaton, 2008 Page 13.1217.1 Ttle of the Paper: The Dagrammatc

More information

Measures of Spread IQR and Deviation. For exam X, calculate the mean, median and mode. For exam Y, calculate the mean, median and mode.

Measures of Spread IQR and Deviation. For exam X, calculate the mean, median and mode. For exam Y, calculate the mean, median and mode. Part 4 Measures of Spread IQR and Devaton In Part we learned how the three measures of center offer dfferent ways of provdng us wth a sngle representatve value for a data set. However, consder the followng

More information

Price and Quantity Competition Revisited. Abstract

Price and Quantity Competition Revisited. Abstract rce and uantty Competton Revsted X. Henry Wang Unversty of Mssour - Columba Abstract By enlargng the parameter space orgnally consdered by Sngh and Vves (984 to allow for a wder range of cost asymmetry,

More information

SIMPLE FIXED-POINT ITERATION

SIMPLE FIXED-POINT ITERATION SIMPLE FIXED-POINT ITERATION The fed-pont teraton method s an open root fndng method. The method starts wth the equaton f ( The equaton s then rearranged so that one s one the left hand sde of the equaton

More information

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9 Elton, Gruber, Brown, and Goetzmann Modern Portfolo Theory and Investment Analyss, 7th Edton Solutons to Text Problems: Chapter 9 Chapter 9: Problem In the table below, gven that the rskless rate equals

More information

A Single-Product Inventory Model for Multiple Demand Classes 1

A Single-Product Inventory Model for Multiple Demand Classes 1 A Sngle-Product Inventory Model for Multple Demand Classes Hasan Arslan, 2 Stephen C. Graves, 3 and Thomas Roemer 4 March 5, 2005 Abstract We consder a sngle-product nventory system that serves multple

More information

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement CS 286r: Matchng and Market Desgn Lecture 2 Combnatoral Markets, Walrasan Equlbrum, Tâtonnement Matchng and Money Recall: Last tme we descrbed the Hungaran Method for computng a maxmumweght bpartte matchng.

More information

Solution of periodic review inventory model with general constrains

Solution of periodic review inventory model with general constrains Soluton of perodc revew nventory model wth general constrans Soluton of perodc revew nventory model wth general constrans Prof Dr J Benkő SZIU Gödöllő Summary Reasons for presence of nventory (stock of

More information

ECE 586GT: Problem Set 2: Problems and Solutions Uniqueness of Nash equilibria, zero sum games, evolutionary dynamics

ECE 586GT: Problem Set 2: Problems and Solutions Uniqueness of Nash equilibria, zero sum games, evolutionary dynamics Unversty of Illnos Fall 08 ECE 586GT: Problem Set : Problems and Solutons Unqueness of Nash equlbra, zero sum games, evolutonary dynamcs Due: Tuesday, Sept. 5, at begnnng of class Readng: Course notes,

More information

Tests for Two Correlations

Tests for Two Correlations PASS Sample Sze Software Chapter 805 Tests for Two Correlatons Introducton The correlaton coeffcent (or correlaton), ρ, s a popular parameter for descrbng the strength of the assocaton between two varables.

More information

Instituto de Engenharia de Sistemas e Computadores de Coimbra Institute of Systems Engineering and Computers INESC - Coimbra

Instituto de Engenharia de Sistemas e Computadores de Coimbra Institute of Systems Engineering and Computers INESC - Coimbra Insttuto de Engenhara de Sstemas e Computadores de Combra Insttute of Systems Engneerng and Computers INESC - Combra Joana Das Can we really gnore tme n Smple Plant Locaton Problems? No. 7 2015 ISSN: 1645-2631

More information

An Application of Alternative Weighting Matrix Collapsing Approaches for Improving Sample Estimates

An Application of Alternative Weighting Matrix Collapsing Approaches for Improving Sample Estimates Secton on Survey Research Methods An Applcaton of Alternatve Weghtng Matrx Collapsng Approaches for Improvng Sample Estmates Lnda Tompkns 1, Jay J. Km 2 1 Centers for Dsease Control and Preventon, atonal

More information

Problem Set 6 Finance 1,

Problem Set 6 Finance 1, Carnege Mellon Unversty Graduate School of Industral Admnstraton Chrs Telmer Wnter 2006 Problem Set 6 Fnance, 47-720. (representatve agent constructon) Consder the followng two-perod, two-agent economy.

More information

Tests for Two Ordered Categorical Variables

Tests for Two Ordered Categorical Variables Chapter 253 Tests for Two Ordered Categorcal Varables Introducton Ths module computes power and sample sze for tests of ordered categorcal data such as Lkert scale data. Assumng proportonal odds, such

More information

Understanding price volatility in electricity markets

Understanding price volatility in electricity markets Proceedngs of the 33rd Hawa Internatonal Conference on System Scences - 2 Understandng prce volatlty n electrcty markets Fernando L. Alvarado, The Unversty of Wsconsn Rajesh Rajaraman, Chrstensen Assocates

More information

Optimising a general repair kit problem with a service constraint

Optimising a general repair kit problem with a service constraint Optmsng a general repar kt problem wth a servce constrant Marco Bjvank 1, Ger Koole Department of Mathematcs, VU Unversty Amsterdam, De Boelelaan 1081a, 1081 HV Amsterdam, The Netherlands Irs F.A. Vs Department

More information

Equilibrium in Prediction Markets with Buyers and Sellers

Equilibrium in Prediction Markets with Buyers and Sellers Equlbrum n Predcton Markets wth Buyers and Sellers Shpra Agrawal Nmrod Megddo Benamn Armbruster Abstract Predcton markets wth buyers and sellers of contracts on multple outcomes are shown to have unque

More information

OCR Statistics 1 Working with data. Section 2: Measures of location

OCR Statistics 1 Working with data. Section 2: Measures of location OCR Statstcs 1 Workng wth data Secton 2: Measures of locaton Notes and Examples These notes have sub-sectons on: The medan Estmatng the medan from grouped data The mean Estmatng the mean from grouped data

More information

Pivot Points for CQG - Overview

Pivot Points for CQG - Overview Pvot Ponts for CQG - Overvew By Bran Bell Introducton Pvot ponts are a well-known technque used by floor traders to calculate ntraday support and resstance levels. Ths technque has been around for decades,

More information

A Case Study for Optimal Dynamic Simulation Allocation in Ordinal Optimization 1

A Case Study for Optimal Dynamic Simulation Allocation in Ordinal Optimization 1 A Case Study for Optmal Dynamc Smulaton Allocaton n Ordnal Optmzaton Chun-Hung Chen, Dongha He, and Mchael Fu 4 Abstract Ordnal Optmzaton has emerged as an effcent technque for smulaton and optmzaton.

More information

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds Fnte Math - Fall 2016 Lecture Notes - 9/19/2016 Secton 3.3 - Future Value of an Annuty; Snkng Funds Snkng Funds. We can turn the annutes pcture around and ask how much we would need to depost nto an account

More information

Random Variables. b 2.

Random Variables. b 2. Random Varables Generally the object of an nvestgators nterest s not necessarly the acton n the sample space but rather some functon of t. Techncally a real valued functon or mappng whose doman s the sample

More information

Scribe: Chris Berlind Date: Feb 1, 2010

Scribe: Chris Berlind Date: Feb 1, 2010 CS/CNS/EE 253: Advanced Topcs n Machne Learnng Topc: Dealng wth Partal Feedback #2 Lecturer: Danel Golovn Scrbe: Chrs Berlnd Date: Feb 1, 2010 8.1 Revew In the prevous lecture we began lookng at algorthms

More information

Appendix - Normally Distributed Admissible Choices are Optimal

Appendix - Normally Distributed Admissible Choices are Optimal Appendx - Normally Dstrbuted Admssble Choces are Optmal James N. Bodurtha, Jr. McDonough School of Busness Georgetown Unversty and Q Shen Stafford Partners Aprl 994 latest revson September 00 Abstract

More information

A HEURISTIC SOLUTION OF MULTI-ITEM SINGLE LEVEL CAPACITATED DYNAMIC LOT-SIZING PROBLEM

A HEURISTIC SOLUTION OF MULTI-ITEM SINGLE LEVEL CAPACITATED DYNAMIC LOT-SIZING PROBLEM A eurstc Soluton of Mult-Item Sngle Level Capactated Dynamc Lot-Szng Problem A EUISTIC SOLUTIO OF MULTI-ITEM SIGLE LEVEL CAPACITATED DYAMIC LOT-SIZIG POBLEM Sultana Parveen Department of Industral and

More information

CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS

CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS CHAPTER 9 FUNCTIONAL FORMS OF REGRESSION MODELS QUESTIONS 9.1. (a) In a log-log model the dependent and all explanatory varables are n the logarthmc form. (b) In the log-ln model the dependent varable

More information

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8 Department of Economcs Prof. Gustavo Indart Unversty of Toronto November 9, 2006 SOLUTION ECO 209Y MACROECONOMIC THEORY Term Test #1 A LAST NAME FIRST NAME STUDENT NUMBER Crcle your secton of the course:

More information

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8

University of Toronto November 9, 2006 ECO 209Y MACROECONOMIC THEORY. Term Test #1 L0101 L0201 L0401 L5101 MW MW 1-2 MW 2-3 W 6-8 Department of Economcs Prof. Gustavo Indart Unversty of Toronto November 9, 2006 SOLUTION ECO 209Y MACROECONOMIC THEORY Term Test #1 C LAST NAME FIRST NAME STUDENT NUMBER Crcle your secton of the course:

More information

Least Cost Strategies for Complying with New NOx Emissions Limits

Least Cost Strategies for Complying with New NOx Emissions Limits Least Cost Strateges for Complyng wth New NOx Emssons Lmts Internatonal Assocaton for Energy Economcs New England Chapter Presented by Assef A. Zoban Tabors Caramans & Assocates Cambrdge, MA 02138 January

More information

Numerical Analysis ECIV 3306 Chapter 6

Numerical Analysis ECIV 3306 Chapter 6 The Islamc Unversty o Gaza Faculty o Engneerng Cvl Engneerng Department Numercal Analyss ECIV 3306 Chapter 6 Open Methods & System o Non-lnear Eqs Assocate Pro. Mazen Abualtaye Cvl Engneerng Department,

More information

ISE High Income Index Methodology

ISE High Income Index Methodology ISE Hgh Income Index Methodology Index Descrpton The ISE Hgh Income Index s desgned to track the returns and ncome of the top 30 U.S lsted Closed-End Funds. Index Calculaton The ISE Hgh Income Index s

More information

A Bootstrap Confidence Limit for Process Capability Indices

A Bootstrap Confidence Limit for Process Capability Indices A ootstrap Confdence Lmt for Process Capablty Indces YANG Janfeng School of usness, Zhengzhou Unversty, P.R.Chna, 450001 Abstract The process capablty ndces are wdely used by qualty professonals as an

More information

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1 Survey of Math: Chapter 22: Consumer Fnance Borrowng Page 1 APR and EAR Borrowng s savng looked at from a dfferent perspectve. The dea of smple nterest and compound nterest stll apply. A new term s the

More information

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem.

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem. Topcs on the Border of Economcs and Computaton December 11, 2005 Lecturer: Noam Nsan Lecture 7 Scrbe: Yoram Bachrach 1 Nash s Theorem We begn by provng Nash s Theorem about the exstance of a mxed strategy

More information

FM303. CHAPTERS COVERED : CHAPTERS 5, 8 and 9. LEARNER GUIDE : UNITS 1, 2 and 3.1 to 3.3. DUE DATE : 3:00 p.m. 19 MARCH 2013

FM303. CHAPTERS COVERED : CHAPTERS 5, 8 and 9. LEARNER GUIDE : UNITS 1, 2 and 3.1 to 3.3. DUE DATE : 3:00 p.m. 19 MARCH 2013 Page 1 of 11 ASSIGNMENT 1 ST SEMESTER : FINANCIAL MANAGEMENT 3 () CHAPTERS COVERED : CHAPTERS 5, 8 and 9 LEARNER GUIDE : UNITS 1, 2 and 3.1 to 3.3 DUE DATE : 3:00 p.m. 19 MARCH 2013 TOTAL MARKS : 100 INSTRUCTIONS

More information

FORD MOTOR CREDIT COMPANY SUGGESTED ANSWERS. Richard M. Levich. New York University Stern School of Business. Revised, February 1999

FORD MOTOR CREDIT COMPANY SUGGESTED ANSWERS. Richard M. Levich. New York University Stern School of Business. Revised, February 1999 FORD MOTOR CREDIT COMPANY SUGGESTED ANSWERS by Rchard M. Levch New York Unversty Stern School of Busness Revsed, February 1999 1 SETTING UP THE PROBLEM The bond s beng sold to Swss nvestors for a prce

More information

Prospect Theory and Asset Prices

Prospect Theory and Asset Prices Fnance 400 A. Penat - G. Pennacch Prospect Theory and Asset Prces These notes consder the asset prcng mplcatons of nvestor behavor that ncorporates Prospect Theory. It summarzes an artcle by N. Barbers,

More information

A New Uniform-based Resource Constrained Total Project Float Measure (U-RCTPF) Roni Levi. Research & Engineering, Haifa, Israel

A New Uniform-based Resource Constrained Total Project Float Measure (U-RCTPF) Roni Levi. Research & Engineering, Haifa, Israel Management Studes, August 2014, Vol. 2, No. 8, 533-540 do: 10.17265/2328-2185/2014.08.005 D DAVID PUBLISHING A New Unform-based Resource Constraned Total Project Float Measure (U-RCTPF) Ron Lev Research

More information

New Distance Measures on Dual Hesitant Fuzzy Sets and Their Application in Pattern Recognition

New Distance Measures on Dual Hesitant Fuzzy Sets and Their Application in Pattern Recognition Journal of Artfcal Intellgence Practce (206) : 8-3 Clausus Scentfc Press, Canada New Dstance Measures on Dual Hestant Fuzzy Sets and Ther Applcaton n Pattern Recognton L Xn a, Zhang Xaohong* b College

More information

3: Central Limit Theorem, Systematic Errors

3: Central Limit Theorem, Systematic Errors 3: Central Lmt Theorem, Systematc Errors 1 Errors 1.1 Central Lmt Theorem Ths theorem s of prme mportance when measurng physcal quanttes because usually the mperfectons n the measurements are due to several

More information

UNIVERSITY OF NOTTINGHAM

UNIVERSITY OF NOTTINGHAM UNIVERSITY OF NOTTINGHAM SCHOOL OF ECONOMICS DISCUSSION PAPER 99/28 Welfare Analyss n a Cournot Game wth a Publc Good by Indraneel Dasgupta School of Economcs, Unversty of Nottngham, Nottngham NG7 2RD,

More information

Optimal Service-Based Procurement with Heterogeneous Suppliers

Optimal Service-Based Procurement with Heterogeneous Suppliers Optmal Servce-Based Procurement wth Heterogeneous Supplers Ehsan Elah 1 Saf Benjaafar 2 Karen L. Donohue 3 1 College of Management, Unversty of Massachusetts, Boston, MA 02125 2 Industral & Systems Engneerng,

More information

Problems to be discussed at the 5 th seminar Suggested solutions

Problems to be discussed at the 5 th seminar Suggested solutions ECON4260 Behavoral Economcs Problems to be dscussed at the 5 th semnar Suggested solutons Problem 1 a) Consder an ultmatum game n whch the proposer gets, ntally, 100 NOK. Assume that both the proposer

More information

Bid-auction framework for microsimulation of location choice with endogenous real estate prices

Bid-auction framework for microsimulation of location choice with endogenous real estate prices Bd-aucton framework for mcrosmulaton of locaton choce wth endogenous real estate prces Rcardo Hurtuba Mchel Berlare Francsco Martínez Urbancs Termas de Chllán, Chle March 28 th 2012 Outlne 1) Motvaton

More information

Labor Market Transitions in Peru

Labor Market Transitions in Peru Labor Market Transtons n Peru Javer Herrera* Davd Rosas Shady** *IRD and INEI, E-mal: jherrera@ne.gob.pe ** IADB, E-mal: davdro@adb.org The Issue U s one of the major ssues n Peru However: - The U rate

More information

MgtOp 215 Chapter 13 Dr. Ahn

MgtOp 215 Chapter 13 Dr. Ahn MgtOp 5 Chapter 3 Dr Ahn Consder two random varables X and Y wth,,, In order to study the relatonshp between the two random varables, we need a numercal measure that descrbes the relatonshp The covarance

More information

Notes on experimental uncertainties and their propagation

Notes on experimental uncertainties and their propagation Ed Eyler 003 otes on epermental uncertantes and ther propagaton These notes are not ntended as a complete set of lecture notes, but nstead as an enumeraton of some of the key statstcal deas needed to obtan

More information

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization CS 234r: Markets for Networks and Crowds Lecture 4 Auctons, Mechansms, and Welfare Maxmzaton Sngle-Item Auctons Suppose we have one or more tems to sell and a pool of potental buyers. How should we decde

More information

Linear Combinations of Random Variables and Sampling (100 points)

Linear Combinations of Random Variables and Sampling (100 points) Economcs 30330: Statstcs for Economcs Problem Set 6 Unversty of Notre Dame Instructor: Julo Garín Sprng 2012 Lnear Combnatons of Random Varables and Samplng 100 ponts 1. Four-part problem. Go get some

More information

Dr. A. Sudhakaraiah* V. Rama Latha E.Gnana Deepika

Dr. A. Sudhakaraiah* V. Rama Latha E.Gnana Deepika Internatonal Journal Of Scentfc & Engneerng Research, Volume, Issue 6, June-0 ISSN - Splt Domnatng Set of an Interval Graph Usng an Algorthm. Dr. A. Sudhakaraah* V. Rama Latha E.Gnana Deepka Abstract :

More information

Welfare Aspects in the Realignment of Commercial Framework. between Japan and China

Welfare Aspects in the Realignment of Commercial Framework. between Japan and China Prepared for the 13 th INFORUM World Conference n Huangshan, Chna, July 3 9, 2005 Welfare Aspects n the Realgnment of Commercal Framework between Japan and Chna Toshak Hasegawa Chuo Unversty, Japan Introducton

More information

The convolution computation for Perfectly Matched Boundary Layer algorithm in finite differences

The convolution computation for Perfectly Matched Boundary Layer algorithm in finite differences The convoluton computaton for Perfectly Matched Boundary Layer algorthm n fnte dfferences Herman Jaramllo May 10, 2016 1 Introducton Ths s an exercse to help on the understandng on some mportant ssues

More information

Macroeconomic Theory and Policy

Macroeconomic Theory and Policy ECO 209 Macroeconomc Theory and Polcy Lecture 7: The Open Economy wth Fxed Exchange Rates Gustavo Indart Slde 1 Open Economy under Fxed Exchange Rates Let s consder an open economy wth no captal moblty

More information

Topics on the Border of Economics and Computation November 6, Lecture 2

Topics on the Border of Economics and Computation November 6, Lecture 2 Topcs on the Border of Economcs and Computaton November 6, 2005 Lecturer: Noam Nsan Lecture 2 Scrbe: Arel Procacca 1 Introducton Last week we dscussed the bascs of zero-sum games n strategc form. We characterzed

More information

Ch Rival Pure private goods (most retail goods) Non-Rival Impure public goods (internet service)

Ch Rival Pure private goods (most retail goods) Non-Rival Impure public goods (internet service) h 7 1 Publc Goods o Rval goods: a good s rval f ts consumpton by one person precludes ts consumpton by another o Excludable goods: a good s excludable f you can reasonably prevent a person from consumng

More information

4. Greek Letters, Value-at-Risk

4. Greek Letters, Value-at-Risk 4 Greek Letters, Value-at-Rsk 4 Value-at-Rsk (Hull s, Chapter 8) Math443 W08, HM Zhu Outlne (Hull, Chap 8) What s Value at Rsk (VaR)? Hstorcal smulatons Monte Carlo smulatons Model based approach Varance-covarance

More information

Dynamic Analysis of Knowledge Sharing of Agents with. Heterogeneous Knowledge

Dynamic Analysis of Knowledge Sharing of Agents with. Heterogeneous Knowledge Dynamc Analyss of Sharng of Agents wth Heterogeneous Kazuyo Sato Akra Namatame Dept. of Computer Scence Natonal Defense Academy Yokosuka 39-8686 JAPAN E-mal {g40045 nama} @nda.ac.jp Abstract In ths paper

More information

An Efficient Heuristic Algorithm for m- Machine No-Wait Flow Shops

An Efficient Heuristic Algorithm for m- Machine No-Wait Flow Shops An Effcent Algorthm for m- Machne No-Wat Flow Shops Dpak Laha and Sagar U. Sapkal Abstract We propose a constructve heurstc for the well known NP-hard of no-wat flow shop schedulng. It s based on the assumpton

More information

Consumption Based Asset Pricing

Consumption Based Asset Pricing Consumpton Based Asset Prcng Mchael Bar Aprl 25, 208 Contents Introducton 2 Model 2. Prcng rsk-free asset............................... 3 2.2 Prcng rsky assets................................ 4 2.3 Bubbles......................................

More information

Facility Location Problem. Learning objectives. Antti Salonen Farzaneh Ahmadzadeh

Facility Location Problem. Learning objectives. Antti Salonen Farzaneh Ahmadzadeh Antt Salonen Farzaneh Ahmadzadeh 1 Faclty Locaton Problem The study of faclty locaton problems, also known as locaton analyss, s a branch of operatons research concerned wth the optmal placement of facltes

More information

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES ECO 209 MACROECONOMIC THEOR AND POLIC LECTURE 8: THE OPEN ECONOM WITH FIXED EXCHANGE RATES Gustavo Indart Slde 1 OPEN ECONOM UNDER FIXED EXCHANGE RATES Let s consder an open economy wth no captal moblty

More information

Spurious Seasonal Patterns and Excess Smoothness in the BLS Local Area Unemployment Statistics

Spurious Seasonal Patterns and Excess Smoothness in the BLS Local Area Unemployment Statistics Spurous Seasonal Patterns and Excess Smoothness n the BLS Local Area Unemployment Statstcs Keth R. Phllps and Janguo Wang Federal Reserve Bank of Dallas Research Department Workng Paper 1305 September

More information

MULTIPLE CURVE CONSTRUCTION

MULTIPLE CURVE CONSTRUCTION MULTIPLE CURVE CONSTRUCTION RICHARD WHITE 1. Introducton In the post-credt-crunch world, swaps are generally collateralzed under a ISDA Master Agreement Andersen and Pterbarg p266, wth collateral rates

More information

- contrast so-called first-best outcome of Lindahl equilibrium with case of private provision through voluntary contributions of households

- contrast so-called first-best outcome of Lindahl equilibrium with case of private provision through voluntary contributions of households Prvate Provson - contrast so-called frst-best outcome of Lndahl equlbrum wth case of prvate provson through voluntary contrbutons of households - need to make an assumpton about how each household expects

More information

Multifactor Term Structure Models

Multifactor Term Structure Models 1 Multfactor Term Structure Models A. Lmtatons of One-Factor Models 1. Returns on bonds of all maturtes are perfectly correlated. 2. Term structure (and prces of every other dervatves) are unquely determned

More information

Note on Cubic Spline Valuation Methodology

Note on Cubic Spline Valuation Methodology Note on Cubc Splne Valuaton Methodology Regd. Offce: The Internatonal, 2 nd Floor THE CUBIC SPLINE METHODOLOGY A model for yeld curve takes traded yelds for avalable tenors as nput and generates the curve

More information

Resource Allocation with Lumpy Demand: To Speed or Not to Speed?

Resource Allocation with Lumpy Demand: To Speed or Not to Speed? Resource Allocaton wth Lumpy Demand: To Speed or Not to Speed? Track: Operatons Plannng, Schedulng and Control Abstract Gven multple products wth unque lumpy demand patterns, ths paper explores the determnaton

More information

Chapter 10 Making Choices: The Method, MARR, and Multiple Attributes

Chapter 10 Making Choices: The Method, MARR, and Multiple Attributes Chapter 0 Makng Choces: The Method, MARR, and Multple Attrbutes INEN 303 Sergy Butenko Industral & Systems Engneerng Texas A&M Unversty Comparng Mutually Exclusve Alternatves by Dfferent Evaluaton Methods

More information

arxiv: v2 [math.co] 6 Apr 2016

arxiv: v2 [math.co] 6 Apr 2016 On the number of equvalence classes of nvertble Boolean functons under acton of permutaton of varables on doman and range arxv:1603.04386v2 [math.co] 6 Apr 2016 Marko Carć and Modrag Žvkovć Abstract. Let

More information

Stochastic job-shop scheduling: A hybrid approach combining pseudo particle swarm optimization and the Monte Carlo method

Stochastic job-shop scheduling: A hybrid approach combining pseudo particle swarm optimization and the Monte Carlo method 123456789 Bulletn of the JSME Journal of Advanced Mechancal Desgn, Systems, and Manufacturng Vol.10, No.3, 2016 Stochastc job-shop schedulng: A hybrd approach combnng pseudo partcle swarm optmzaton and

More information