optimize.py 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.optimize` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'OptimizeResult',
  7. 'OptimizeWarning',
  8. 'approx_fprime',
  9. 'bracket',
  10. 'brent',
  11. 'brute',
  12. 'check_grad',
  13. 'fmin',
  14. 'fmin_bfgs',
  15. 'fmin_cg',
  16. 'fmin_ncg',
  17. 'fmin_powell',
  18. 'fminbound',
  19. 'golden',
  20. 'line_search',
  21. 'rosen',
  22. 'rosen_der',
  23. 'rosen_hess',
  24. 'rosen_hess_prod',
  25. 'show_options',
  26. 'zeros',
  27. ]
  28. def __dir__():
  29. return __all__
  30. def __getattr__(name):
  31. return _sub_module_deprecation(sub_package="optimize", module="optimize",
  32. private_modules=["_optimize"], all=__all__,
  33. attribute=name)