U
    m±ËhB  ã                   @  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  s   g | ]}d   |¡‘qS )z{{:^{}}}©Úformat©Ú.0Úx© r   úM/tmp/pip-unpacked-wheel-9oz00b9h/scipy/optimize/_trustregion_constr/report.pyÚ
<listcomp>   s     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  s   g | ]}d   |¡‘qS )z{{:{}}}r	   r   r   r   r   r      s     z.ReportBase.print_iteration.<locals>.<listcomp>r   )r   r   r   r
   )r   ÚargsZ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                   @  sB   e Zd ZdddddddgZdddd	d
d
d
gZdddddddgZdS )ÚBasicReportÚniterúf evalsúCG iterúobj funcú	tr radiusÚoptúc violé   é   é
   ú^7ú^+13.4eú^10.2eN©r   r   r   r   r   r   r   r   r   r   r!      s   
 ÿ  ÿr!   c                	   @  sN   e Zd Zddddddddd	g	Zd
d
d
dddddd
g	Zdddddddddg	ZdS )Ú	SQPReportr"   r#   r$   r%   r&   r'   r(   ÚpenaltyúCG stopr)   r*   r+   r,   r-   r.   Nr/   r   r   r   r   r0   '   s   
   ÿ  ÿr0   c                
   @  sT   e Zd Zddddddddd	d
g
Zddddddddddg
Zddddddddddg
ZdS )ÚIPReportr"   r#   r$   r%   r&   r'   r(   r1   zbarrier paramr2   r)   r*   r+   r,   r-   r.   z^13.2eNr/   r   r   r   r   r3   /   s   
    ÿ   ÿr3   N)	Ú__doc__Ú
__future__r   Útypingr   r   r!   r0   r3   r   r   r   r   Ú<module>   s   