sisl / SignalTemporalLogic.jl

Signal temporal logic (STL) formulas and robustness in Julia
Other
9 stars 1 forks source link

Allow for conjunction between logical expressions #5

Open smkatz12 opened 1 year ago

smkatz12 commented 1 year ago

Add functionality to make the following work:

@formula □(s->s[1] < 50 && s[4] < 1)

Thanks!

mossr commented 1 year ago

Now it works as expected:


ϕ = @formula □(s->s[1] < 50 && s[4] < 1)
ϕ([(49, 0, 0, 0), (49, 0, 0, -1)]) # returns true.
# Note this input can be an Array{Array}, Array{Tuple}, Tuple{Array}, or Tuple{Tuple}.
end