Something strange in MATLAB

1 view (last 30 days)
Saeid Bina
Saeid Bina on 15 Nov 2019
Commented: Matt J on 16 Nov 2019
I have a code that optimizes three parameters and fits the data using Fmincon (including lower and upper bound). And I have three text data as three different input data. I just change the name of the load to try the same code for all cases.
Like this:
load TRT_mean.txt
to:
load TRT_mean_V1.txt
Until yesterday was good but now does not work properly and today's output and also iterations are totally different!
Is it possible software keeps previous results?

Answers (1)

Matt J
Matt J on 15 Nov 2019
Edited: Matt J on 15 Nov 2019
Chances are the issue is not in the code, but in the new data that you have supplied as input. For some reason, this input data set doesn't satisfy assumptions that previous data sets did.
  2 Comments
Saeid Bina
Saeid Bina on 16 Nov 2019
I am trying the same data and same boundries for the fmincon. I did last time and saved all itterations but today the function does not gave the same iteration and result.
Matt J
Matt J on 16 Nov 2019
Then perhaps you are using a different version of Matlab? Something had to have changed.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!