The attached code works in Mathematica 9 (see attached M9).
But it doesn’t work in Mathematica 14 (see M14).
M9 and M14 are exactly the same, but the results are different when you calculate it in Mathematica 9 and Mathematica 14.
The difference is in the FindMinimum command.
The last part of the program, data500 - data20, checks the answer, but in Mathematica 9, it is almost 0, and FindMinimum is functioning normally.
In contrast, in Mathematica 14, data500 - data20 is not 0, and FindMinimum is not functioning normally.
How should I modify FindMinimum to get the same calculation results as in Mathematica 9 in order to run this program in Mathematica 14?