approximation_modes module¶
The approximation modes.
- class gemseo.utils.derivatives.approximation_modes.ApproximationMode(value)[source]¶
Bases:
StrEnumThe approximation derivation modes.
- CENTERED_DIFFERENCES = 'centered_differences'¶
The centered differences method used to approximate the Jacobians by perturbing each variable with a small real number.
- COMPLEX_STEP = 'complex_step'¶
The complex step method used to approximate the Jacobians by perturbing each variable with a small complex number.
- FINITE_DIFFERENCES = 'finite_differences'¶
The finite differences method used to approximate the Jacobians by perturbing each variable with a small real number.
Examples using ApproximationMode¶
Compute the Jacobian of a discipline with finite differences
Compute the Jacobian of a discipline with finite differences