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.

17 lines
361 B

5 years ago
  1. pomdp
  2. observable "end" = s=5;
  3. observable "trap" = s=4;
  4. module main
  5. s : [0..5] init 0;
  6. [a] s = 0 -> 0.25: (s'=1) + 0.25: (s'=2) + 0.5:(s'=3);
  7. [b] s=0 -> 0.5: (s'=1) + 0.5: (s'=2);
  8. [a] s=1 -> (s'=2);
  9. [a] s=2 -> (s'=1);
  10. [b] s=1 -> (s'=4);
  11. [b] s=2 -> (s'=5);
  12. [a] s=3 -> (s'=5);
  13. [b] s=3 -> (s'=5);
  14. endmodule
  15. label "goal" = s=5;