o
    ¹iB  ã                   @  s^   d Z ddlmZ ddlmZ G dd„ dƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZdS )zProgress report printers.é    )Úannotations)ÚListc                   @  sV   e Zd ZU eZded< eZded< eZded< edd„ ƒZ	edd	„ ƒZ
ed
d„ ƒZdS )Ú
ReportBasez	List[str]ÚCOLUMN_NAMESz	List[int]ÚCOLUMN_WIDTHSÚITERATION_FORMATSc                 C  sP   dd  dd„ | jD ƒ¡ d }dd„ | jD ƒ}t|j| jŽ ƒ t|j|Ž ƒ d S )Nú|c                 S  ó   g | ]}d   |¡‘qS )z{{:^{}}}©Úformat©Ú.0Úx© r   úd/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/scipy/optimize/_trustregion_constr/report.pyÚ
<listcomp>   ó    z+ReportBase.print_header.<locals>.<listcomp>c                 S  s   g | ]}d | ‘qS )ú-r   r   r   r   r   r      s    )Újoinr   Úprintr   r   )ÚclsÚfmtÚ
separatorsr   r   r   Úprint_header   s   ÿþzReportBase.print_headerc                 G  s4   dd„ | j D ƒ}dd |¡ d }t|j|Ž ƒ d S )Nc                 S  r	   )z{{:{}}}r
   r   r   r   r   r      r   z.ReportBase.print_iteration.<locals>.<listcomp>r   )r   r   r   r   )r   ÚargsÚiteration_formatr   r   r   r   Úprint_iteration   s   zReportBase.print_iterationc                 C  s
   t ƒ  d S )N)r   )r   r   r   r   Úprint_footer   s   
zReportBase.print_footerN)Ú__name__Ú
__module__Ú__qualname__ÚNotImplementedr   Ú__annotations__r   r   Úclassmethodr   r   r   r   r   r   r   r      s   
 

r   c                   @  ó$   e Zd Zg d¢Zg d¢Zg d¢ZdS )ÚBasicReport)Úniterúf evalsúCG iterúobj funcú	tr radiusÚoptúc viol)é   r-   r-   é   é
   r/   r/   )ú^7r0   r0   ú^+13.4eú^10.2er2   r2   N©r   r   r    r   r   r   r   r   r   r   r%      ó    r%   c                   @  r$   )Ú	SQPReport)	r&   r'   r(   r)   r*   r+   r,   ÚpenaltyúCG stop)	r-   r-   r-   r.   r/   r/   r/   r/   r-   )	r0   r0   r0   r1   r2   r2   r2   r2   r0   Nr3   r   r   r   r   r5   '   r4   r5   c                   @  r$   )ÚIPReport)
r&   r'   r(   r)   r*   r+   r,   r6   zbarrier paramr7   )
r-   r-   r-   r.   r/   r/   r/   r/   r.   r-   )
r0   r0   r0   r1   r2   r2   r2   r2   z^13.2er0   Nr3   r   r   r   r   r8   /   r4   r8   N)	Ú__doc__Ú
__future__r   Útypingr   r   r%   r5   r8   r   r   r   r   Ú<module>   s    