Optimization options parameter 'findiffrelstep'
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to know exactly what this parameter is. i have two variables one is in the range 10 to 25 and other in the range 1000 to 2000... I am wondering whether setting findiffrelstep will improve my solution performance. Thanks in advance. Pappu murthy
0 Kommentare
Antworten (1)
Matt J
am 5 Okt. 2014
8 Kommentare
Matt J
am 8 Okt. 2014
Bearbeitet: Matt J
am 8 Okt. 2014
It is not doing a closed form differentiation anyway. So for finite difference it should not matter at all. Right?
No, the theory of the algorithms assumes that the function is twice continuously differentiable. I'm not sure what distinction you're drawing between "closed-form differentiable" and other kinds. Either the function is continuously differentiable, or it's not. If it is not, the assumptions of the algorithm are violated, and that's the end of the story.
Finite difference operations are just a way of approximating the true derivative. The algorithm performs better if you provide an analytical gradient calculation (whether or not it is closed form). If the true derivative doesn't exist, the finite difference will not produce anything more useful. It will produce some unstable value greatly depending on the delta step size you use.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!