Added the basic code for implementing optimisation of the N-state model.
The target function, the maths_fns code, doesn't yet exist though.
Authored by: bugman 2008-01-08
Parent: [r4496]
Child: [r4498]