Hi Barry,<div><br></div><div>I think there is confusion about my question.</div><div><br></div><div>The purpose of line search is to find an \alpha_{k} that minimize f(x + \alpha p). This procedure usually choose several \alpha and returns a proper \alpha_{k}. For each \alpha, we need to compute the objective function and gradient of (x + \alpha p). In my FormFunctionGradient function, I save some internal data(model response) which will be printed in the monitor routine. If the objective function and gradient returned by TaoLineSearchApply isn't the latest computed,  my internal data becomes invalid in the monitor routine. My question is the order of the objective function and gradient corresponding to \alpha_{k} in this line search procedure.</div>
<div><br></div><div>If it is not clear, please let me know. Thanks.</div><div><br></div><div>Best regards,</div><div>Ce Qin</div>