A generic size-structured stock assessment model