gemseo.core.mdo_functions.set_pt_from_database module#
A function searching for the output and Jacobian values in a database.
- class SetPtFromDatabase(database, design_space, mdo_function, normalize=False, jac=True, x_tolerance=1e-10)[source]#
Bases:
objectSet a function and Jacobian from a database.
- Parameters:
database (Database) -- The database to read.
design_space (DesignSpace) -- The design space used for normalization.
mdo_function (MDOFunction) -- The function where the data from the database will be set.
normalize (bool) --
If
True, the values of the inputs are unnormalized before call.By default it is set to False.
jac (bool) --
If
True, a Jacobian pointer is also generated.By default it is set to True.
x_tolerance (float) --
The tolerance on the distance between inputs.
By default it is set to 1e-10.