You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
595 B

2 months ago
  1. ma
  2. module main
  3. s : [0..5]; // current state:
  4. <> s=0 -> 4 : (s'=1) + 4 : (s'=2);
  5. [alpha] s=1 -> 1 : (s'=0);
  6. [beta] s=1 -> 0.3 : (s'=5) + 0.7 : (s'=1);
  7. <> s=5 -> 1 : (s'=2);
  8. [gamma] s=2 -> 1 : (s'=1);
  9. [delta] s=2 -> 0.5 : (s'=2) + 0.5 : (s'=3);
  10. <> s=3 -> 1 : (s'=4);
  11. [lambda] s=4 -> 1 : (s'=3);
  12. endmodule
  13. rewards "rew0"
  14. [delta] s=2 : 1;
  15. endrewards
  16. rewards "rew1"
  17. s=0 : 7;
  18. [delta] s=2 : 1;
  19. endrewards
  20. rewards "rew2"
  21. s=0 : 7;
  22. [delta] s=2 : 1;
  23. [lambda] s=4 : 100;
  24. endrewards
  25. rewards "rew3"
  26. s=0 : 7;
  27. [delta] s=2 : 1;
  28. [gamma] s=2 : 100;
  29. [lambda] s=4 : 27;
  30. endrewards