Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. hybrid reachability
  2. {
  3. state var x1, y1, alpha1, x2, y2, alpha2, z
  4. setting
  5. {
  6. fixed steps 0.02
  7. time 15
  8. remainder estimation 1e-6
  9. identity precondition
  10. gnuplot octagon x1,y1
  11. adaptive orders { min 2 , max 5 }
  12. cutoff 1e-12
  13. precision 53
  14. output aircraft
  15. max jumps 2 # bound of the jump depth
  16. print on
  17. }
  18.  
  19. modes
  20. {
  21. mode1
  22. {
  23. nonpoly ode
  24. {
  25. x1’ = cos(alpha1) y1’ = sin(alpha1) alpha1’ = 0
  26. x2’ = cos(alpha2) y2’ = sin(alpha2) alpha2’ = 0
  27. z’ = 0
  28. }
  29. inv { (x1 - x2)^2 + (y1 - y2)^2 >= 4 }
  30. }
  31.  
  32. mode2
  33. {
  34. nonpoly ode
  35. {
  36. x1’ = cos(alpha1) y1’ = sin(alpha1) alpha1’ = 1
  37. x2’ = cos(alpha2) y2’ = sin(alpha2) alpha2’ = 1
  38. z’ = 1
  39. }
  40. inv { z <= 3.1415 }
  41. }
  42.  
  43. mode3
  44. {
  45. nonpoly ode
  46. {
  47. x1’ = cos(alpha1) y1’ = sin(alpha1) alpha1’ = 0
  48. x2’ = cos(alpha2) y2’ = sin(alpha2) alpha2’ = 0
  49. z’ = 0
  50. }
  51. inv { }
  52. }
  53. }
  54.  
  55. jumps
  56. {
  57. mode1 - > mode2
  58. guard { (x1 - x2)^2 + (y1 - y2)^2 = 4 }
  59. reset { alpha1’ := alpha1 - 1.57075 alpha2’ := alpha2 - 1.57075 }
  60. parallelotope aggregation { [x1:1,y1:1] [x2:1,y2:1] }
  61.  
  62. mode2 - > mode3
  63. guard { z = 3.1415 }
  64. reset { alpha1’ := alpha1 - 1.57075 alpha2’ := alpha2 - 1.57075 }
  65. parallelotope aggregation { }
  66. }
  67.  
  68. init
  69. {
  70. mode1
  71. {
  72. x1 in [-0.1,0.1] y1 in [-0.1,0.1] alpha1 in [0.785374,0.785376]
  73. x2 in [9.9,10.1] y2 in [-0.1,0.1] alpha2 in [2.35612,2.35613]
  74. z in [0,0]
  75. }
  76. }
  77. }
  78.  
  79. unsafe set
  80. {
  81. mode1 { x1 - x2 <= 0.2 x1 - x2 >= -0.2 y1 - y2 <= 0.2 y1 - y2 >= -0.2 }
  82. mode2 { x1 - x2 <= 0.2 x1 - x2 >= -0.2 y1 - y2 <= 0.2 y1 - y2 >= -0.2 }
  83. mode3 { x1 - x2 <= 0.2 x1 - x2 >= -0.2 y1 - y2 <= 0.2 y1 - y2 >= -0.2 }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement