Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show example state whenever probabilties sum up to more or less than one. #105

Open
HansvdLaan opened this issue Dec 29, 2018 · 1 comment

Comments

@HansvdLaan
Copy link

Whenever one tries to build a model in which the probabilities sum up to less or more than one an error like the one below is shown:

Error: Probabilities in command 1 of module "name" sum to less than one (e.g. X) 
for some states.  Perhaps some of the updates give out-of-range values. 
One possible solution is to strengthen the guard (line Y, column Z).

This gives the user only a minimal pointer to figure out the mistake in his model.

An usefull addition to this error message would be to give an example state in which this actually is the case.

This is already being done in the GUI whenever one tries to plot a path in the faulty model.

Error: Probabilities sum up to A in state(B=0, C=1) (line X, column Y)
@davexparker
Copy link
Member

Thanks for the report. This is a known issue. But with the default (symbolic) engine used to build models in PRISM, it's actually quite hard to generate helpful error message of that sort.

We've actually been working on it recently, though, and will hopefully have something implemented soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants