I have a simple optimization problem, and I implemented one function that uses the f2c.h, and another one using snopt_cwrap.h. They generate different output. The one with f2c is more accurate than the one with snopt_cwrap.h (as can be seen in the "Optimal" column of the print out file). The two print out files are
f2c_out.txt
snopt_cwrap_out.txt
The only difference in the setup part is the "Unbounded objective", and I think the function evaluation part are the same. Should I expect that snopt_cwrap.h and f2c.h produce different result? I am using SNOPT.7.6