Replies: 5 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
In the page here, we have:
This should be fixed. Still in the same place, in the paragraph:
The usage is the following:
|
Beta Was this translation helpful? Give feedback.
-
Zermelo problems: I would split in two different pages the two examples since it is quite long. |
Beta Was this translation helpful? Give feedback.
-
Erratum. It cannot be shortened as mentioned below since the dimension of the flows are different!
ode_sol = fc((t0, tt1), x0, pp0, saveat=0.1)
ttt1 = ode_sol.t
xx1 = [ ode_sol[1:2, j] for j in 1:size(ttt1, 1) ]
pp1 = [ ode_sol[3:4, j] for j in 1:size(ttt1, 1) ]
uu1 = u11.(xx1, pp1)
pλ0 = 0.
py0 = 0.
ode_sol = fcl((tt1, tt2), [xx1[end] ; aa ; 0.0], [pp1[end] - [0. , jmp11]; pλ0 ; py0], saveat=0.1)
ttt2 = ode_sol.t
xx2 = [ ode_sol[1:2, j] for j in 1:size(ttt2, 1) ]
pp2 = [ ode_sol[5:6, j] for j in 1:size(ttt2, 1) ]
uu2 = a.*ones(length(ttt2)) ;
ode_sol = fc((tt2, tf), xx2[end], pp2[end] - [0. , jmp22], saveat=0.1)
ttt3 = ode_sol.t
xx3 = [ ode_sol[1:2, j] for j in 1:size(ttt3, 1) ]
pp3 = [ ode_sol[3:4, j] for j in 1:size(ttt3, 1) ]
uu3 = u11.(xx3, pp3)
tsol = [ ttt1 ; ttt2 ; ttt3 ]
xsol = [ xx1 ; xx2 ; xx3 ]
psol = [ pp1 ; pp2 ; pp3 ]
usol = [ uu1 ; uu2 ; uu3 ]
m = length(tsol)
x11 = [ xsol[i][1] for i=1:m ]
x22 = [ xsol[i][2] for i=1:m ]
p11 = [ psol[i][1] for i=1:m ]
p22 = [ psol[i][2] for i=1:m ] You can use the concatenation of arcs. See here. But you need to add the jumps. I have added this possibility. See this example where I make a concatenation with a jump: f = f0 * (t1, fc) * (t2, ν2, f0) # ν2 is a jump on the costate and has the same dimension as the state Here |
Beta Was this translation helpful? Give feedback.
-
We do not use NLSolve.jl but MINPACK.jl or NonlinearSolve.jl in our documentation: see here. To see if we change here or not. |
Beta Was this translation helpful? Give feedback.
-
Remarks in vrac.
@AnasXbouali
See the comments below.
Beta Was this translation helpful? Give feedback.
All reactions