lumopt2.utils.fd_grad#
Finite difference gradient utilities for Lumopt2.
This module provides functions for computing finite difference gradients, validating adjoint gradients, and performing convergence tests for photonic optimization.
Functions#
|
Compute the gradient of the figure of merit using finite difference. |
|
Finite difference convergence test: compute the finite difference gradient for a range of perturbation values and plot the results. |
|
Validate the adjoint gradient by comparing it to a finite difference gradient for specified parameter indices. |