@poulson not sure what do with the lineSearch routine. I can’t seem to get it to work. Trying to follow Nocedal&Wright and its kinda too complicated. I read through M&T and I tried to borrow there interpolation, but, the line search still appears to fall over on some examples. I’m pretty sure i’m quite close to a working impl, but, can’t seem to figure out what i’m doing wrong.