This is a logistic normal negative log likelihood used for fitting age or size composition data in stock assessment models.  Much of this work is based on a recent paper by Chris Francis in Fisheries Research: "Replacing the Multinomial in Stock Assessment Models: a First Step"  that I reviewed.  With Chris's permission I have shared my library for this function.  It's still work in progress so please check for updates.