hello
I have a polynomial curve (with equation), using the optimisation Toolbox what is the easiest way to identify the maximum y point with its corresponding X value?
Many thanks. Gavin.

 Respuesta aceptada

Alan Weiss
Alan Weiss el 30 de Jul. de 2015

1 voto

It depends on whether you have a univariate polynomial (just one variable) or multidimensional polynomial.
For univariate, you might as well use fminbnd. You will simply have to figure out some bounds to use. A little experimentation should help.
For multidimensional, try fminunc. You will have to try a variety of initial points in order to find the global maximum.
And for either case, you will have to pass in the negative of the objective function, because these solvers minimize instead of maximize. For more info, see maximizing functions or maximizing an objective.
Alan Weiss
MATLAB mathematical toolbox documentation

Más respuestas (0)

Categorías

Más información sobre Polynomials en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Jul. de 2015

Respondida:

el 30 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by