§
    fŠtjÖ  ã                   ó0   — d dl mZ d dlmZ dgZ	 	 dd„ZdS )	é   )Ú_minimize_trust_region)Úget_trlib_quadratic_subproblemÚ_minimize_trust_krylov© NTc                 ó0  — |€t          dd¦  «        ‚|€|€t          d¦  «        ‚|r8t          | |f||||t          dd|                     dd¦  «        ¬	¦  «        d
œ|¤ŽS t          | |f||||t          dd|                     dd¦  «        ¬	¦  «        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 zexact 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           ú`/var/www/html/CA-Chatbot/venv/lib/python3.11/site-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   