Minimization of a function with two variables

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
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