optimizeResponse
Predictor and response values at response surface maximum or minimum of linear regression model
Since R2026a
Syntax
Description
returns the predictor values and response value at the maximum of the response surface of
the linear regression model optVals = optimizeResponse(mdl,"max")mdl. The response surface is bounded by the
minimum and maximum values of each predictor in the model.
Note
This function requires Optimization Toolbox™. Global Optimization Toolbox is also required if mdl has interaction terms with
categorical variables whose values are not fixed using
CategoricalValues.
specifies options using one or more name-value arguments in addition to any of the input
argument combinations in the previous syntaxes. For example, you can specify to search for a
maximum or minimum response value using fixed values for categorical predictors.optVals = optimizeResponse(___,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2026a
