-
Notifications
You must be signed in to change notification settings - Fork 16
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
Simulation for hybrid systems #540
Merged
Merged
Conversation
This file contains 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
0e85d37
to
5a905c8
Compare
The plot shows that the set-based results are incorrect: the last two jumps are missing! |
5a905c8
to
d55967e
Compare
Tests: # transition from off to on
guard1 = HalfSpace([1.0], 19.0) # original guard
guard2 = HalfSpace([1.0], 18.01) # small invariant-guard intersection
# guard is a union (does not work with reachability analysis; I needed to manually deactivate it)
guard3 = UnionSet(Interval(18., 18.3), Interval(19., 19.3))
# initial condition
X0 = Singleton([18.0])
X1 = BallInf([18.0], 0.3)
X2 = BallInf([21.0], 0.3)
X3 = BallInf([21.0], 0.1)
initial_condition1 = [(1, X0)] # original singleton condition
initial_condition2 = [(1, X1)] # whole set of points
initial_condition3 = [(1, X1), (2, X2)] # several initial locations
initial_condition4 = X3 # set intersecting with both location invariants
As can be seen, there are many transitions missing in the set-based analysis 😱 |
i think its good; the docs build is unrelated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is based on #539.Possible future additions:
Example