| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/scipy/optimize/__pycache__/ |
Upload File : |
�
d�c� � �0 � d dl mZ d dlmZ dgZ dd�ZdS ) � )�_minimize_trust_region)�get_trlib_quadratic_subproblem�_minimize_trust_krylov� NTc �0 � |�t dd� � �|�|�t d� � �|r8t | |f||||t dd|� dd� � � � � d
�|��S t | |f||||t dd|� dd� � � � � d
�|��S )
a�
Minimization of a scalar function of one or more variables using
a nearly exact trust-region algorithm that only requires matrix
vector products with the hessian matrix.
.. versionadded:: 1.0.0
Options
-------
inexact : bool, optional
Accuracy to solve subproblems. If True requires less nonlinear
iterations, but more vector products.
Nz&Jacobian is required for trust region zexact minimization.zaEither the Hessian or the Hessian-vector product is required for Krylov trust-region minimizationg �g ��dispF)� tol_rel_i� tol_rel_br )�args�jac�hess�hessp�
subproblemg:�0�yE>g���ư>)�
ValueErrorr r �get)�fun�x0r r r
r �inexact�trust_region_optionss �D/usr/lib/python3/dist-packages/scipy/optimize/_trustregion_krylov.pyr r s
� � �{��A�.�0� 0� 0��|��
�� L� M� M� M�0 � >�%�c�2� >�D�c�+/�u�1O�48�D�/C�/G�/G��PU�/V�/V�2,� 2,� 2,�>� >� )=�
>� >� >� &�c�2� >�D�c�+/�u�1O�48�D�/C�/G�/G��PU�/V�/V�2,� 2,� 2,�>� >� )=�
>� >� >� )r NNNT)�_trustregionr �_trlibr �__all__r r r r �<module>r sU �� 2� 2� 2� 2� 2� 2� 4� 4� 4� 4� 4� 4�#�
$��HL�#'�;>� ;>� ;>� ;>� ;>� ;>r