keeps getting same values when running simulated annealing
2 views (last 30 days)
Show older comments
Please I need to how I can stop getting the same random numbers of parameters when I am running the SA. Also, at a point, i get error after running a full iteration which makes it impossible to re-estimate my parameters. Why do I keep getting the same parameters during each iteration? why is the output no changing? Is there any other way of estimation?
0 Comments
Answers (2)
Walter Roberson
on 22 Nov 2013
The default is that you would not get the same outputs each time. Are you using the tool to set the parameters? I have not looked at the options in the tool.
4 Comments
Walter Roberson
on 23 Nov 2013
At the command line, give the command
dbstop if caught error
and then run your program. When it stops, look through the size() of the various variables and expressions. Work backwards to figure out whether the problem is with a value of the wrong size being passed in, or due to a calculation not returning as many values as expected. If it is due to something of the wrong size being passed in, use dbup to go up a stack frame and look at the expression that was passed in that position; trace the expression back up through, using dbup as needed until you find a place where a calculation is not returning the expected size or you have gotten all the way back to the values you supplied.
For us to assist you, we would need to full trace of the error, such as the lines that indicate which line of which routine you were executing in, and what the text of that line is, and which line of which routine called it and the text of that line, and so on, right back to your code.
Victor
on 23 Nov 2013
3 Comments
Walter Roberson
on 26 Nov 2013
You have not shown us the code, you have not shown us the error traceback, and you appear to be declining to answer questions that might help us to debug your difficulties. Have you solved the problem now, or have you given up on it, or are you hoping that someone might read your mind?
See Also
Categories
Find more on Simulated Annealing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!