Optimization of neuronal models