If the model is a CTMC or DTMC, it is possible to compute corresponding vectors of
steady-state or transient probabilities directly
(rather than indirectly by analysing a property which requires their computation).
From the GUI, select an option from the "Model | Compute" menu.
For transient probabilities, you will be asked to supply the
time value for which you wish to compute probabilities.
From the command-line, add the -steadystate
(or -ss
) switch:
for steady-state probabilities or the -transient
(or -tr
) switch:
for transient probabilities, again specifying a time value in the latter case. The probabilities are computed for all states of the model and displayed, either on the screen (from the command-line) or in the log (from the GUI).
From the command-line, a few additional options are available.
It also possible to send the probability distribution to a file,
rather than the screen, using the -exportsteadystate
(or -exportss
)
and -exporttransient
(or -exporttr
) switches:
You can also request that the probability vectors exported are in Matlab format by adding the -exportmatlab
switch.
By default, for both steady-state and transient probability computation,
PRISM assumes that the initial probability distribution of the CTMC is
an equiprobable choice over the set of initial states.
When computing transient probabilities from the command-line, you can override this and provide a specific initial distribution. This is done using the -importinitdist
switch. The format for this imported distribution is identical to the ones exported by PRISM, i.e. simply a list of probabilities for all states separated by new lines. For example, this:
is (essentially) equivalent to this: