Truncated Newton function minimization with bounds constraints based on the 'Matlab'/'Octave' codes of Stephen Nash.