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.
28 lines
347 B
28 lines
347 B
|
|
ctmc
|
|
|
|
|
|
module main
|
|
|
|
s : [0..4]; // current state:
|
|
|
|
|
|
<> s=0 -> 4 : (s'=1) + 4 : (s'=2);
|
|
<> s=1 -> 0.3 : (s'=2) + 0.7 : (s'=1);
|
|
<> s=2 -> 0.5 : (s'=2) + 0.5 : (s'=3);
|
|
<> s=3 -> 1 : (s'=4);
|
|
<> s=4 -> 1 : (s'=3);
|
|
|
|
endmodule
|
|
|
|
rewards "rew1"
|
|
s=0 : 7;
|
|
[] s=2 : 1;
|
|
endrewards
|
|
|
|
|
|
rewards "rew2"
|
|
s=0 : 7;
|
|
[] s=2 : 1;
|
|
[] s=4 : 100;
|
|
endrewards
|