More rewriting of the population N-state model optimisation code.
Authored by: bugman 2008-07-25
Parent: [r6965]
Child: [r6967]