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

Update TMJets returning the TMs #634

Merged
merged 1 commit into from
May 16, 2019
Merged

Update TMJets returning the TMs #634

merged 1 commit into from
May 16, 2019

Conversation

mforets
Copy link
Member

@mforets mforets commented May 15, 2019

Apart from small tweaks this branch updates wrt TaylorModels#master and the idea of returning the TMs in the solution (before box o.a.). Note, however, that in a follow-up PR we should fully "branch" it to the cont post perhaps adding a new option to choose the type of the solution. Note also that ReachSolution takes arguments of type LazySet but TaylorModel is not of that type (we could add this in the future..).

@mforets mforets requested a review from kpotomkin May 15, 2019 10:39
t[0] = t0
tI[0] = t0
tv[nsteps] = t0
for i in eachindex(x)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe do for i, xi in enumerate(x).

@@ -116,7 +124,7 @@ function validated_integ(f!, qq0::AbstractVector{T}, δq0::IntervalBox{N,T},

end

return view(tv,1:nsteps), view(xv,1:nsteps)
return view(tv,1:nsteps), view(xv,1:nsteps), view(xTM1v, :, 1:nsteps)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you not accept this new output here?

tTM, xTM = validated_integ(f!, q0, δq0, t0, T, orderQ, orderT, abs_tol,
maxsteps=max_steps, check_property=property)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should read it (i opened #635 as follow up) and so far it is ignored.

I didn't do it here because there was no obvious workaround: ReachSolution is parametric in LazySet and TaylorModel1 is not a lazy set so i cannot add it to the solution..

@mforets mforets mentioned this pull request May 16, 2019
@mforets mforets merged commit e393aa5 into master May 16, 2019
@mforets mforets deleted the mforets/upTMJets branch May 16, 2019 03:08
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.

2 participants