optimum conditions - fitlm

1 vue (au cours des 30 derniers jours)
Bran
Bran le 7 Déc 2016
I have used fitlm to fit a second order model to a set of data: Model = fitlm(X,Y,'y~1 +x1*x2 + x2+x1^2') The plot produces a 3D curve which I have depicted. Which is the easiest way to find the values for x1 and x2 which optimise y?

Réponses (1)

John D'Errico
John D'Errico le 7 Déc 2016
No, you have not depicted any curve or surface. You may think you attached something, but you did not. Do you see anything attached?
Anyway, what do you mean by OPTIMIZE? To optimize something, you need to decide what you are optimizing. At least, to get any help, you need to tell us. Are you minimizing something? Maximizing?
If your model is second order, thus a quadratic polynomial, then 1st semester calculus is sufficient, if all you want to do is maximize or minimize y given the now known coefficients. However, I would point out that the model you show has NO maximum or minimum. You can make y as large as you wish, so +inf, or as small, so -inf. So you need to be clear, because what you have said so far has no answer.

Catégories

En savoir plus sur Analysis of Variance and Covariance dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by