SciPy

scipy.optimize.OptimizeResult.copy

OptimizeResult.copy() → a shallow copy of D