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

Functionality for property checking on a given mode #257

Open
mforets opened this issue Jul 1, 2020 · 0 comments
Open

Functionality for property checking on a given mode #257

mforets opened this issue Jul 1, 2020 · 0 comments

Comments

@mforets
Copy link
Member

mforets commented Jul 1, 2020

Some properties should hold only for some locations; for example, the following function (taken from the spacecraft model, see this repo) checks whether the secnd location of the hybrid flowpipe in sol is contained in the given cone.

function line_of_sight(sol, cone)
    all_idx = findall(x -> x == 2, location.(sol))  # attempt
    for idx in all_idx
        verif = all(set(R) ⊆ cone for R in sol[idx])
        !verif && return false
    end
    return true
end

It would be convenient to introduce some syntax for this type of check, such as

sol(location=2)  cone

or similar.

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

1 participant