-
Notifications
You must be signed in to change notification settings - Fork 36
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
Invariant is not able to stop the reachable set! #58
Comments
Dear @ArsalMu, Please provide a full example such that we can run the code to reproduce the bug. Best, |
Unfortunately, there are some syntax issue in the code. For example, the second line in
In particular, this |
I think there is some problem with pasting the code. |
It'll definitely work. And You may see the issues. |
Dear @toladnertum , |
Can you tell us exactly how the computed behavior (as plotted at the end of the script) differs from the behavior you expect? In particular, do you expect that the reachable set should not enter the region |
Yes @wetzlingerm. In the state L3 the invariant for x(2) is 0.9148 to 2.58. So it should not exceed this limit. Along with that, there is a guard at 2.58 there, too. It must make a transition instead of staying in L3 and breaking the limits. |
CORA implements transitions in hybrid systems reachability as follows:
In your case, the reachable set does not entirely leave the invariant of location 3, as the last time-point reachable set We are currently working on our v2025 version, which will be released in one or two weeks. We'll integrate a fix for this issue. |
Hi @wetzlingerm, Thanks in advance. |
Your specific issue was addressed in If you have further questions about your example, please let us know the exact error message and we'll be happy to help you out! |
The example I posted, still going to the unsafe set prematurely. It is still in the comments. You may check. It would be great if I might be able to know the issue. |
Dear @ArsalMu, Are you still having this issue? If so, please try again using the latest CORA version (v2025.1.0). |
Hi,
I am doing some reachability analysis on a hybrid automaton of my system using CORA. But the thing is that I am not able to simulate just 4 states. It is because the invariant set does not limit the state variables from going out.
MATLAB version is latest so does with CORA
Here are some settings:
params.tFinal = 100;
params.R0 = zonotope(interval([0; 2; 0; 0],[0;2;0;0]));
params.startLoc = 3; % initial location
% Reachability Settings ---------------------------------------------------
% algorithm options
options.timeStep = 0.1;
options.zonotopeOrder = 20;
options.taylorTerms = 10;
options.intermediateOrder = 2;
options.errorOrder = 5;
options.tensorOrder = 2;
options.alg = 'lin';
% guard intersection method
options.guardOrder=4;
options.guardIntersect = 'conZonotope';
options.enclose = {'box'};
%invariants are like this------------------
inv = interval([0;2.55;-10;0],[40;3.5;50;0]);
The text was updated successfully, but these errors were encountered: