Hello, i should minimize a function with two variables, and then i should know the value of that two variables which give the minimum value of the function. I can't know from that value that two variables start. There is a function that can help me? thanks

 채택된 답변

John D'Errico
John D'Errico 2016년 6월 1일
편집: John D'Errico 2016년 6월 1일

0 개 추천

Use fminsearch or fminunc
More, depending on the specifics of your problem.

댓글 수: 2

The problem is that fminsearch works with initial conditions and fminunc with boundary conditions and i don't know nothing. My problem is the assesment of fatigue parameters and i have to do it by minimizing the actual life and the numerical life. The numerical life is a function of two variables, exactly the fatigue parameters.
Sorry. You are wrong there. BOTH fminsearch and fminunc need initial estimates of the variables. They have nothing to do with boundary conditions. If you don't understand optimization then you need to spend some time reading the tutorials. Read the help. Try the examples. There is lots of stuff already provided there.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by