Message Boards Message Boards

2
|
304 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

FindMinimum code working on V9 but not V14

Posted 1 month ago

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?

Attachments:

The previous code was too long. I've revised it to just the bare minimum.

The attached code works in Mathematica 9 (see attached simple M9).

But it doesn't work in Mathematica 14 (see simple M14).

simpleM9 and simpleM14 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, g - y, checks the answer, but in Mathematica 9, it is almost 0, and FindMinimum is functioning normally.

In contrast, in Mathematica 14,g - y 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?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract