Optimization options parameter 'findiffrelstep'

조회 수: 2 (최근 30일)
Pappu Murthy
Pappu Murthy 2014년 10월 4일
편집: Matt J 2014년 10월 8일
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

답변 (1개)

Matt J
Matt J 2014년 10월 5일
The description at the FMINUNC webpage is pretty detailed.
  댓글 수: 8
Pappu Murthy
Pappu Murthy 2014년 10월 8일
Thanks for the valueable insights you are giving. I am sure my function is not differentiable in closed form. It involves a lot of computations which are done using a complicated fortran program as I mentioned earlie. That said, I have no reasons to believe there are 'undifferentiable' aspects to the compuations. I do have actually 5 parameters. The two parameter case is a sub case for testing purposes. I can try "fminsearch" if that can do the job. However, by scaling I am able to move properly all the 5 parameters now. I just divied one parameter by 100 and that seemed to do that job. Not sure though, whether I am doing this correctly. Now the question is i dod have sqrt in my least squares operation. But why should it matter? It is not doing a closed form differentiation anyway. So for finite difference it should not matter at all. Right?
Matt J
Matt J 2014년 10월 8일
편집: Matt J 2014년 10월 8일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by