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

 Réponse acceptée

John D'Errico
John D'Errico le 1 Juin 2016
Modifié(e) : John D'Errico le 1 Juin 2016

0 votes

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

2 commentaires

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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by