Hybrid Equations (HyEQ) Toolbox v2.02 A Toolbox for Simulating Hybrid Systems in MATLAB/Simulink R

Size: px
Start display at page:

Download "Hybrid Equations (HyEQ) Toolbox v2.02 A Toolbox for Simulating Hybrid Systems in MATLAB/Simulink R"

Transcription

1 Hybrid Equaions (HyEQ) Toolbo v. A Toolbo for Simulaing Hybrid Sysems in MATLAB/Simulink R Ricardo G. Sanfelice Universiy of California Sana Cruz, CA 9564 USA David A. Copp Universiy of California Sana Barbara, CA 939 USA Ocober 3, 4 Absrac Pablo Nanez Universidad de Los Andes Colombia This noe describes he Hybrid Equaions (HyEQ) Toolbo implemened in MATLAB/Simulink for he simulaion of hybrid dynamical sysems. This oolbo is capable of simulaing individual and inerconneced hybrid sysems where muliple hybrid sysems are conneced and inerac such as a bouncing ball on a moving plaform, fireflies synchronizing heir flashing, and more. The Simulink implemenaion includes four basic blocks ha define he dynamics of a hybrid sysem. These include a flow map, flow se, ump map, and ump se. The flows and umps of he sysem are compued by he inegraor sysem which is comprised of blocks ha compue he coninuous dynamics of he hybrid sysem, rigger umps, updae he sae of he sysem and simulaion ime a umps, and sop he simulaion. We also describe a lie simulaor which allows for faser simulaion. Conens Inroducion Insallaion 3 3 Lie HyEQ Simulaor: A sand-alone MATLAB code for simulaion of hybrid sysems wihou inpus 3 3. Solver Funcion Evens Deecion Jump Map Sofware Requiremens Configuraion of Solver Iniializaion Posprocessing and Ploing soluions HyEQ Simulaor: A Simulink implemenaion for simulaion of single and inerconneced hybrid sysems wih or wihou inpus 3 4. The Inegraor Sysem CT Dynamics Jump Logic Updae Logic Sop Logic Sofware Requiremens Configuraion of HyEQ Simulaor wih embedded funcions for Windows Configuraion of HyEQ Simulaor wih embedded funcions for Mac/Linu Configuraion of Inegraion Scheme Iniializaion Posprocessing and Ploing soluions Eamples

2 6 Furher Reading 35 7 Acknowledgmens 36 8 References 36 Inroducion To ge sared, a webinar inroducing he HyEQ Toolbo is available a hp:// A free wo-sep regisraion is required by Mahworks. A hybrid sysem is a dynamical sysem wih coninuous and discree dynamics. Several mahemaical models for hybrid sysems have appeared in lieraure. In his paper, we consider he framework for hybrid sysems used in [3,4], where a hybrid sysem H on a sae space R n wih inpu space R m is defined by he following obecs: A se C R n R m called he flow se. A funcion f : R n R m R n called he flow map. A se D R n R m called he ump se. A funcion g : R n R m R n called he ump map. We consider he simulaion in MATLAB/Simulink of hybrid sysems H = (C, f, D, g) wrien as H :, u R m { ẋ = f(, u) (, u) C + = g(, u) (, u) D. () The flow map f defines he coninuous dynamics on he flow se C, while he ump map g defines he discree dynamics on he ump se D. These obecs are referred o as he daa of he hybrid sysem H, which a imes is eplicily denoed as H = (C, f, D, g). We illusrae his framework in a simple, ye rich in behavior, hybrid sysem. Eample. (bouncing ball sysem) Consider a model for a bouncing ball wrien as [ ] f() :=, C := { R γ } () [ ] g() :=, D := { R λ, } (3) where γ > is he graviy consan and λ [, ) is he resiuion coefficien. In his model, we consider he ball o be bouncing on a floor a a heigh of. This model is re-visied as an eample in Secion 3 and Secion 5. The remainder of his noe is organized as follows. In Secion, we describe how o insall he HyEQ Toolbo in MATLAB. In Secion 3, we inroduce he Lie HyEQ Simulaor for solving hybrid sysems wihou inpus. In Secion 4, we inroduce he HyEQ Simulaor implemened in Simulink for solving single and inerconneced hybrid sysems wih inpus. In Secion 5, we work hrough several eamples for he simulaion of single and inerconneced hybrid sysems. In Secion 6, we give direcions o where he simulaor files can be downloaded.

3 Insallaion The following procedure describes how o insall he Hybrid Equaions (HyEQ) Toolbo in MATLAB. This insallaion adds useful.m files o he MATLAB library and several blocks o he Simulink block library. Seps for insallaion:. Download he HyEQ Toolbo from MATLAB Cenral or he auhor s websie a hps://hybrid. soe.ucsc.edu/sofware.. Erac all files and save in any place (ecep he roo folder). 3. Open MATLAB and change he curren folder o he folder where he insall.m is locaed. 4. Type insall in he command window and hi ener o run he file insall.m. 5. Follow he on-screen promps. Mus answer yes o he quesion: Add oolbo permanenly ino your sarup pah (highly recommended)? Y/E/N [Y]: y 6. Once insallaion has finished, close and hen reopen MATLAB. Now he HyEQ Toolbo is ready for use. If you wish o uninsall he HyEQ Toolbo from MATLAB, simply run he bclean.m file inside he HyEQ Toolbo V folder, and follow he on-screen promps. 3 Lie HyEQ Simulaor: A sand-alone MATLAB code for simulaion of hybrid sysems wihou inpus One way o simulae hybrid sysems is o use ODE funcion calls wih evens in MATLAB (see, e.g., []). Such an implemenaion gives fas simulaion of a hybrid sysem. In he lie HyEQ solver, four basic funcions are used o define he daa of he hybrid sysem H as in () (wihou inpus): The flow map is defined in he MATLAB funcion f.m. The inpu o his funcion is a vecor wih componens defining he sae of he sysem. Is oupu is he value of he flow map f. The flow se is defined in he MATLAB funcion C.m. The inpu o his funcion is a vecor wih componens defining he sae of he sysem. Is oupu is equal o if he sae belongs o he se C or equal o oherwise. The ump map is defined in he MATLAB funcion g.m. Is inpu is a vecor wih componens defining he sae of he sysem. Is oupu is he value of he ump map g. The ump se is defined in he MATLAB funcion D.m. Is inpu is a vecor wih componens defining he sae of he sysem. Is oupu is equal o if he sae belongs o D or equal o oherwise. Our Lie HyEQ Simulaor uses a main funcion run.m o iniialize, run, and plo soluions for he simulaion, funcions f.m, C.m, g.m, and D.m o implemen he daa of he hybrid sysem, and HyEQsolver.m which will solve he differenial equaions by inegraing he coninuous dynamics, ẋ = f(), and umping by he updae law + = g(). The ODE solver called in HyEQsolver.m iniially uses he iniial or mos recen sep size, and afer each inegraion, he algorihms in HyEQsolver.m check o see if he soluion is in he se C, D, or neiher. Depending on which se he soluion is in, he simulaion is accordingly rese following he dynamics given in f or g, or he simulaion is sopped. This implemenaion is fas because i also does no sore variables o he workspace and only uses buil-in ODE funcion calls. Time and ump horizons are se for he simulaion using TSPAN = [TSTART TFINAL] as he ime inerval of he simulaion and JSPAN = [JSTART JSTOP] as he inerval for he number of discree umps allowed. The simulaion sops when eiher he ime or ump horizon, i.e. he final value of eiher inerval, is reached. The eample below shows how o use he HyEQ solver o simulae a bouncing ball. 3

4 Eample. (bouncing ball wih Lie HyEQ Solver) Consider he hybrid sysem model for he bouncing ball wih daa given in Eample.. For his eample, we consider he ball o be bouncing on a floor a zero heigh. The consans for he bouncing ball sysem are γ = 9.8 and λ =.8. The following procedure is used o simulae his eample in he Lie HyEQ Solver: Inside he MATLAB scrip run.m, iniial condiions, simulaion horizons, a rule for umps, ode solver opions, and a sep size coefficien are defined. The funcion HyEQsolver.m is called in order o run he simulaion, and a scrip for ploing soluions is included. Then he MATLAB funcions f.m, C.m, g.m, D.m are edied according o he daa given above. Finally, he simulaion is run by clicking he run buon in run.m or by calling run.m in he MATLAB command window. Eample code for each of he MATLAB files run.m, f.m, C.m, g.m, and D.m is given below. funcion run % iniial condiions 3 _ = ; 4 _ = ; 5 = [_;_]; 6 % simulaion horizon 7 TSPAN=[ ]; 8 JSPAN = [ ]; 9 % rule for umps % rule = -> prioriy for umps % rule = -> prioriy for flows rule = ; 3 opions = odese( RelTol,e-6, MaSep,.); 4 % simulae 5 [,,] = HyEQsolver(@f,@g,@C,@D,,TSPAN,JSPAN,rule,opions); 6 % plo soluion 7 figure() % posiion 8 clf 9 subplo(,,),ploflows(,,(:,)) grid on ylabel( ) subplo(,,),ploumps(,,(:,)) 3 grid on 4 ylabel( ) 5 figure() % velociy 6 clf 7 subplo(,,),ploflows(,,(:,)) 8 grid on 9 ylabel( ) 3 subplo(,,),ploumps(,,(:,)) 3 grid on 3 ylabel( ) 33 % plo hybrid arc 34 plohybridarc(,,) 35 label( ) 36 ylabel( ) 37 zlabel( ) 4

5 funcion do = f() % sae 3 = (); 4 = (); 5 % differenial equaions 6 do = [ ; -9.8]; 7 end funcion [value discree] = C() = (); 3 if >= 4 value = ; 5 else 6 value = ; 7 end 8 end funcion plus = g() % sae 3 = (); 4 = (); 5 plus = [- ; -.8*]; 6 end funcion inside = D() = (); 3 = (); 4 if ( <= && <= ) 5 inside = ; 6 else 7 inside = ; 8 end 9 end flows [] flows [] umps [] umps [] (a) Heigh (b) Velociy Figure : Soluion of Eample. 5

6 Figure : Hybrid arc corresponding o a soluion of Eample.: heigh A soluion o he bouncing ball sysem from (, ) = [, ] and wih T SP AN = [ ], JSP AN = [ ], rule =, is depiced in Figure (a) (heigh) and Figure (b) (velociy). Boh he proecion ono and are shown. Figure depics he corresponding hybrid arc for he posiion sae. For MATLAB files of his eample, see Eamples/Eample.. 3. Solver Funcion The solver funcion HyEQsolver solves he hybrid sysem using hree differen funcions as shown below. Firs, he flows are calculaed using he buil-in ODE solver funcion ODE45 in MATLAB. If he soluion leaves he flow se C, he discree even is deeced using he funcion zeroevens as shown in Secion 3... When he sae umps, he ne value of he sae is calculaed via he ump map g using he funcion ump as shown in Secion 3... funcion [ ] = HyEQsolver(f,g,C,D,,TSPAN,JSPAN,rule,opions) %HYEQSOLVER solves hybrid equaions. 3 % Syna: [ ] = HyEQsolver(f,g,C,D,,TSPAN,JSPAN,rule,opions) 4 % compues soluions o he hybrid equaions 5 % 6 % \do{} = f() \in C ˆ+ = g() \in D 7 % 8 % where is he sae, f is he flow map, g is he ump map, C is he 9 % flow se, and D is he ump se. I oupus he sae raecory (,) % -> (,), where is he flow ime parameer and is he ump % parameer. 6

7 % 3 % defines he iniial condiion for he sae. 4 % 5 % TSPAN = [TSTART TFINAL] is he ime inerval. JSPAN = [JSTART JSTOP] is 6 % he inerval for discree umps. The algorihm sop when he firs 7 % sop condiion is reached. 8 % 9 % rule for umps % rule = (defaul) -> prioriy for umps rule = -> prioriy for % flows % 3 % opions - opions for he solver see odese f.e. 4 % opions = odese( RelTol,e-6); 5 % 6 % Eample: Bouncing ball wih Lie HyEQ Solver 7 % 8 % % Consider he hybrid sysem model for he bouncing ball wih daa given in 9 % % Eample.. For his eample, we consider he ball o be bouncing on a 3 % % floor a zero heigh. The consans for he bouncing ball sysem are 3 % % \gamma=9.8 and \lambda=.8. The following procedure is used o 3 % % simulae his eample in he Lie HyEQ Solver: 33 % 34 % % * Inside he MATLAB scrip run_e_.m, iniial condiions, simulaion 35 % % horizons, a rule for umps, ode solver opions, and a sep size 36 % % coefficien are defined. The funcion HyEQsolver.m is called in order o 37 % % run he simulaion, and a scrip for ploing soluions is included. 38 % % * Then he MATLAB funcions f_e_.m, C_e_.m, g_e_.m, D_e_.m 39 % % are edied according o he daa given below. 4 % % * Finally, he simulaion is run by clicking he run buon in 4 % % run_e_.m or by calling run_e_.m in he MATLAB command window. 4 % 43 % % For furher informaion, ype in he command window: 44 % helpview([ Eample.hml ]); 45 % 46 % % Define iniial condiions 47 % _ = ; 48 % _ = ; 49 % = [_; _]; 5 % 5 % % Se simulaion horizon 5 % TSPAN = [ ]; 53 % JSPAN = [ ]; 54 % 55 % % Se rule for umps and ODE solver opions 56 % % 57 % % rule = -> prioriy for umps 58 % % 59 % % rule = -> prioriy for flows 6 % % 6 % % se he maimum sep lengh. A each run of he 6 % % inegraor he opion MaSep is se o 63 % % (ime lengh of las inegraion)*masepcoefficien. 64 % % Defaul value =. 65 % 7

8 66 % rule = ; 67 % 68 % opions = odese( RelTol,e-6, MaSep,.); 69 % 7 % % Simulae using he HyEQSolver scrip 7 % % Given he malab funcions ha models he flow map, ump map, 7 % % flow se and ump se (f_e_, g_e_, C_e_, and D_e_ 73 % % respecively) 74 % 75 % [ ] = 76 %,TSPAN,JSPAN,rule,opions); 77 % 78 % % plo soluion 79 % 8 % figure() % posiion 8 % clf 8 % subplo(,,),ploflows(,,(:,)) 83 % grid on 84 % ylabel( ) 85 % 86 % subplo(,,),ploumps(,,(:,)) 87 % grid on 88 % ylabel( ) 89 % 9 % figure() % velociy 9 % clf 9 % subplo(,,),ploflows(,,(:,)) 93 % grid on 94 % ylabel( ) 95 % 96 % subplo(,,),ploumps(,,(:,)) 97 % grid on 98 % ylabel( ) 99 % % % plo hybrid arc % % plohybridarc(,,) 3 % label( ) 4 % ylabel( ) 5 % zlabel( ) 6 % 7 % % plo soluion using ploharc and ploharccolor 8 % 9 % figure(4) % posiion % clf % subplo(,,), ploharc(,,(:,)); % grid on 3 % ylabel( _ posiion ) 4 % subplo(,,), ploharc(,,(:,)); 5 % grid on 6 % ylabel( _ velociy ) 7 % 8 % 9 % % plo a phase plane 8

9 % figure(5) % posiion % clf % ploharccolor((:,),,(:,),); 3 % label( _ ) 4 % ylabel( _ ) 5 % grid on 6 % 7 % % Malab M-file Proec: HyEQ Hybrid Dynamics and Conrol Lab, 9 % hp:// sricardo/inde.php?n=main.sofware 3 % hp://hybridsimulaor.wordpress.com/ 3 % Filename: HyEQsolver.m 3 % % See also ploflows, ploharc, ploharccolor, ploharccolor3d, 34 % plohybridarc, ploumps. 35 % Hybrid Dynamics and Conrol Lab, 36 % Revision:... Dae: 4/3/4 :48: if eis( rule, var ) 4 rule = ; 4 end 4 43 if eis( opions, var ) 44 opions = odese(); 45 end % simulaion horizon 48 sar = TSPAN(); 49 final = TSPAN(end); 5 5 % simulae 5 opions = odese(opions, Evens,@(,) zeroevens(,c,d,rule)); 53 ou = sar; 54 ou =. ; 55 ou = JSPAN(); 56 = ou(end); % Jump if ump is prioriized: 59 if rule == 6 while (<JSPAN(end)) 6 % Check if value i is possible o ump curren posiion 6 insided = D(ou(end,:). ); 63 if insided == 64 [ ou ou ou] = ump(g,,ou,ou,ou); 65 else 66 break; 67 end 68 end 69 end 7 fprinf( Compleed: %3.f%%,); 7 while ( < JSPAN(end) && ou(end) < TSPAN(end)) 7 % Check if i is possible o flow from curren posiion 73 insidec = C(ou(end,:). ); 9

10 74 if insidec == 75 [,] = ode45(@(,) f(),[ou(end) final],ou(end,:)., opions); 76 n = lengh(); 77 ou = [ou; ]; 78 ou = [ou; ]; 79 ou = [ou; *ones(,n) ]; 8 end 8 8 %Check if i is possible o ump 83 insided = D(ou(end,:). ); 84 if insided == 85 break; 86 else 87 if rule == 88 while (<JSPAN(end)) 89 % Check if i is possible o ump from curren posiion 9 insided = D(ou(end,:). ); 9 if insided == 9 [ ou ou ou] = ump(g,,ou,ou,ou); 93 else 94 break; 95 end 96 end 97 else 98 [ ou ou ou] = ump(g,,ou,ou,ou); 99 end end fprinf( \b\b\b\b%3.f%%,ma(*/jspan(end),*ou(end)/tspan(end))); end 3 = ou; 4 = ou; 5 = ou; 6 fprinf( \ndone\n ); 7 end 3.. Evens Deecion funcion [value,iserminal,direcion] = zeroevens(,c,d,rule ) iserminal = ; 3 direcion = -; 4 insidec = C(); 5 if insidec == 6 % Ouside of C 7 value = ; 8 elseif (rule == ) 9 % If prioriy for ump, sop if inside D insided = D(); if insided == % Inside D, inside C 3 value = ; 4 else 5 % ouside D, inside C 6 value = ;

11 7 end 8 else 9 % If inside C and no prioriy for ump or prioriy of ump and ouside % of D value = ; end 3 end 3.. Jump Map funcion [ ou ou ou] = ump(g,,ou,ou,ou) % Jump 3 = +; 4 y = g(ou(end,:). ); 5 % Save resuls 6 ou = [ou; ou(end)]; 7 ou = [ou; y. ]; 8 ou = [ou; ]; 9 end 3. Sofware Requiremens In order o run simulaions using he Lie HyEQ Simulaor, MATLAB R3 or newer is required. 3.3 Configuraion of Solver Before a simulaion is sared, i is imporan o deermine he needed inegraor scheme, zero-cross deecion seings, precision, and oher olerances. Using he defaul seings does no always give he mos efficien or mos accurae simulaions. In he Lie HyEQ Simulaor, hese parameers are edied in he run.m file using opions = odese(reltol,e-6,masep,.);. 3.4 Iniializaion The Lie HyEQ Simulaor is iniialized and run by calling he funcion run.m. Inside run.m, he iniial condiions, simulaion horizons TSPAN and JSPAN, a rule for umps, and simulaion olerances are defined. Afer all of he parameers are defined, he funcion HyEQsolver is called, and he simulaion runs. See below for sample code o iniialize and run he bouncing ball eample, Eample.. % iniial condiions _ = ; 3 _ = ; 4 = [_;_]; 5 % simulaion horizon 6 TSPAN=[,]; 7 JSPAN = [,]; 8 % rule for umps 9 % rule = -> prioriy for umps % rule = -> prioriy for flows rule = ; opions = odese( RelTol,e-6, MaSep,.); 3 % simulae

12 4 [,,] = HyEQsolver(@f,@g,@C,@D,,TSPAN,JSPAN,rule,opions); 3.5 Posprocessing and Ploing soluions The funcion run.m is also used o plo soluions afer he simulaions is complee. See below for sample code o plo soluions o he bouncing ball eample, Eample.. % plo soluion figure() % posiion 3 clf 4 subplo(,,),ploflows(,,(:,)) 5 grid on 6 ylabel( ) 7 subplo(,,),ploumps(,,(:,)) 8 grid on 9 ylabel( ) figure() % velociy clf subplo(,,),ploflows(,,(:,)) 3 grid on 4 ylabel( ) 5 subplo(,,),ploumps(,,(:,)) 6 grid on 7 ylabel( ) 8 % plo hybrid arc 9 plohybridarc(,,) label( ) ylabel( ) zlabel( ) The following funcions are used o generae he plos: ploflows(,,): plos (in blue) he proecion of he raecory ono he flow ime ais. The value of he raecory for inervals [, + ] wih empy inerior is marked wih (in blue). Dashed lines (in red) connec he value of he raecory before and afer he ump. Figure (a) shows a plo creaed wih his funcion. ploumps(,,): plos (in red) he proecion of he raecory ono he ump ime. The iniial and final value of he raecory on each inerval [, + ] is denoed by (in red) and he coninuous evoluion of he raecory on each inerval is depiced wih a dashed line (in blue). Figure (a) shows a plo creaed wih his funcion. plohybridarc(,,): plos (in blue and red) he raecory on hybrid ime domains. The inervals [, + ] indeed by he corresponding are depiced in he plane (in red). Figure shows a plo creaed wih his funcion. ploharc is a funcion for ploing hybrid arcs (n saes). ploharc(,,): plos he raecory versus he hybrid ime domain (, ). If is a mari, hen he ime vecor is ploed versus he rows or columns of he mari, whichever line up. ploharc(,,,sar): plos he raecory versus he hybrid ime domain (, ), and he plo is cu regarding he sar inerval (sar = [ iniial, final ]). ploharc(,,,sar,modificaor): Modificaor is a cell array ha conains he sandard malab ploing modificaors (ype >> help ploharc or >> helpwin ploharc in he command window for more informaion).

13 ploharccolor plos he raecory (vecor) on hybrid ime domain wih color. ploharccolor(,,,l): plos he raecory (vecor) versus he hybrid ime domain (, ). The hybrid arc is ploed wih L daa as color. The inpu vecors,,, L mus have he same lengh. ploharccolor(,,,l,sar): If a specific inerval in is required, sar = [ iniial, final ] mus be provided. (ype >> help ploharccolor or >> helpwin ploharccolor in he command window for more informaion) ploharccolor3d plos an 3D hybrid arc wih color. ploharccolor3d(,,,l) plos he raecory (3 saes) aking ino accoun he hybrid ime domain (, ). The hybrid arc is ploed wih L daa as color. The inpu vecors,,, L mus have he same lengh and mus have hree columns. ploharccolor3d(,,,l,sar) If a specific inerval in is required, sar = [ iniial, final ] mus be provided. ploharccolor3d(,,,l,sar,modificaor) Modificaor is a cell array ha conains he sandard malab ploing modificaors (ype >> help ploharccolor3d or >> helpwin ploharccolor3d in he command window for more informaion). 4 HyEQ Simulaor: A Simulink implemenaion for simulaion of single and inerconneced hybrid sysems wih or wihou inpus The HyEQ Toolbo includes hree main Simulink library blocks ha allow for simulaion of a hybrid sysem H = (C, f, D, g) using eiher eernally defined funcions or embedded MATLAB funcions, and a single hybrid sysem or inerconneced hybrid sysems wih inpus using embedded MATLAB funcions. Figure 3 shows hese blocks in he Simulink Library Browser. Sae HS Time Jumps HS wih eernal funcions Sae Time HS wih embedded funcions HS Jumps u u (in) HSu Sae Time Jumps HS wih embedded funcions and inpus Terminaor Figure 3: MATLAB/Simulink library blocks for Simulink implemenaion. 3

14 This model simulaes a hybrid sysem wih inpu Double Click o Iniialize Double Click o Plo Soluions u do u f flow map f f u u HSu (in) Sae Time Jumps v u C flow se C plus u g ump map g C g 3 Terminaor v u D ump se D D 4 (in) Inegraor Sysem Figure 4: MATLAB/Simulink implemenaion of a hybrid sysem H = (C, f, D, g) wih inpus. Figure 4 shows a Simulink implemenaion for simulaing a hybrid sysem wih inpus using embedded MATLAB funcions. In his implemenaion, four basic blocks are used o define he daa of he hybrid sysem H: The flow map is implemened in an Embedded MATLAB funcion block eecuing he funcion f.m. Is inpu is a vecor wih componens defining he sae of he sysem, and he inpu u. Is oupu is he value of he flow map f which is conneced o he inpu of an inegraor. The flow se is implemened in an Embedded MATLAB funcion block eecuing he funcion C.m. Is inpu is a vecor wih componens and inpu u of he Inegraor sysem. Is oupu is equal o if he sae belongs o he se C or equal o oherwise. The minus noaion denoes he previous value of he variables (before inegraion). The value is obained from he sae por of he inegraor. The ump map is implemened in an Embedded MATLAB funcion block eecuing he funcion g.m. Is inpu is a vecor wih componens and inpu u of he Inegraor sysem. Is oupu is he value of he ump map g. The ump se is implemened in an Embedded MATLAB funcion block eecuing he funcion D.m. Is inpu is a vecor wih componens and inpu u of he Inegraor sysem. Is oupu is equal o if he sae belongs o D or equal o oherwise. In our implemenaion, MATLAB.m files are used. The file iniializaion.m is used o define iniial variables before simulaion. The file posprocessing.m is used o plo he soluions afer a simulaion is complee. These wo.m files are called by double-clicking he Double Click o... blocks a he op of he Simulink Model (see Secion 4.5 for more informaion on hese.m files and heir use). 4. The Inegraor Sysem In his secion we discuss he inernals of he Inegraor Sysem shown in Figure CT Dynamics This block is shown in Figure 6. I defines he coninuous-ime (CT) dynamics by assembling he ime derivaive of he sae [ ]. Saes and are considered saes of he sysem because hey need o be 4

15 f(,u) do f C 4 D 3 g CT dynamics C D ump r Jump logic g(,u) [; ; (:)] updae law IC Updae logic o s [] IC 3 C sop STOP 4 D Sop logic Sop Simulaion Figure 5: Inegraor Sysem updaed hroughou he simulaion in order o keep rack of he ime and number of umps. Wihou and, soluions could no be ploed accuraely. This is given by ṫ =, =, ẋ = f(, u). Noe ha inpu por akes he value of f(, u) hrough he oupu of he Embedded MATLAB funcion block f in Figure 4. Flows Jumps f(,u) do Figure 6: CT dynamics 4.. Jump Logic This block is shown in Figure 7. The inpus o he ump logic block are he oupu of he blocks C and D indicaing wheher he sae is in hose ses or no, and a random signal wih uniform disribuion in [, ]. Figure 7 shows he Simulink blocks used o implemen he Jump Logic. The variable rule defines wheher he simulaor gives prioriy o umps, prioriy o flows, or no prioriy. I is iniialized in iniializaion.m. The oupu of he Jump Logic is equal o one when: he oupu of he D block is equal o one and rule =, he oupu of he C block is equal o zero, he oupu of he D block is equal o one, and rule =, he oupu of he C block is equal o zero, he oupu of he D block is equal o one, and rule = 3, or he oupu of he C block is equal o one, he oupu of he D block is equal o one, rule = 3, and he random signal r is larger or equal han.5. 5

16 Under hese evens, he oupu of his block, which is conneced o he inegraor eernal rese inpu, riggers a rese of he inegraor, ha is, a ump of H. The rese or ump is acivaed since he configuraion of he rese inpu is se o level hold, which eecues reses when his eernal inpu is equal o one (if he ne inpu remains se o one, muliple reses would be riggered). Oherwise, he oupu is equal o zero. D C NOT AND AND rule OR 3 rule=: ou = D rlule=: ou = D and ~C rule=3: ou = (D and ~C) or (D and C and r>.5) oher : ou = ump 3 r >=.5 Compare To Consan * Mulipor Swich Figure 7: Jump Logic 4..3 Updae Logic This block is shown in Figure 8. The updae logic uses he sae por informaion of he inegraor. This por repors he value of he sae of he inegraor, [ ], a he eac insan ha he rese condiion becomes rue. Noice ha differs from since a a ump, indicaes he value of he sae ha riggers he ump, bu i is never assigned as he oupu of he inegraor. In oher words, D is checked using and if rue, is rese o g(, u). Noice, however, ha u is he same because a a ump, u indicaes he ne evaluaed value of he inpu, and i is assigned as he oupu of he inegraor. The flow ime is kep consan a umps and is incremened by one. More precisely + =, + = +, + = g(, u) where [ ] is he sae ha riggers he ump. 3 g(,u) updae law Figure 8: Updae Logic 4..4 Sop Logic This block is shown in Figure 9. I sops he simulaion under any of he following evens: The flow ime is larger han or equal o he maimum flow ime specified by T. The ump ime is larger han or equal o he maimum number of umps specified by J. The sae of he hybrid sysem is neiher in C nor in D. 6

17 Under any of hese evens, he oupu of he logic operaor conneced o he Sop block becomes one, sopping he simulaion. Noe ha he inpus C and D are roued from he oupu of he blocks compuing wheher he sae is in C or D and use he value of. Flow Horizon, T >= T Jump Horizon, J Logical Operaor >= J OR sop C 3 4 D Logical Operaor NOR Figure 9: Sop Logic 4. Sofware Requiremens In order o run simulaions of single hybrid sysems using eernally defined funcions, MATLAB wih Simulink is required. In order o run simulaions using he HyEQ Simulaor wih embedded MATLAB funcions, MAT- LAB/Simulink and a suppored ANSI, C, or C++ 3-bi compiler mus be insalled. We now briefly describe how o insall necessary compilers for Windows and Mac/Linu. For more informaion on suppored compilers, please visi hp:// 4.. Configuraion of HyEQ Simulaor wih embedded funcions for Windows For 3-bi Windows, he LCC compiler is included wih MATLAB. Firs, open MATLAB and hen locae and choose a compiler for building MEX-files by yping >> me -seup ino he MATLAB command window. Then, follow he promps as shown below. >> me -seup Welcome o me -seup. This uiliy will help you se up a defaul compiler. For a lis of suppored compilers, see hp:// Please choose your compiler for building MEX-files: Would you like me o locae insalled compilers [y]/n? y Selec a compiler: [] Lcc-win3 C.4. [] None Compiler: 7

18 Please verify your choices: Compiler: Lcc-win3 C.4. Are hese correc [y]/n? y Done... For 64-bi Windows, a C-compiler is no supplied wih MATLAB. Before running he HyEQ Toolbo in MATLAB/Simulink, please follow he following seps:. If you don have Microsof.NET Framework 4 on your compuer, download and insall i from hp: // Then download and insall Microsof Windows SDK from hp:// deails.asp?id= Then perform he seps oulined above for 3-bi Windows o seup and insall he compiler. As of Ocober, 3, when insalling he oolbo in Windows 8, please follow he ne seps.. If you don have Microsof.NET Framework 4 on your compuer, download and insall i from hp: // Then download and insall Microsof Windows SDK If you don have Visual C++ SP insalled on your compuer: Download and insall Microsof Windows SDK 7. from hp:// download/deails.asp?displaylang=en&id=44 Apply he following pach from Microsof ono he SDK 7. insallaion: hp://www. microsof.com/en-us/download/deails.asp?displaylang=en&id=44 If you have Visual Visual C++ SP or is redisribuable packages insalled on your compuer: Uninsall he Visual C++ redisribuable packages, boh 64 and 86 versions. This can be done from Conrol Panel / Uninsall Programs Menu. Download and insall Microsof Windows SDK 7. from hp:// download/deails.asp?displaylang=en&id=44 Apply he following pach from Microsof ono he SDK 7. insallaion: hp://www. microsof.com/en-us/download/deails.asp?displaylang=en&id=44 Reinsall he Visual C++ redisribuable packages: 86 version: hp:// 64 version: hp:// 3. Then perform he seps oulined above for 3-bi Windows o seup and insall he compiler. 4.. Configuraion of HyEQ Simulaor wih embedded funcions for Mac/Linu From a erminal window, check ha he file gcc is in he folder /usr/bin. If i is no here, make a symbolic link. You migh require o insall he laes version of Xcode firs. In order o generae a symbolic link for gcc, ha MATLAB can find o compile he simulaion files (see hp:// sysreq/previous_releases.hml), change folder o /usr/bin and hen sudo ln -s gcc gcc-4. Then, i should be possible o seup he gcc compiler in malab as follows: 8

19 >> me -seup Opions files conrol which compiler o use, he compiler and link command opions, and he runime libraries o link agains. Using he mesh -seup command selecs an opions file ha is placed in ~/.malab/r3b and used by defaul for mesh. An opions file in he curren working direcory or specified on he command line overrides he defaul opions file in ~/.malab/r3b. To override he defaul opions file, use he mesh -f command (see mesh -help for more informaion). The opions files available for MEX are: The opions files available for mesh are: : /Applicaions/MATLAB_R3b.app/bin/meops.sh : Templae Opions file for building MEX-files : Ei wih no changes Ener he number of he compiler (-): Overwrie ~/.malab/r3b/meops.sh ([y]/n)?: Y /Applicaions/MATLAB_R3b.app/bin/meops.sh is being copied o /SOME_FOLDER/meops.sh A his poin, i is possible o check if he gcc is properly seup by esing any of he Simulink eamples wih embedded funcions (see Figure 3) (e.g., Eamples.3,.4,.5,.6,.7 or.8). If an error regarding gmake and a warning no such sysrooo direcory: Developer/SDKs/MacOSX.X.sdk is shown when compiling, i is necesary o change some lines in he file meops.sh (copied previously in he folder SOME FOLDER ). Firs, locae he Xcode-SDK in your hard drive. Open a erminal window and eecue he following command find code-selec -prin-pah -name MacOSX.9.sdk which reurns he locaion of MacOSX.9.sdk, denoed here as SDK FOLDER. Now, in he MATLAB command window locae he file meops.sh by yping cd /SOME_FOLDER/ Then, open he file edi meops.sh and edi he lines SDKROOT= /Developer/SDKs/MacOSX.X.sdk o SDKROOT= SDK_FOLDER 9

20 CFLAGS="-fno-common -arch $ARCHS -isysroo $MW_SDKROOT -mmacos-version-min=$macosx_deployment_target" o CFLAGS="-fno-common -arch $ARCHS -isysroo $MW_SDKROOT -mmacos-version-min=$macosx_deployment_target -Dchar6_=UINT6_T" Replace all he appariions of.x o.9. Finally, resar malab and es any of he aforemenioned Simulink eamples. 4.3 Configuraion of Inegraion Scheme Before a simulaion is sared, i is imporan o deermine he needed inegraor scheme, zero-cross deecion seings, precision, and oher olerances. Using he defaul seings does no always give he mos efficien or mos accurae simulaions. One way o edi hese seings is o open he Simulink Model, selec Simulaion>Configuraion Parameers>Solver, and change he seings here. We have made his simple by defining variables for configuraion parameers in he iniializaion.m file. The las few lines of he iniializaion.m file look like ha given below. %configuraion of solver RelTol = e-8; 3 MaSep =.; In hese lines, RelTol = e-8 and MaSep =. define he relaive olerance and maimum sep size of he ODE solver, respecively. These parameers grealy affec he speed and accuracy of soluions. 4.4 Iniializaion When he block labeled Double Click o Iniialize a he op of he Simulink Model is double-clicked, he simulaion variables are iniialized by calling he scrip iniializaion.m. The scrip iniializaion.m defines he iniial condiions by defining he iniial values of he sae componens, any necessary parameers, he maimum flow ime specified by T, he maimum number of umps specified by J, and olerances used when simulaing. These can be changed by ediing he scrip file iniializaion.m. See below for sample code o iniialize he bouncing ball eample, Eample.3. % iniializaion for bouncing ball eample clear all 3 % iniial condiions 4 = [;]; 5 % simulaion horizon 6 T = ; 7 J = ; 8 % rule for umps 9 % rule = -> prioriy for umps % rule = -> prioriy for flows % rule = 3 -> no prioriy, random selecion when simulaneous condiions rule = ; 3 %configuraion of solver 4 RelTol = e-8; I is imporan o noe ha variables called in he Embedded MATLAB funcion blocks mus be added as inpus and labeled as parameers. This can be done by opening he Embedded MATLAB funcion block selecing Tools>Edi Daa/Pors and seing he scope o Parameer. Afer he block labeled Double Click o Iniialize is double-clicked and he variables iniialized, he simulaion is run by clicking he run buon or selecing Simulaion>Sar.

21 4.5 Posprocessing and Ploing soluions A similar procedure is used o define he plos of soluions afer he simulaion is run. The soluions can be ploed by double-clicking on he block a he op of he Simulink Model labeled Double Click o Plo Soluions which calls he scrip posprocessing.m. The scrip posprocessing.m may be edied o include he desired posprocessing and soluion plos. See below for sample code o plo soluions o he bouncing ball eample, Eample.3. %posprocessing for he bouncing ball eample % plo soluion 3 figure() 4 clf 5 subplo(,,),ploflows(,,) 6 grid on 7 ylabel( ) 8 subplo(,,),ploumps(,,) 9 grid on ylabel( ) % plo hybrid arc plohybridarc(,,) 3 label( ) 4 ylabel( ) 5 zlabel( ) The following funcions are used o generae he plos: ploflows(,,): plos (in blue) he proecion of he raecory ono he flow ime ais. The value of he raecory for inervals [, + ] wih empy inerior is marked wih (in blue). Dashed lines (in red) connec he value of he raecory before and afer he ump. Figure (a) shows a plo creaed wih his funcion. ploumps(,,): plos (in red) he proecion of he raecory ono he ump ime. The iniial and final value of he raecory on each inerval [, + ] is denoed by (in red) and he coninuous evoluion of he raecory on each inerval is depiced wih a dashed line (in blue). Figure (a) shows a plo creaed wih his funcion. plohybridarc(,,): plos (in blue and red) he raecory on hybrid ime domains. The inervals [, + ] indeed by he corresponding are depiced in he plane (in red). Figure shows a plo creaed wih his funcion. ploharc is a funcion for ploing hybrid arcs (n saes). ploharc(,,): plos he raecory versus he hybrid ime domain (, ). If is a mari, hen he ime vecor is ploed versus he rows or columns of he mari, whichever line up. ploharc(,,,sar): plos he raecory versus he hybrid ime domain (, ), and he plo is cu regarding he sar inerval (sar = [ iniial, final ]). ploharc(,,,sar,modificaor): Modificaor is a cell array ha conains he sandard malab ploing modificaors (ype >> help ploharc or >> helpwin ploharc in he command window for more informaion). ploharccolor plos he raecory (vecor) on hybrid ime domain wih color. ploharccolor(,,,l): plos he raecory (vecor) versus he hybrid ime domain (, ). The hybrid arc is ploed wih L daa as color. The inpu vecors,,, L mus have he same lengh.

22 ploharccolor(,,,l,sar): If a specific inerval in is required, sar = [ iniial, final ] mus be provided. (ype >> help ploharccolor or >> helpwin ploharccolor in he command window for more informaion) ploharccolor3d plos an 3D hybrid arc wih color. ploharccolor3d(,,,l) plos he raecory (3 saes) aking ino accoun he hybrid ime domain (, ). The hybrid arc is ploed wih L daa as color. The inpu vecors,,, L mus have he same lengh and mus have hree columns. ploharccolor3d(,,,l,sar) If a specific inerval in is required, sar = [ iniial, final ] mus be provided. ploharccolor3d(,,,l,sar,modificaor) Modificaor is a cell array ha conains he sandard malab ploing modificaors (ype >> help ploharccolor3d or >> helpwin ploharccolor3d in he command window for more informaion). 5 Eamples The eamples below illusrae he use of he Simulink implemenaion above. Eample.3 (bouncing ball wih inpu) For he simulaion of he bouncing ball sysem wih a consan inpu and regular daa given by [ ] f(, u) :=, C := { (, u) R R γ u } (4) [ ] u g(, u) :=, D := { (, u) R R λ u, } (5) where γ > is he graviy consan, u is he inpu consan, and λ [, ) is he resiuion coefficien. The MATLAB scrips in each of he funcion blocks of he implemenaion above are given as follows. An inpu was chosen o be u(, ) =. for all (, ). The consans for he bouncing ball sysem are γ = 9.8 and λ =.8. The following procedure is used o simulae his eample wih HyEQsimulaor.mdl: HyEQsimulaor.mdl is opened in MATLAB/Simulink. The Embedded MATLAB funcion blocks f, C, g, D are edied by double-clicking on he block and ediing he scrip. In each embedded funcion block, parameers mus be added as inpus and defined as parameers by selecing Tools>Edi Daa/Pors, and seing he scope o Parameer. For his eample, gamma and lambda are defined in his way. The iniializaion scrip iniializaion.m is edied by opening he file and ediing he scrip. The flow ime and ump horizons, T and J are defined as well as he iniial condiions for he sae vecor,, and inpu vecor, u, and a rule for umps, rule. The posprocessing scrip posprocessing.m is edied by opening he file and ediing he scrip. Flows and umps may be ploed by calling he funcions ploflows and ploumps, respecively. The hybrid arc may be ploed by calling he funcion plohybridarc. The simulaion sop ime and oher simulaion parameers are se o he values defined in iniializaion.m by selecing Simulaion>Configuraion Parameers>Solver and inpuing T, RelT ol, M asep, ec.. The masked inegraor sysem is double-clicked and he simulaion horizons and iniial condiions are se as desired.

23 The block labeled Double Click o Iniialize is double-clicked o iniialize variables. The simulaion is run by clicking he run buon or selecing Simulaion>Sar. The block labeled Double Click o Plo Soluions is double-clicked o plo he desired soluions flows [] flows [] umps [] umps [] (a) Heigh (b) Velociy funcion do = f(, u, gamma) % sae 3 = (); 4 = (); 5 % flow map: do=f(,u); 6 do = [(); gamma]; funcion v = C(, u) % flow se 3 if (() >= u()) % flow condiion 4 v = ; % repor flow 5 else 6 v = ; % do no repor flow 7 end funcion plus = g(, u, lambda) % ump map 3 plus = [u(); -lambda*()]; Figure : Soluion of Eample.3 funcion v = D(, u) % ump se 3 if (() <= u()) && (() <= ) % ump condiion 4 v = ; % repor ump 5 else 6 v = ; % do no repor ump 7 end A soluion o he bouncing ball sysem from (, ) = [, ] and wih T =, J =, rule =, is depiced in Figure (a) (heigh) and Figure (b) (velociy). Boh he proecion ono and are shown. 3

24 Figure : Hybrid arc corresponding o a soluion of Eample.3: heigh Figure depics he corresponding hybrid arc for he posiion sae. These simulaions reflec he epeced behavior of he bouncing ball model. Noe he only difference beween his eample and he eample of a bouncing ball wihou a consan inpu is ha, in his eample, he ball bounces on a plaform a a heigh of he chosen inpu value. raher han he ground a a value of. For MATLAB/Simulink files of his eample, see Eamples/Eample.3. Eample.4 (alernae way o simulae he bouncing ball) Consider he bouncing ball sysem wih a consan inpu and regular daa as given in Eample.3. This eample shows ha a MATLAB funcion block, such as he ump se D, can be replaced wih operaional blocks in Simulink. Figure shows his implemenaion. The oher funcions and soluions are he same as in Eample.3. For MATLAB/Simulink files corresponding o his alernaive implemenaion, see Eamples/Eample.4. Eample.5 (vehicle following a rack wih boundaries) Consider a vehicle modeled by a Dubins vehicle model raveling along a given rack wih sae vecor = [ξ, ξ, ξ 3 ] wih dynamics given by ξ = u cos ξ 3, ξ = u sin ξ 3, and ξ 3 = ξ 3 +r(q). The inpu u is he angenial velociy of he vehicle, ξ and ξ describe he vehicle s posiion on he plane, and ξ 3 is he vehicle s orienaion angle. Also consider a swiching conroller aemping o keep he vehicle inside he boundaries of a rack given by {(ξ, ξ ) : ξ }. A sae q {, } is used o define he modes of operaion of he conroller. When q =, he vehicle is raveling o he lef, and when q =, he vehicle is raveling o he righ. A logic variable r is defined in order o seer he vehicle back inside he boundary. The sae of he closed-loop sysem is given by := [ξ q]. A model 4

25 This model simulaes a hybrid sysem wih inpu Double Click o Iniialize Double Click o Plo Soluions u do u f flow map f f u u HSu (in) Sae Time Jumps v u C flow se C plus u g ump map g C g 3 Terminaor <= AND D 4 (in) <= Inegraor Sysem Figure : Simulink implemenaion of bouncing ball eample wih operaor blocks of such a closed-loop sysem is given by f(, u) := u cos(ξ 3 ) u sin(ξ 3 ) ξ 3 + r(q) u { 3π, r(q) := 4 if q = π 4 if q = C := { (ξ, u) R 3 {, } R (ξ, q = ) or (ξ, q = ) }, (7) [ ξ if ξ ], q = g(ξ, u) := [ ], (8) ξ if ξ, q = D := { (ξ, u) R 3 {, } R (ξ, q = ) or (ξ, q = ) } (9) The MATLAB scrips in each of he funcion blocks of he implemenaion above are given as follows. The angenial velociy of he vehicle is chosen o be u =, he iniial posiion on he plane is chosen o be (ξ, ξ ) = (, ), and he iniial orienaion angle is chosen o be ξ 3 = π 4 radians. funcion do = f(, u) % sae 3 i = z(saevec); 4 i = i(); %-posiion 5 i = i(); %y-posiion 6 i3 = i(3); %orienaion angle 7 q = i(4); 8 % q = --> going lef 9 % q = --> going righ if q == r = 3*pi/4; elseif q == 3 r = pi/4; (6) 5

26 i i 5 5 flows [] 3 umps [] i (a) Traecory (b) Hybrid arc Figure 3: Soluion of Eample.5 4 else 5 r = ; 6 end 7 % flow map: ido=f(i,u); 8 ido = u*cos(i3); %angenial velociy in -direcion 9 ido = u*sin(i3); %angenial velociy in y-direcion i3do = -i3 + r; %angular velociy qdo = ; do = [ido;ido;i3do;qdo]; funcion v = C(, u) % sae 3 i = z(saevec); 4 i = i(); %-posiion 5 i = i(); %y-posiion 6 i3 = i(3); %orienaion angle 7 q = i(4); 8 % q = --> going lef 9 % q = --> going righ % flow se if ((i < ) && (q == )) ((i > -) && (q == )) % flow condiion v = ; % repor flow 3 else 4 v = ; % do no repor flow 5 end funcion plus = g(, u) % sae 3 i = z(saevec); 4 i = i(); %-posiion 5 i = i(); %y-posiion 6 i3 = i(3); %orienaion angle 7 q = i(4); 8 % q = --> going lef 6

27 9 % q = --> going righ iplus=i; iplus=i; i3plus=i3; 3 qplus=q; 4 % ump map 5 if ((i >= ) && (q == )) ((i <= -) && (q == )) 6 qplus = 3-q; 7 else 8 qplus = q; 9 end plus = [iplus;iplus;i3plus;qplus]; funcion v = D(, u) % sae 3 i = z(saevec); 4 i = i(); %-posiion 5 i = i(); %y-posiion 6 i3 = i(3); %orienaion angle 7 q = i(4); 8 % q = --> going lef 9 % q = --> going righ % ump se if ((i >= ) && (q == )) ((i <= -) && (q == )) % ump condiion v = ; % repor ump 3 else 4 v = ; % do no repor ump 5 end A soluion o he sysem of a vehicle following a rack in {(ξ, ξ ) : ξ }, and wih T = 5, J =, rule =, is depiced in Figure 3(a) (raecory). Boh he proecion ono and are shown. Figure 3(b) depics he corresponding hybrid arc. For MATLAB/Simulink files of his eample, see Eamples/Eample.5. Eample.6 (inerconnecion of hybrid sysems H (bouncing ball) and H (moving plaform)) Consider a bouncing ball (H ) bouncing on a plaform (H ) a some iniial heigh and converging o he ground a zero heigh. This is an inerconnecion problem because he curren saes of each sysem affec he behavior of he oher sysem. In his inerconnecion, he bouncing ball will conac he plaform, bounce back up, and cause a ump in heigh of he plaform so ha i ges closer o he ground. Afer some ime, boh he ball and he plaform will converge o he ground. In order o model his sysem, he oupu of he bouncing ball becomes he inpu of he moving plaform, and vice versa. For he simulaion of he described sysem wih regular daa where H is given by [ ] ξ f (ξ, u, v ) :=, C γ bξ + v := {(ξ, u ) ξ u, u } () [ ] ξ + α g (ξ, u, v ) := ξ, D e ξ + v := {(ξ, u ) ξ = u, u }, y = h (ξ) := ξ () where γ, b, α >, e [, ), ξ = [ξ, ξ ] is he sae, y R is he oupu, u R and v = [v, v ] R are he inpus, and he hybrid sysem H is given by 7

28 g (η, u, v ) := [ f (η, u, v ) := [ ] η α η e η + v η η η + v ], C := {(η, u ) η u, η } (), D := {(η, u ) η = u, η }, y = h (η) := η (3) where α >, e [, ), η = [η, η ] R is he sae, y R is he oupu, and u R and v = [v, v ] R are he inpus. Therefore, he inerconnecion may be defined by he inpu assignmen u = y, u = y. (4) The signals v and v are included as eernal inpus in he model in order o simulae he effecs of environmenal perurbaions, such as a wind gus, on he sysem. The MATLAB scrips in each of he funcion blocks of he implemenaion above are given as follows. The consans for he inerconneced sysem are γ =.8, b =., and α, α =.. This model simulaes he inerconnecion of wo hybrid sysems; a bouncing ball and a moving plaform. Double Click o Iniialize Double Click o Plo Soluions More Info u v v HS_ sae u 3 sae HS_ v v Figure 4: MATLAB/Simulink implemenaion of inerconneced hybrid sysems H and H For hybrid sysem H : funcion do = f(, u) % sae 3 i = (); 4 i = (); 5 %inpu 6 y = u(); 8

29 .8 i, ea flows [].5 i, ea flows [] Figure 5: Soluion of Eample.6: heigh and velociy 7 v = u(); 8 v = u(3); 9 % flow map %do=f(,u); ido = i; ido = -.8-.*i+v; 3 do = [ido;ido]; funcion v = C(, u) % sae 3 i = (); 4 i = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 if (i >= y) % flow condiion v = ; % repor flow else v = ; % do no repor flow 3 end funcion plus = g(, u) % sae 3 i = (); 4 i = (); 9

30 .8.5 i.6 i flows [] flows [].5 i.6 i umps [] umps [] (a) Heigh (b) Velociy Figure 6: Soluion of Eample.6 for sysem H 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 %ump map iplus=y+.*iˆ; iplus=.8*abs(i)+v; plus = [iplus;iplus]; funcion v = D(, u) % sae 3 i = (); 4 i = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 % ump se if (i <= y) % ump condiion v = ; % repor ump else 3 v = ; % do no repor ump 4 end For hybrid sysem H : funcion do = f(, u) % sae 3 ea = (); 4 ea = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 % flow map 3

31 ea ea flows [] umps [] ea ea flows [] umps [] (a) Heigh (b) Velociy Figure 7: Soluion of Eample.6 for sysem H eado = ea; eado = -ea-*ea+v; do = [eado;eado]; funcion v = C(, u) % sae 3 ea = (); 4 ea = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 % flow se if (ea <= y) % flow condiion v = ; % repor flow else 3 v = ; % do no repor flow 4 end funcion plus = g(, u) % sae 3 ea = (); 4 ea = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 % ump map eaplus = y-.*abs(ea); eaplus = -.8*abs(ea)+v; plus = [eaplus;eaplus]; funcion v = D(, u) % sae 3

32 3 ea = (); 4 ea = (); 5 %inpu 6 y = u(); 7 v = u(); 8 v = u(3); 9 % ump se if (ea >= y) % ump condiion v = ; % repor ump else 3 v = ; % do no repor ump 4 end A soluion o he inerconnecion of hybrid sysems H and H wih T = 8, J =, rule =, is depiced in Figure 5. Boh he proecion ono and are shown. A soluion o he hybrid sysem H is depiced in Figure 6(a) (heigh) and Figure 6(b) (velociy). A soluion o he hybrid sysem H is depiced in Figure 7(a) (heigh) and Figure 7(b) (velociy). These simulaions reflec he epeced behavior of he inerconneced hybrid sysems. For MATLAB/Simulink files of his eample, see Eamples/Eample.6. Eample.7 (biological eample: synchronizaion of wo fireflies) Consider a biological eample of he synchronizaion of wo fireflies flashing. The fireflies can be modeled mahemaically as periodic oscillaors which end o synchronize heir flashing unil hey are flashing in phase wih each oher. A sae value of τ i = corresponds o a flash, and afer each flash, he firefly auomaically reses is inernal imer (periodic cycle) o τ i =. The synchronizaion of he fireflies can be modeled as an inerconnecion of wo hybrid sysems because every ime one firefly flashes, he oher firefly noices and umps ahead in is inernal imer τ by ( + ε)τ, where ε is a biologically deermined coefficien. This happens unil evenually boh fireflies synchronize heir inernal imers and are flashing simulaneously. Each firefly can be modeled as a hybrid This model simulaes inerconneced hybrid sysems. Double Click o Iniialize Double Click o Plo Soluions u (in) Hybrid Sysem sae ime umps u (in) Hybrid Sysem sae ime umps Figure 8: Inerconnecion Diagram for Eample.7 3

33 sysem given by f i (τ i, u i ) :=, (5) C i := { (τ i, u i ) R τ i } { (τ i, u i ) R u i } (6) { ( + ε)τi ( + ε)τ g i (τ i, u i ) := i < (7) ( + ε)τ i D i := { (τ i, u i ) R τ i = } { (τ i, u i ) R u i = }. (8) The inerconnecion diagram for his eample is simpler han in he previous eample because now no eernal inpus are being considered. The only even ha affecs he flashing of a firefly is he flashing of he oher firefly. The inerconnecion diagram can be seen in Figure au.5 au flows [] flows [].5 au.5 au umps [] umps [] (a) Soluion for sysem H (b) Soluion for sysem H For hybrid sysem H i, i =, : funcion audo = f(au, u) % flow map 3 audo = ; Figure 9: Soluion of Eample.7 funcion v = C(au, u) % flow se 3 if ((au > ) && (au < )) ((u > ) && (u <= )) % flow condiion 4 v = ; % repor flow 5 else 6 v = ; % do no repor flow 7 end funcion auplus = g(au, u) % ump map 3 if (+e)*au < 4 auplus = (+e)*au; 5 elseif (+e)*au >= 6 auplus = ; 7 else 8 auplus = au; 9 end 33

Implementing Ray Casting in Tetrahedral Meshes with Programmable Graphics Hardware (Technical Report)

Implementing Ray Casting in Tetrahedral Meshes with Programmable Graphics Hardware (Technical Report) Implemening Ray Casing in Terahedral Meshes wih Programmable Graphics Hardware (Technical Repor) Marin Kraus, Thomas Erl March 28, 2002 1 Inroducion Alhough cell-projecion, e.g., [3, 2], and resampling,

More information

FIELD PROGRAMMABLE GATE ARRAY (FPGA) AS A NEW APPROACH TO IMPLEMENT THE CHAOTIC GENERATORS

FIELD PROGRAMMABLE GATE ARRAY (FPGA) AS A NEW APPROACH TO IMPLEMENT THE CHAOTIC GENERATORS FIELD PROGRAMMABLE GATE ARRAY (FPGA) AS A NEW APPROACH TO IMPLEMENT THE CHAOTIC GENERATORS Mohammed A. Aseeri and M. I. Sobhy Deparmen of Elecronics, The Universiy of Ken a Canerbury Canerbury, Ken, CT2

More information

Voltair Version 2.5 Release Notes (January, 2018)

Voltair Version 2.5 Release Notes (January, 2018) Volair Version 2.5 Release Noes (January, 2018) Inroducion 25-Seven s new Firmware Updae 2.5 for he Volair processor is par of our coninuing effors o improve Volair wih new feaures and capabiliies. For

More information

Dimmer time switch AlphaLux³ D / 27

Dimmer time switch AlphaLux³ D / 27 Dimmer ime swich AlphaLux³ D2 426 26 / 27! Safey noes This produc should be insalled in line wih insallaion rules, preferably by a qualified elecrician. Incorrec insallaion and use can lead o risk of elecric

More information

Location. Electrical. Loads. 2-wire mains-rated. 0.5 mm² to 1.5 mm² Max. length 300 m (with 1.5 mm² cable). Example: Belden 8471

Location. Electrical. Loads. 2-wire mains-rated. 0.5 mm² to 1.5 mm² Max. length 300 m (with 1.5 mm² cable). Example: Belden 8471 Produc Descripion Insallaion and User Guide Transiser Dimmer (454) The DIN rail mouned 454 is a 4channel ransisor dimmer. I can operae in one of wo modes; leading edge or railing edge. All 4 channels operae

More information

MIC2569. Features. General Description. Applications. Typical Application. CableCARD Power Switch

MIC2569. Features. General Description. Applications. Typical Application. CableCARD Power Switch CableCARD Power Swich General Descripion is designed o supply power o OpenCable sysems and CableCARD hoss. These CableCARDs are also known as Poin of Disribuion (POD) cards. suppors boh Single and Muliple

More information

Connections, displays and operating elements. Status LEDs (next to the keys)

Connections, displays and operating elements. Status LEDs (next to the keys) GB Connecions, displays and operaing elemens A Push-buon plus Sysem M Operaing insrucions 1 2 1 2 3 4 5 6 7 8 C B A 4 Inser he bus erminal ino he connecion of pushbuon A. 5 Inser he push-buon ino he frame.

More information

PART 1 REFERENCE INFORMATION CONTROL DATA 6400 SYSTEMS CENTRAL PROCESSOR MONITOR

PART 1 REFERENCE INFORMATION CONTROL DATA 6400 SYSTEMS CENTRAL PROCESSOR MONITOR . ~ PART 1 c 0 \,).,,.,, REFERENCE NFORMATON CONTROL DATA 6400 SYSTEMS CENTRAL PROCESSOR MONTOR n CONTROL DATA 6400 Compuer Sysems, sysem funcions are normally handled by he Monior locaed in a Peripheral

More information

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley.

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley. Shores Pah Algorihms Background Seing: Lecure I: Shores Pah Algorihms Dr Kieran T. Herle Deparmen of Compuer Science Universi College Cork Ocober 201 direced graph, real edge weighs Le he lengh of a pah

More information

COMP26120: Algorithms and Imperative Programming

COMP26120: Algorithms and Imperative Programming COMP26120 ecure C3 1/48 COMP26120: Algorihms and Imperaive Programming ecure C3: C - Recursive Daa Srucures Pee Jinks School of Compuer Science, Universiy of Mancheser Auumn 2011 COMP26120 ecure C3 2/48

More information

NEWTON S SECOND LAW OF MOTION

NEWTON S SECOND LAW OF MOTION Course and Secion Dae Names NEWTON S SECOND LAW OF MOTION The acceleraion of an objec is defined as he rae of change of elociy. If he elociy changes by an amoun in a ime, hen he aerage acceleraion during

More information

Connections, displays and operating elements. 3 aux. 5 aux.

Connections, displays and operating elements. 3 aux. 5 aux. Taser PlusKapiel3:Taser3.1Taser Plus Meren2005V6280-561-0001/08 GB Connecions, displays and operaing elemens Taser Plus Arec/Anik/Trancen Operaing insrucions A 1 2 1 2 3 4 5 6 C B A B 3 aux. 7 8 9 aux.

More information

Ins Net2 plus control unit

Ins Net2 plus control unit S ns 0 Server Link 00 0/00 Eherne End of Line Terminaion RS485 Nework xi -4V. Ins-30080 Ne plus conrol uni C auion: For DC readers y Inruder Ne plus O u pus r Powe DC Only Relay C onac E Buo n P SU/ Page

More information

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS NME: TE: LOK: MOTION ETETORS GRPH MTHING L PRE-L QUESTIONS 1. Read he insrucions, and answer he following quesions. Make sure you resae he quesion so I don hae o read he quesion o undersand he answer..

More information

Test - Accredited Configuration Engineer (ACE) Exam - PAN-OS 6.0 Version

Test - Accredited Configuration Engineer (ACE) Exam - PAN-OS 6.0 Version Tes - Accredied Configuraion Engineer (ACE) Exam - PAN-OS 6.0 Version ACE Exam Quesion 1 of 50. Which of he following saemens is NOT abou Palo Alo Neworks firewalls? Sysem defauls may be resored by performing

More information

Gauss-Jordan Algorithm

Gauss-Jordan Algorithm Gauss-Jordan Algorihm The Gauss-Jordan algorihm is a sep by sep procedure for solving a sysem of linear equaions which may conain any number of variables and any number of equaions. The algorihm is carried

More information

PROCESS AUTOMATION MANUAL TIMER RELAY KF**-DU-EX1.D ISO9001

PROCESS AUTOMATION MANUAL TIMER RELAY KF**-DU-EX1.D ISO9001 PROCESS AUTOMATION MANUAL TIMER RELAY KF**-DU-EX1.D ISO9001 Wih regard o he supply of producs, he curren issue of he following documen is applicable: The general erms of delivery for producs and services

More information

CENG 477 Introduction to Computer Graphics. Modeling Transformations

CENG 477 Introduction to Computer Graphics. Modeling Transformations CENG 477 Inroducion o Compuer Graphics Modeling Transformaions Modeling Transformaions Model coordinaes o World coordinaes: Model coordinaes: All shapes wih heir local coordinaes and sies. world World

More information

ENDA ETM742 DIGITAL TIMER

ENDA ETM742 DIGITAL TIMER Read his documen carefully before using his device. The guaranee will be expired by damaging of he device if you don' aend o he direcions in he user manual. Also we don' accep any compensaions for personal

More information

MATH Differential Equations September 15, 2008 Project 1, Fall 2008 Due: September 24, 2008

MATH Differential Equations September 15, 2008 Project 1, Fall 2008 Due: September 24, 2008 MATH 5 - Differenial Equaions Sepember 15, 8 Projec 1, Fall 8 Due: Sepember 4, 8 Lab 1.3 - Logisics Populaion Models wih Harvesing For his projec we consider lab 1.3 of Differenial Equaions pages 146 o

More information

WORKSHOP SAFETY IN MOBILE APPLICATION

WORKSHOP SAFETY IN MOBILE APPLICATION WORKSHOP SAFETY IN MOBILE APPLICATION Renaa Mondelaers Seven Bellens SICK SEW Cerified Funcional Safey Applicaion Exper Technology Leader Smar Facory CFSAE by SGS/TÜV Saar MOBILE APPLICATION AVAILABLE

More information

1. Function 1. Push-button interface 4g.plus. Push-button interface 4-gang plus. 2. Installation. Table of Contents

1. Function 1. Push-button interface 4g.plus. Push-button interface 4-gang plus. 2. Installation. Table of Contents Chaper 4: Binary inpus 4.6 Push-buon inerfaces Push-buon inerface Ar. no. 6708xx Push-buon inerface 2-gang plus Push-buon inerfacechaper 4:Binary inpusar. no.6708xxversion 08/054.6Push-buon inerfaces.

More information

ENDA ETM442 DIGITAL TIMER

ENDA ETM442 DIGITAL TIMER Read his documen carefully before using his device. The guaranee will be expired by damaging of he device if you don' aend o he direcions in he user manual. Also we don' accep any compensaions for personal

More information

4.1 3D GEOMETRIC TRANSFORMATIONS

4.1 3D GEOMETRIC TRANSFORMATIONS MODULE IV MCA - 3 COMPUTER GRAPHICS ADMN 29- Dep. of Compuer Science And Applicaions, SJCET, Palai 94 4. 3D GEOMETRIC TRANSFORMATIONS Mehods for geomeric ransformaions and objec modeling in hree dimensions

More information

Sam knows that his MP3 player has 40% of its battery life left and that the battery charges by an additional 12 percentage points every 15 minutes.

Sam knows that his MP3 player has 40% of its battery life left and that the battery charges by an additional 12 percentage points every 15 minutes. 8.F Baery Charging Task Sam wans o ake his MP3 player and his video game player on a car rip. An hour before hey plan o leave, he realized ha he forgo o charge he baeries las nigh. A ha poin, he plugged

More information

USBFC (USB Function Controller)

USBFC (USB Function Controller) USBFC () EIFUFAL501 User s Manual Doc #: 88-02-E01 Revision: 2.0 Dae: 03/24/98 (USBFC) 1. Highlighs... 4 1.1 Feaures... 4 1.2 Overview... 4 1.3 USBFC Block Diagram... 5 1.4 USBFC Typical Sysem Block Diagram...

More information

A time-space consistency solution for hardware-in-the-loop simulation system

A time-space consistency solution for hardware-in-the-loop simulation system Inernaional Conference on Advanced Elecronic Science and Technology (AEST 206) A ime-space consisency soluion for hardware-in-he-loop simulaion sysem Zexin Jiang a Elecric Power Research Insiue of Guangdong

More information

Scattering at an Interface: Normal Incidence

Scattering at an Interface: Normal Incidence Course Insrucor Dr. Raymond C. Rumpf Office: A 337 Phone: (915) 747 6958 Mail: rcrumpf@uep.edu 4347 Applied lecromagneics Topic 3f Scaering a an Inerface: Normal Incidence Scaering These Normal noes Incidence

More information

User Manual. RINS Software Revision >V9.26

User Manual. RINS Software Revision >V9.26 User Manual INTERNAL SIREN WARNING The Enforcer 32-WE conrol panel conains a 100 dba siren, please be aware of his when in use. RINS1503-2 Sofware Revision >V9.26 Conens Page A: Inroducion 3 B: Keypads

More information

Optimal Crane Scheduling

Optimal Crane Scheduling Opimal Crane Scheduling Samid Hoda, John Hooker Laife Genc Kaya, Ben Peerson Carnegie Mellon Universiy Iiro Harjunkoski ABB Corporae Research EWO - 13 November 2007 1/16 Problem Track-mouned cranes move

More information

1.4 Application Separable Equations and the Logistic Equation

1.4 Application Separable Equations and the Logistic Equation 1.4 Applicaion Separable Equaions and he Logisic Equaion If a separable differenial equaion is wrien in he form f ( y) dy= g( x) dx, hen is general soluion can be wrien in he form f ( y ) dy = g ( x )

More information

Assignment 2. Due Monday Feb. 12, 10:00pm.

Assignment 2. Due Monday Feb. 12, 10:00pm. Faculy of rs and Science Universiy of Torono CSC 358 - Inroducion o Compuer Neworks, Winer 218, LEC11 ssignmen 2 Due Monday Feb. 12, 1:pm. 1 Quesion 1 (2 Poins): Go-ack n RQ In his quesion, we review how

More information

Motor Control. 5. Control. Motor Control. Motor Control

Motor Control. 5. Control. Motor Control. Motor Control 5. Conrol In his chaper we will do: Feedback Conrol On/Off Conroller PID Conroller Moor Conrol Why use conrol a all? Correc or wrong? Supplying a cerain volage / pulsewidh will make he moor spin a a cerain

More information

EECS 487: Interactive Computer Graphics

EECS 487: Interactive Computer Graphics EECS 487: Ineracive Compuer Graphics Lecure 7: B-splines curves Raional Bézier and NURBS Cubic Splines A represenaion of cubic spline consiss of: four conrol poins (why four?) hese are compleely user specified

More information

COSC 3213: Computer Networks I Chapter 6 Handout # 7

COSC 3213: Computer Networks I Chapter 6 Handout # 7 COSC 3213: Compuer Neworks I Chaper 6 Handou # 7 Insrucor: Dr. Marvin Mandelbaum Deparmen of Compuer Science York Universiy F05 Secion A Medium Access Conrol (MAC) Topics: 1. Muliple Access Communicaions:

More information

An Improved Square-Root Nyquist Shaping Filter

An Improved Square-Root Nyquist Shaping Filter An Improved Square-Roo Nyquis Shaping Filer fred harris San Diego Sae Universiy fred.harris@sdsu.edu Sridhar Seshagiri San Diego Sae Universiy Seshigar.@engineering.sdsu.edu Chris Dick Xilinx Corp. chris.dick@xilinx.com

More information

Learning in Games via Opponent Strategy Estimation and Policy Search

Learning in Games via Opponent Strategy Estimation and Policy Search Learning in Games via Opponen Sraegy Esimaion and Policy Search Yavar Naddaf Deparmen of Compuer Science Universiy of Briish Columbia Vancouver, BC yavar@naddaf.name Nando de Freias (Supervisor) Deparmen

More information

Project #1 Math 285 Name:

Project #1 Math 285 Name: Projec #1 Mah 85 Name: Solving Orinary Differenial Equaions by Maple: Sep 1: Iniialize he program: wih(deools): wih(pdeools): Sep : Define an ODE: (There are several ways of efining equaions, we sar wih

More information

Web System for the Remote Control and Execution of an IEC Application

Web System for the Remote Control and Execution of an IEC Application Web Sysem for he Remoe Conrol and Execuion of an IEC 61499 Applicaion Oana ROHAT, Dan POPESCU Faculy of Auomaion and Compuer Science, Poliehnica Universiy, Splaiul Independenței 313, Bucureși, 060042,

More information

Less Pessimistic Worst-Case Delay Analysis for Packet-Switched Networks

Less Pessimistic Worst-Case Delay Analysis for Packet-Switched Networks Less Pessimisic Wors-Case Delay Analysis for Packe-Swiched Neworks Maias Wecksén Cenre for Research on Embedded Sysems P O Box 823 SE-31 18 Halmsad maias.wecksen@hh.se Magnus Jonsson Cenre for Research

More information

It is easier to visualize plotting the curves of cos x and e x separately: > plot({cos(x),exp(x)},x = -5*Pi..Pi,y = );

It is easier to visualize plotting the curves of cos x and e x separately: > plot({cos(x),exp(x)},x = -5*Pi..Pi,y = ); Mah 467 Homework Se : some soluions > wih(deools): wih(plos): Warning, he name changecoords has been redefined Problem :..7 Find he fixed poins, deermine heir sabiliy, for x( ) = cos x e x > plo(cos(x)

More information

STEREO PLANE MATCHING TECHNIQUE

STEREO PLANE MATCHING TECHNIQUE STEREO PLANE MATCHING TECHNIQUE Commission III KEY WORDS: Sereo Maching, Surface Modeling, Projecive Transformaion, Homography ABSTRACT: This paper presens a new ype of sereo maching algorihm called Sereo

More information

Saturday from 09:00-13:00 (GMT) Documentation on all Paxton Access products can be found on our website -

Saturday from 09:00-13:00 (GMT) Documentation on all Paxton Access products can be found on our website - 9/3/9 Ins-38 Ne plus conrol uni Paxon Access Technical Suppor +44 ()173 81111 suppor@paxon.co.uk Technical help is available: Monday - Friday from 7: - 19: (GMT) Saurday from 9: - 13: (GMT) Documenaion

More information

Temperature Controller EXPERT-VT212 USER'S MANUAL

Temperature Controller EXPERT-VT212 USER'S MANUAL Temperaure Conroller USER'S MANUAL TABLE OF CONTENTS Page 1. PRECAUTIONS... 6 2. FEATURES... 7 3. LOCATION OF THE CONTROLS... 9 4. MOUNTING INSTRUCTIONS...12 4.1 CONNECTIONS... 12 5. CONTROLLER SETUP...14

More information

Saturday from 09:00-13:00 (GMT) Documentation on all Paxton products can be found on our website -

Saturday from 09:00-13:00 (GMT) Documentation on all Paxton products can be found on our website - 4/05/0 Ins-30080 Ne plus conrol uni Paxon Technical Suppor 073 80 suppor@paxon.co.uk Technical help is available: Monday - Friday from 07:00-9:00 (GMT) Saurday from 09:00-3:00 (GMT) Documenaion on all

More information

AML710 CAD LECTURE 11 SPACE CURVES. Space Curves Intrinsic properties Synthetic curves

AML710 CAD LECTURE 11 SPACE CURVES. Space Curves Intrinsic properties Synthetic curves AML7 CAD LECTURE Space Curves Inrinsic properies Synheic curves A curve which may pass hrough any region of hreedimensional space, as conrased o a plane curve which mus lie on a single plane. Space curves

More information

Chapter Six Chapter Six

Chapter Six Chapter Six Chaper Si Chaper Si 0 CHAPTER SIX ConcepTess and Answers and Commens for Secion.. Which of he following graphs (a) (d) could represen an aniderivaive of he funcion shown in Figure.? Figure. (a) (b) (c)

More information

Electric Ephemeris PCA Argus v 3.1 for Windows. Sales & CD development. Electric Ephemeris/PCA Argus Programming: Laurids Pedersen

Electric Ephemeris PCA Argus v 3.1 for Windows. Sales & CD development. Electric Ephemeris/PCA Argus Programming: Laurids Pedersen Elecric Ephemeris PCA Argus v 3.1 for Windows MSP Soluions: Sales & CD developmen Elecric Ephemeris/PCA Argus Programming: Laurids Pedersen CD Design: Web Design: Magic Space MSP Soluions Technical suppor

More information

V103 TRIPLE 10-BIT LVDS TRANSMITTER FOR VIDEO. General Description. Features. Block Diagram

V103 TRIPLE 10-BIT LVDS TRANSMITTER FOR VIDEO. General Description. Features. Block Diagram General Descripion The V103 LVDS display inerface ransmier is primarily designed o suppor pixel daa ransmission beween a video processing engine and a digial video display. The daa rae suppors up o SXGA+

More information

Dynamic Route Planning and Obstacle Avoidance Model for Unmanned Aerial Vehicles

Dynamic Route Planning and Obstacle Avoidance Model for Unmanned Aerial Vehicles Volume 116 No. 24 2017, 315-329 ISSN: 1311-8080 (prined version); ISSN: 1314-3395 (on-line version) url: hp://www.ijpam.eu ijpam.eu Dynamic Roue Planning and Obsacle Avoidance Model for Unmanned Aerial

More information

A Matching Algorithm for Content-Based Image Retrieval

A Matching Algorithm for Content-Based Image Retrieval A Maching Algorihm for Conen-Based Image Rerieval Sue J. Cho Deparmen of Compuer Science Seoul Naional Universiy Seoul, Korea Absrac Conen-based image rerieval sysem rerieves an image from a daabase using

More information

Chapter 8 LOCATION SERVICES

Chapter 8 LOCATION SERVICES Disribued Compuing Group Chaper 8 LOCATION SERVICES Mobile Compuing Winer 2005 / 2006 Overview Mobile IP Moivaion Daa ransfer Encapsulaion Locaion Services & Rouing Classificaion of locaion services Home

More information

Design Alternatives for a Thin Lens Spatial Integrator Array

Design Alternatives for a Thin Lens Spatial Integrator Array Egyp. J. Solids, Vol. (7), No. (), (004) 75 Design Alernaives for a Thin Lens Spaial Inegraor Array Hala Kamal *, Daniel V azquez and Javier Alda and E. Bernabeu Opics Deparmen. Universiy Compluense of

More information

Real Time Integral-Based Structural Health Monitoring

Real Time Integral-Based Structural Health Monitoring Real Time Inegral-Based Srucural Healh Monioring The nd Inernaional Conference on Sensing Technology ICST 7 J. G. Chase, I. Singh-Leve, C. E. Hann, X. Chen Deparmen of Mechanical Engineering, Universiy

More information

Elite Acoustics Engineering A4-8 Live-Performance Studio Monitor with 4 Channels, Mixer, Effects, and Bluetooth Quick Start Guide

Elite Acoustics Engineering A4-8 Live-Performance Studio Monitor with 4 Channels, Mixer, Effects, and Bluetooth Quick Start Guide Elie Acousics Engineering A4-8 Live-Performance Sudio Monior wih 4 Channels, Mixer, Effecs, and Blueooh Quick Sar Guide WHAT IS IN THE BOX Your A4-8 package conains he following: (1) Speaker (1) 12V AC

More information

Timers CT Range. CT-D Range. Electronic timers. CT-D Range. Phone: Fax: Web: -

Timers CT Range. CT-D Range. Electronic timers. CT-D Range. Phone: Fax: Web:  - CT-D Range Timers CT-D Range Elecronic imers Characerisics Diversiy: mulifuncion imers 0 single-funcion imers Conrol supply volages: Wide range: -0 V AC/DC Muli range: -8 V DC, 7 ime ranges from 0.0s o

More information

4. Minimax and planning problems

4. Minimax and planning problems CS/ECE/ISyE 524 Inroducion o Opimizaion Spring 2017 18 4. Minima and planning problems ˆ Opimizing piecewise linear funcions ˆ Minima problems ˆ Eample: Chebyshev cener ˆ Muli-period planning problems

More information

Using CANopen Slave Driver

Using CANopen Slave Driver CAN Bus User Manual Using CANopen Slave Driver V1. Table of Conens 1. SDO Communicaion... 1 2. PDO Communicaion... 1 3. TPDO Reading and RPDO Wriing... 2 4. RPDO Reading... 3 5. CANopen Communicaion Parameer

More information

Numerical Solution of ODE

Numerical Solution of ODE Numerical Soluion of ODE Euler and Implici Euler resar; wih(deools): wih(plos): The package ploools conains more funcions for ploing, especially a funcion o draw a single line: wih(ploools): wih(linearalgebra):

More information

Improving the Efficiency of Dynamic Service Provisioning in Transport Networks with Scheduled Services

Improving the Efficiency of Dynamic Service Provisioning in Transport Networks with Scheduled Services Improving he Efficiency of Dynamic Service Provisioning in Transpor Neworks wih Scheduled Services Ralf Hülsermann, Monika Jäger and Andreas Gladisch Technologiezenrum, T-Sysems, Goslarer Ufer 35, D-1585

More information

Chapter 4 Sequential Instructions

Chapter 4 Sequential Instructions Chaper 4 Sequenial Insrucions The sequenial insrucions of FBs-PLC shown in his chaper are also lised in secion 3.. Please refer o Chaper, "PLC Ladder diagram and he Coding rules of Mnemonic insrucion",

More information

A Fast Stereo-Based Multi-Person Tracking using an Approximated Likelihood Map for Overlapping Silhouette Templates

A Fast Stereo-Based Multi-Person Tracking using an Approximated Likelihood Map for Overlapping Silhouette Templates A Fas Sereo-Based Muli-Person Tracking using an Approximaed Likelihood Map for Overlapping Silhouee Templaes Junji Saake Jun Miura Deparmen of Compuer Science and Engineering Toyohashi Universiy of Technology

More information

ETD-BL-1T-OFF-CC-... Timer relay with off delay (with control contact) and adjustable time. INTERFACE Data sheet _en_01. 1 Description.

ETD-BL-1T-OFF-CC-... Timer relay with off delay (with control contact) and adjustable time. INTERFACE Data sheet _en_01. 1 Description. Timer relay wih off delay (wih conrol conac) and adjusable ime INTERFACE Daa shee 103617_en_01 1 Descripion PHOENIX CONTACT - 09/2009 Feaures Compac ime relay in he 6.2 mm housing in order o conrol ime

More information

Simple Network Management Based on PHP and SNMP

Simple Network Management Based on PHP and SNMP Simple Nework Managemen Based on PHP and SNMP Krasimir Trichkov, Elisavea Trichkova bsrac: This paper aims o presen simple mehod for nework managemen based on SNMP - managemen of Cisco rouer. The paper

More information

Network management and QoS provisioning - QoS in Frame Relay. . packet switching with virtual circuit service (virtual circuits are bidirectional);

Network management and QoS provisioning - QoS in Frame Relay. . packet switching with virtual circuit service (virtual circuits are bidirectional); QoS in Frame Relay Frame relay characerisics are:. packe swiching wih virual circui service (virual circuis are bidirecional);. labels are called DLCI (Daa Link Connecion Idenifier);. for connecion is

More information

Lecture 18: Mix net Voting Systems

Lecture 18: Mix net Voting Systems 6.897: Advanced Topics in Crypography Apr 9, 2004 Lecure 18: Mix ne Voing Sysems Scribed by: Yael Tauman Kalai 1 Inroducion In he previous lecure, we defined he noion of an elecronic voing sysem, and specified

More information

Packet Scheduling in a Low-Latency Optical Interconnect with Electronic Buffers

Packet Scheduling in a Low-Latency Optical Interconnect with Electronic Buffers Packe cheduling in a Low-Laency Opical Inerconnec wih Elecronic Buffers Lin Liu Zhenghao Zhang Yuanyuan Yang Dep Elecrical & Compuer Engineering Compuer cience Deparmen Dep Elecrical & Compuer Engineering

More information

Fill in the following table for the functions shown below.

Fill in the following table for the functions shown below. By: Carl H. Durney and Neil E. Coer Example 1 EX: Fill in he following able for he funcions shown below. he funcion is odd he funcion is even he funcion has shif-flip symmery he funcion has quarer-wave

More information

Nonparametric CUSUM Charts for Process Variability

Nonparametric CUSUM Charts for Process Variability Journal of Academia and Indusrial Research (JAIR) Volume 3, Issue June 4 53 REEARCH ARTICLE IN: 78-53 Nonparameric CUUM Chars for Process Variabiliy D.M. Zombade and V.B. Ghue * Dep. of aisics, Walchand

More information

Computer representations of piecewise

Computer representations of piecewise Edior: Gabriel Taubin Inroducion o Geomeric Processing hrough Opimizaion Gabriel Taubin Brown Universiy Compuer represenaions o piecewise smooh suraces have become vial echnologies in areas ranging rom

More information

NEO 1200 SPA CONTROL SYSTEM

NEO 1200 SPA CONTROL SYSTEM INSTRUCTION MANUAL NEO 200 SPA CONTROL SYSTEM The new sandard in Spa Conrol. NEO 00 CONTROL PANEL NEO 000 CONTROL PANEL C:.02 80-980.28 2200 E. Surgis Road, Oxnard, CA 93030 Phone 805.98.0262 Fax 805.98.9403

More information

4 Error Control. 4.1 Issues with Reliable Protocols

4 Error Control. 4.1 Issues with Reliable Protocols 4 Error Conrol Jus abou all communicaion sysems aemp o ensure ha he daa ges o he oher end of he link wihou errors. Since i s impossible o build an error-free physical layer (alhough some shor links can

More information

Constant-Work-Space Algorithms for Shortest Paths in Trees and Simple Polygons

Constant-Work-Space Algorithms for Shortest Paths in Trees and Simple Polygons Journal of Graph Algorihms and Applicaions hp://jgaa.info/ vol. 15, no. 5, pp. 569 586 (2011) Consan-Work-Space Algorihms for Shores Pahs in Trees and Simple Polygons Tesuo Asano 1 Wolfgang Mulzer 2 Yajun

More information

CAMERA CALIBRATION BY REGISTRATION STEREO RECONSTRUCTION TO 3D MODEL

CAMERA CALIBRATION BY REGISTRATION STEREO RECONSTRUCTION TO 3D MODEL CAMERA CALIBRATION BY REGISTRATION STEREO RECONSTRUCTION TO 3D MODEL Klečka Jan Docoral Degree Programme (1), FEEC BUT E-mail: xkleck01@sud.feec.vubr.cz Supervised by: Horák Karel E-mail: horak@feec.vubr.cz

More information

The Impact of Product Development on the Lifecycle of Defects

The Impact of Product Development on the Lifecycle of Defects The Impac of Produc Developmen on he Lifecycle of Rudolf Ramler Sofware Compeence Cener Hagenberg Sofware Park 21 A-4232 Hagenberg, Ausria +43 7236 3343 872 rudolf.ramler@scch.a ABSTRACT This paper invesigaes

More information

MOBILE COMPUTING. Wi-Fi 9/20/15. CSE 40814/60814 Fall Wi-Fi:

MOBILE COMPUTING. Wi-Fi 9/20/15. CSE 40814/60814 Fall Wi-Fi: MOBILE COMPUTING CSE 40814/60814 Fall 2015 Wi-Fi Wi-Fi: name is NOT an abbreviaion play on Hi-Fi (high fideliy) Wireless Local Area Nework (WLAN) echnology WLAN and Wi-Fi ofen used synonymous Typically

More information

MOBILE COMPUTING 3/18/18. Wi-Fi IEEE. CSE 40814/60814 Spring 2018

MOBILE COMPUTING 3/18/18. Wi-Fi IEEE. CSE 40814/60814 Spring 2018 MOBILE COMPUTING CSE 40814/60814 Spring 2018 Wi-Fi Wi-Fi: name is NOT an abbreviaion play on Hi-Fi (high fideliy) Wireless Local Area Nework (WLAN) echnology WLAN and Wi-Fi ofen used synonymous Typically

More information

Overview of Board Revisions

Overview of Board Revisions s Sysem Overview MicroAuoBox Embedded PC MicroAuoBox II can be enhanced wih he MicroAuoBox Embedded PC. The MicroAuoBox EmbeddedPC is powered via he MicroAuoBox II power inpu connecor. Wih he common power

More information

mulatio on Usingg GLLSL, Ope

mulatio on Usingg GLLSL, Ope 22 2 GP PGPU Clloh Sim mulaio on Usingg GLLSL, Ope encl, and CUD DA Marrco Fraarcaangeli Taiu us Sofware Ialia I 22.1 Inroducion n Thiss chaper prov vides a comp parison sudyy beween hrree popular pplaforms

More information

Performance Evaluation of Implementing Calls Prioritization with Different Queuing Disciplines in Mobile Wireless Networks

Performance Evaluation of Implementing Calls Prioritization with Different Queuing Disciplines in Mobile Wireless Networks Journal of Compuer Science 2 (5): 466-472, 2006 ISSN 1549-3636 2006 Science Publicaions Performance Evaluaion of Implemening Calls Prioriizaion wih Differen Queuing Disciplines in Mobile Wireless Neworks

More information

Improved TLD Algorithm for Face Tracking

Improved TLD Algorithm for Face Tracking Absrac Improved TLD Algorihm for Face Tracking Huimin Li a, Chaojing Yu b and Jing Chen c Chongqing Universiy of Poss and Telecommunicaions, Chongqing 400065, China a li.huimin666@163.com, b 15023299065@163.com,

More information

LD7832A 4/17/2013. High Power Factor LED Controller with HV Start-up. General Description. Features. Applications. Typical Application REV: 00

LD7832A 4/17/2013. High Power Factor LED Controller with HV Start-up. General Description. Features. Applications. Typical Application REV: 00 4/17/2013 High Power Facor LED Conroller wih HV Sar-up REV: 00 General Descripion The is a buck soluion wih high PFC conrol for LED lighing. I feaures HV sar-up, easy o design wih minimum cos and PCB size.

More information

MoBAN: A Configurable Mobility Model for Wireless Body Area Networks

MoBAN: A Configurable Mobility Model for Wireless Body Area Networks MoBAN: A Configurable Mobiliy Model for Wireless Body Area Neworks Majid Nabi 1, Marc Geilen 1, Twan Basen 1,2 1 Deparmen of Elecrical Engineering, Eindhoven Universiy of Technology, he Neherlands 2 Embedded

More information

Sartorius Cubis Series

Sartorius Cubis Series Brief Insrucions Sarorius Cubis Series Elecronic Precision and Analical Balances MSU Models 98648-017-12 Informaion for he User Conens Noes on using his manual....................... 3 Safe Insrucions.............................

More information

A Fast Non-Uniform Knots Placement Method for B-Spline Fitting

A Fast Non-Uniform Knots Placement Method for B-Spline Fitting 2015 IEEE Inernaional Conference on Advanced Inelligen Mecharonics (AIM) July 7-11, 2015. Busan, Korea A Fas Non-Uniform Knos Placemen Mehod for B-Spline Fiing T. Tjahjowidodo, VT. Dung, and ML. Han Absrac

More information

EP2200 Queueing theory and teletraffic systems

EP2200 Queueing theory and teletraffic systems EP2200 Queueing heory and eleraffic sysems Vikoria Fodor Laboraory of Communicaion Neworks School of Elecrical Engineering Lecure 1 If you wan o model neworks Or a comple daa flow A queue's he key o help

More information

ME 406 Assignment #1 Solutions

ME 406 Assignment #1 Solutions Assignmen#1Sol.nb 1 ME 406 Assignmen #1 Soluions PROBLEM 1 We define he funcion for Mahemaica. In[1]:= f@_d := Ep@D - 4 Sin@D (a) We use Plo o consruc he plo. In[2]:= Plo@f@D, 8, -5, 5

More information

UX260 QUICK START GUIDE

UX260 QUICK START GUIDE UX260 QUICK START GUIDE Transferring Music Playing Music Blueooh Pairing Taking a Picure/ Recording a Video www.lgusa.com Geing o Know Your Phone Camera BACK SIDE Lef Sof Key Speakerphone Key Talk Key

More information

PCMCIA / JEIDA SRAM Card

PCMCIA / JEIDA SRAM Card Daashee PCMCIA / JEIDA SRAM Card Version 10 Preliminary Version 10 Page1 Documen Version Version Descripion Dae Edior Approved by 8 Updae 2, April, 2002 Greg Lin Greg Lin 9 Updae 10, Aug., 2010 Amos Chung

More information

Analysis of Various Types of Bugs in the Object Oriented Java Script Language Coding

Analysis of Various Types of Bugs in the Object Oriented Java Script Language Coding Indian Journal of Science and Technology, Vol 8(21), DOI: 10.17485/ijs/2015/v8i21/69958, Sepember 2015 ISSN (Prin) : 0974-6846 ISSN (Online) : 0974-5645 Analysis of Various Types of Bugs in he Objec Oriened

More information

Low-Cost WLAN based. Dr. Christian Hoene. Computer Science Department, University of Tübingen, Germany

Low-Cost WLAN based. Dr. Christian Hoene. Computer Science Department, University of Tübingen, Germany Low-Cos WLAN based Time-of-fligh fligh Trilaeraion Precision Indoor Personnel Locaion and Tracking for Emergency Responders Third Annual Technology Workshop, Augus 5, 2008 Worceser Polyechnic Insiue, Worceser,

More information

MORPHOLOGICAL SEGMENTATION OF IMAGE SEQUENCES

MORPHOLOGICAL SEGMENTATION OF IMAGE SEQUENCES MORPHOLOGICAL SEGMENTATION OF IMAGE SEQUENCES B. MARCOTEGUI and F. MEYER Ecole des Mines de Paris, Cenre de Morphologie Mahémaique, 35, rue Sain-Honoré, F 77305 Fonainebleau Cedex, France Absrac. In image

More information

BEST DYNAMICS NAMICS CRM A COMPILATION OF TECH-TIPS TO HELP YOUR BUSINESS SUCCEED WITH DYNAMICS CRM

BEST DYNAMICS NAMICS CRM A COMPILATION OF TECH-TIPS TO HELP YOUR BUSINESS SUCCEED WITH DYNAMICS CRM DYNAMICS CR A Publicaion by elogic s fines Microsof Dynamics CRM Expers { ICS CRM BEST OF 2014 A COMPILATION OF TECH-TIPS TO HELP YOUR BUSINESS SUCCEED WITH DYNAMICS CRM NAMICS CRM { DYNAMICS M INTRODUCTION

More information

THERMAL PHYSICS COMPUTER LAB #3 : Stability of Dry Air and Brunt-Vaisala Oscillations

THERMAL PHYSICS COMPUTER LAB #3 : Stability of Dry Air and Brunt-Vaisala Oscillations THERMAL PHYSICS COMPUTER LAB #3 : Sabiliy of Dry Air and Brun-Vaisala Oscillaions Consider a parcel of dry air of volume V, emperaure T and densiy ρ. I displace he same volume V of surrounding air of emperaure

More information

MB86297A Carmine Timing Analysis of the DDR Interface

MB86297A Carmine Timing Analysis of the DDR Interface Applicaion Noe MB86297A Carmine Timing Analysis of he DDR Inerface Fujisu Microelecronics Europe GmbH Hisory Dae Auhor Version Commen 05.02.2008 Anders Ramdahl 0.01 Firs draf 06.02.2008 Anders Ramdahl

More information

3RP20, 3RP15 solid-state time relays

3RP20, 3RP15 solid-state time relays 7 3RP20, 3RP15 solid-sae ime relays Secion Subjec Page 7.1 Specificaions/regulaions/approvals 7-2 7.2 Device descripion 7-3 7.2.1 Device ypes 7-3 7.2.2 Insallaion 7-5 7.2.3 Special feaures 7-5 7.2.4 Noes

More information

Rao-Blackwellized Particle Filtering for Probing-Based 6-DOF Localization in Robotic Assembly

Rao-Blackwellized Particle Filtering for Probing-Based 6-DOF Localization in Robotic Assembly MITSUBISHI ELECTRIC RESEARCH LABORATORIES hp://www.merl.com Rao-Blackwellized Paricle Filering for Probing-Based 6-DOF Localizaion in Roboic Assembly Yuichi Taguchi, Tim Marks, Haruhisa Okuda TR1-8 June

More information

Differential Geometry of Surfaces with Mathcad: A Virtual Learning Approach

Differential Geometry of Surfaces with Mathcad: A Virtual Learning Approach The 4 h Inernaional Conference on Virual Learning Gheorghe Asachi Technical Universiy of Iaşi, Oc 30-Nov, 009 Differenial Geomery of Surfaces wih Mahca: A Virual Learning Approach Nicolae Dăneţ Technical

More information

In fmri a Dual Echo Time EPI Pulse Sequence Can Induce Sources of Error in Dynamic Magnetic Field Maps

In fmri a Dual Echo Time EPI Pulse Sequence Can Induce Sources of Error in Dynamic Magnetic Field Maps In fmri a Dual Echo Time EPI Pulse Sequence Can Induce Sources of Error in Dynamic Magneic Field Maps A. D. Hahn 1, A. S. Nencka 1 and D. B. Rowe 2,1 1 Medical College of Wisconsin, Milwaukee, WI, Unied

More information

Matlab5 5.3 symbolisches Lösen von DGLn

Matlab5 5.3 symbolisches Lösen von DGLn C:\Si5\Ingmah\symbmalab\DGLn_N4_2.doc, Seie /5 Prof. Dr. R. Kessler, Homepage: hp://www.home.hs-karlsruhe.de/~kero/ Malab5 5.3 symbolisches Lösen von DGLn % Beispiele aus Malab 4.3 Suden Ediion Handbuch

More information