-
Notifications
You must be signed in to change notification settings - Fork 87
Add upper and lowerbounds to check results. #1031
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
5c36f51
Add upper and lowerbounds to DTMC and MDP model checking with OVI or II.
lukovdm 99b6999
Better handling of moving around the bounds between functions.
lukovdm c6dfe5f
Adding the DTMC return type
lukovdm 26631f1
Remove map as vector type from CheckResults, replaced by bitvector of…
lukovdm e46d074
Widen bounds that arrive in the plain value type instead of reading a…
lukovdm c685a08
Pass the optional solution bounds by OptionalRef instead of by pointer
lukovdm 9e28725
Warn users if qualitative bound is between lower and upperbound of a …
lukovdm 941b871
Take values arriving in the plain type as finite
lukovdm d5414ee
Write an unknown bound as a dash rather than as an infinity
lukovdm b7a9905
Test that the bounds interval and optimistic value iteration report e…
lukovdm a718228
Trim the comments added for the solution bounds
lukovdm 73611a8
One more comment
lukovdm 624df57
Fix z3 missing
lukovdm 19d205d
Lift the bounds from the end component quotient in MDP until probabil…
lukovdm 3121894
Show the bounds when a result is written as a range
lukovdm 2720ecd
Add a check that bounds enclose given values
lukovdm a0ddbdd
Always keep the states a check result is for
lukovdm 606eb84
Check the solution bounds in the model checking tests
lukovdm e283ff7
Fix the smaller findings of the bounds review
lukovdm bace449
Say how the reward bounded values line up with the initial states
lukovdm 1c05cd8
Keep averaging the two optimistic value iteration vectors
lukovdm 64f8ffc
Do not require the values to lie within the bounds
lukovdm 7719ccd
Read the bounds of the initial state directly in the tests
lukovdm f945f74
Revert "Do not require the values to lie within the bounds"
lukovdm 9d208f6
Invert probability bounds through a method on SolutionBounds
lukovdm 7025a49
Review fixes
lukovdm ffdd3e4
Fix infinity avg and sum bug.
lukovdm ecdf84d
fix test for print bounds
lukovdm 7c5ee66
Change template param name of abstract equation solver to reflect act…
lukovdm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
resources/examples/testfiles/mdp/maybe_state_end_component.nm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // An MDP whose maybe states contain an end component: staying in x=0 or x=1 forever is a choice, so a sound | ||
| // method has to eliminate that end component before it can solve for the maximal probability of reaching x=2. | ||
| mdp | ||
|
|
||
| module main | ||
| x : [0..3]; | ||
|
|
||
| [] x=0 -> (x'=0); | ||
| [] x=0 -> 0.5 : (x'=1) + 0.5 : (x'=3); | ||
| [] x=1 -> (x'=0); | ||
| [] x=1 -> 0.5 : (x'=2) + 0.5 : (x'=3); | ||
| [] x>=2 -> true; | ||
| endmodule | ||
|
|
||
| label "target" = x=2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/storm/modelchecker/prctl/helper/DTMCModelCheckingHelperReturnType.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #pragma once | ||
|
|
||
| #include <utility> | ||
| #include <vector> | ||
|
|
||
| #include "storm/solver/SolutionBounds.h" | ||
|
|
||
| namespace storm { | ||
| namespace modelchecker { | ||
| namespace helper { | ||
|
|
||
| /*! | ||
| * The outcome of a quantitative model checking query on a sparse DTMC. Unlike its MDP counterpart it carries no | ||
| * scheduler, as a DTMC has no nondeterminism to resolve. | ||
| */ | ||
| template<typename ValueType> | ||
| struct DTMCSparseModelCheckingHelperReturnType { | ||
| DTMCSparseModelCheckingHelperReturnType(DTMCSparseModelCheckingHelperReturnType const&) = delete; | ||
| DTMCSparseModelCheckingHelperReturnType(DTMCSparseModelCheckingHelperReturnType&&) = default; | ||
| DTMCSparseModelCheckingHelperReturnType& operator=(DTMCSparseModelCheckingHelperReturnType&&) = default; | ||
|
|
||
| explicit DTMCSparseModelCheckingHelperReturnType(std::vector<ValueType>&& values) : values(std::move(values)) { | ||
| // Intentionally left empty. | ||
| } | ||
|
|
||
| // The values computed for the states. | ||
| std::vector<ValueType> values; | ||
|
|
||
| storm::solver::SolutionBounds<ValueType> solutionBounds; | ||
| }; | ||
|
|
||
| } // namespace helper | ||
| } // namespace modelchecker | ||
| } // namespace storm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.