Internal function to sample and set up data structure for batch migration

batch_migration_stage(SPN_P, rates, move, prob, stage, tmax)

Arguments

SPN_P

a set of Petri net places

rates

a vector of rates for each node

move

a movement matrix (where do the batches go?)

prob

the probability vector for each individual moving in each batch

stage

the life stage (one of 'ELP', 'F', 'M')

tmax

maximum simulation time