approximation_modes module¶
The approximation modes.
- class gemseo.utils.derivatives.approximation_modes.ApproximationMode(value)[source]
Bases:
StrEnum
The 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¶
Check the Jacobian of a discipline
Check the Jacobian of a discipline
Compute the Jacobian of a discipline with finite differences
Compute the Jacobian of a discipline with finite differences
Create a discipline from analytical expressions
Create a discipline from analytical expressions