response_surface.py¶
Surrogate Model based on second order response surface equations.

class
openmdao.surrogate_models.response_surface.
ResponseSurface
[source]¶ Bases:
openmdao.surrogate_models.surrogate_model.SurrogateModel
Surrogate Model based on second order response surface equations.
Attributes
betas
(ndarray) Vector of response surface equation coefficients.
m
(int) Number of training points.
n
(int) Number of independent variables.

linearize
(self, x)[source]¶ Calculate the jacobian of the Kriging surface at the requested point.
 Parameters
 xarraylike
Point at which the surrogate Jacobian is evaluated.
 Returns
 ndarray
Jacobian of surrogate output wrt inputs.

predict
(self, x)[source]¶ Calculate predicted value of response based on the current response surface model.
 Parameters
 xarraylike
Point at which the surrogate is evaluated.
 Returns
 float
Predicted response.

train
(self, x, y)[source]¶ Calculate response surface equation coefficients using least squares regression.
 Parameters
 xarraylike
Training input locations
 yarraylike
Model responses at given inputs.

vectorized_predict
(self, x)¶ Calculate predicted values of the response based on the current trained model.
 Parameters
 xarraylike
Vectorized point(s) at which the surrogate is evaluated.
