Gradient
- class pyoptsparse.pyOpt_gradient.Gradient(optProb, sensType, sensStep=None, sensMode='', comm=None)[source]
Gradient class for automatically computing gradients with finite difference or complex step.
- Parameters:
- optProbOptimization instance
This is the complete description of the optimization problem.
- sensTypestr
FD
for forward differenceCD
for central differenceFDR
for forward difference with relative step sizeCDR
for central difference with relative step sizeCS
for complex step
- sensStepfloat
Step size to use for differencing
- sensModestr
Flag to compute gradients in parallel.