response_surface.py

response_surface.py#

Surrogate Model based on second order response surface equations.

class openmdao.surrogate_models.response_surface.ResponseSurface[source]

Bases: SurrogateModel

Surrogate Model based on second order response surface equations.

Attributes:
betasndarray

Vector of response surface equation coefficients.

mint

Number of training points.

nint

Number of independent variables.

Methods

linearize(x)

Calculate the jacobian of the Kriging surface at the requested point.

predict(x)

Calculate predicted value of response based on the current response surface model.

train(x, y)

Calculate response surface equation coefficients using least squares regression.

vectorized_predict(x)

Calculate predicted values of the response based on the current trained model.

__init__()[source]

Initialize all attributes.

linearize(x)[source]

Calculate the jacobian of the Kriging surface at the requested point.

Parameters:
xarray-like

Point at which the surrogate Jacobian is evaluated.

Returns:
ndarray

Jacobian of surrogate output wrt inputs.

predict(x)[source]

Calculate predicted value of response based on the current response surface model.

Parameters:
xarray-like

Point at which the surrogate is evaluated.

Returns:
float

Predicted response.

train(x, y)[source]

Calculate response surface equation coefficients using least squares regression.

Parameters:
xarray-like

Training input locations.

yarray-like

Model responses at given inputs.