We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Float64
The example below creates a discrete-time system with a boolean discrete-time variable, it fails with
julia> prob = DiscreteProblem(sys, [], (0,10)) ERROR: MethodError: no method matching !(::Float64)
function Model(; name) @variables begin x(t)::Bool = true end equations = [ x(k) ~ !x(k-1) ] DiscreteSystem(equations, t; name) end @mtkbuild sys = Model() prob = DiscreteProblem(sys, [], (0,10)) sol = solve(prob, FunctionMap()) x = sol[sys.x(k+1)] @test eltype(x) <: Bool
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The example below creates a discrete-time system with a boolean discrete-time variable, it fails with
The text was updated successfully, but these errors were encountered: