← Back
Editing: _trustregion_krylov.cpython-311.pyc
� 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
Save File
Cancel