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.

20 lines
289 B

3 months ago
  1. mdp
  2. const double p1 = 0.5;
  3. const double p2 = 0.5;
  4. module main
  5. x : [0..4];
  6. [] x=0 -> p1 : (x'=1) + (1-p1) : (x'=3);
  7. [up] x>=1 & x<=3 -> (x'=x+1);
  8. [down] x>=2 & x<=3 -> (x'=1);
  9. endmodule
  10. label "t1" = x=4;
  11. label "t2" = x=3;
  12. rewards "test"
  13. [down] x=2: 27;
  14. [up] x=3: 2;
  15. endrewards