Andrea: I read your output file. As I understand, at the current point the objective function value is approx 120, but, in the
line search, even with alpha = 1.e-70, the function value at the trial point is approx 630.
Of course this is impossible, because with such a step the trial point and the current
point are identical.
As I remember, yes, there are safeguards, but this is not the main problem. The function
that is being considered at the current point is not the same as the one at the trial point, if
I undestand correctly the output. Ernesto may check it.
Either there is a very simple mistake in the evaluation or a very stupid bug in Gencan. We
will find out.
At this point we need Ernesto's help. I am not sure whether you are using the fortran version,
or a C interface (about which I don't know anything).
Cheers,
Mario