kriging.py

Surrogate model based on Kriging.

class openmdao.surrogate_models.kriging.FloatKrigingSurrogate[source]

Bases: openmdao.surrogate_models.kriging.KrigingSurrogate

Surrogate model based on the simple Kriging interpolation. Predictions are returned as floats, which are the mean of the model’s prediction.

predict(x)[source]
class openmdao.surrogate_models.kriging.KrigingSurrogate[source]

Bases: openmdao.surrogate_models.surrogate_model.SurrogateModel

Surrogate Modeling method based on the simple Kriging interpolation. Predictions are returned as a tuple of mean and RMSE

linearize(x)[source]

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

Args:

x : array-like

Point at which the surrogate Jacobian is evaluated.

predict(x)[source]

Calculates a predicted value of the response based on the current trained model for the supplied list of inputs.

Args:

x : array-like

Point at which the surrogate is evaluated.

train(x, y)[source]

Train the surrogate model with the given set of inputs and outputs.

Args:

x : array-like

Training input locations

y : array-like

Model responses at given inputs.