When you can be sure that you have obtained the correct result?
1 view (last 30 days)
Show older comments
I have a problem which has been solved with a set of start points,but when I changed the startpoints,the result also changed and sometimes can not converge at all.And the bounds affect the result,too.In my problem two parameters must positive but can not be zero.So I set the lower bounds of the 2 parameters to 0.001 or 0.01.But those different settings can obtain very different results which confuse me a lot.
So I want to know how do you judge that you have obtained the right appropriate result?
2 Comments
Rick Rosson
on 22 Jul 2011
What type of problem are you solving? What toolboxes are you using? Can you post your MATLAB code so that we can try to reproduce the same issue and diagnose what is happening?
Accepted Answer
Doug Hull
on 22 Jul 2011
If you are solving a problem, you should be able to come up with a few test cases that will give you expected answers. If you would not know the right answer for a set of inputs, or at least a reasonable answer, then you might have bigger problems.
If you do not know the right answer, would you know how the answer should change as you vary your inputs? Can you gain confidence as you change them?
This is the art of engineering.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!