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 NoBloating approximation model #209

Merged
merged 2 commits into from
May 30, 2020
Merged

Add NoBloating approximation model #209

merged 2 commits into from
May 30, 2020

Conversation

mforets
Copy link
Member

@mforets mforets commented May 30, 2020

Closes #208.

@mforets
Copy link
Member Author

mforets commented May 30, 2020

Example:

using Revise, ReachabilityAnalysis, Plots

include("/home/mforets/.julia/dev/ReachabilityAnalysis/test/models/linear/linear5D.jl")

# homogeneous case
prob, _ = linear5D_homog()

sol = solve(prob, T=5.0, alg=GLGM06=1e-2));
plot(sol, vars=(0, 1), lw=0.0, color=:lightblue, alpha=.8, lab="Forward bloating")

sol = solve(prob, T=5.0, alg=GLGM06=1e-2, approx_model=NoBloating()));
plot!(sol, vars=(0, 1), lw=0.0, color=:red, alpha=.8, lab="No bloating")

# inhomogeneous case
prob, _ = linear5D()

sol = solve(prob, T=5.0, alg=GLGM06=1e-2));
plot(sol, vars=(0, 1), lw=0.0, color=:lightblue, alpha=.8, lab="Forward bloating")

sol = solve(prob, T=5.0, alg=GLGM06=1e-2, approx_model=NoBloating()));
plot!(sol, vars=(0, 1), lw=0.0, color=:red, alpha=.8, lab="No bloating")

Screenshot from 2020-05-30 16-09-45

Screenshot from 2020-05-30 16-09-34

@mforets mforets merged commit dc348e3 into master May 30, 2020
@mforets mforets deleted the mforets/208 branch May 30, 2020 19:28
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.

Add "discrete time" approximation model
1 participant