HakanBrian / CoopConflStoch

1 stars 0 forks source link

Solution of ODE system not reaching max timespan #2

Closed HakanBrian closed 3 months ago

HakanBrian commented 3 months ago

The solution to the ODE problem in behav_eq! does not create a vector of tmax elements as expected.

However, note that this issue does not occur frequently. Most of the time it works as expected.

To circumvent this issue I have behav_eq! return the tmax-1 element of the solution. Overall this ad hoc solution should not effect the simulation to any extent.

HakanBrian commented 3 months ago

So I had a bit of a brain fart. I forgot I can just use “end” to get the last element without worrying about the length of the list.