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

Add discrete post for GLGM06 #861

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

schillic
Copy link
Member

This is an example how to add discrete post functions for the linear algorithms.
solve is not implemented yet.

function exponential_1d(; invariant=Universe(1))
  s = @system(x' = -x, x  invariant)
  x0 = Interval(0.4, 0.5)
  prob = InitialValueProblem(s, x0)
  tspan = (0.0, 1.0)
  return prob, tspan
end
ivp, _ = exponential_1d()
alg = GLGM06(; δ=0.01)

sol_c = solve(ivp; T=5.0, alg=alg);

ivp_norm = ReachabilityAnalysis._normalize(ivp)
ivp_discr = discretize(ivp_norm, alg.δ, alg.approx_model)
NSTEPS = 500

fp_d = ReachabilityAnalysis.post(alg, ivp_discr, NSTEPS);

At the end, flowpipe(sol_c) == fp_d would hold, but == is not defined for flowpipes.

@schillic schillic force-pushed the schillic/GLGM06_discrete branch from 7693c7a to d2b83a9 Compare July 28, 2024 13:18
@schillic schillic marked this pull request as ready for review July 28, 2024 13:45
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

Successfully merging this pull request may close these issues.

1 participant