| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 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 : /lib/python3/dist-packages/scipy/optimize/__pycache__/ |
Upload File : |
�
d�cmZ � � � d Z ddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ dd lm
Z
dd
lmZ d� Zd� Zd
� Zd� Zd� Zdd�Zd� Zd� Z dd�Z dd�ZdS )a[ Revised simplex method for linear programming
The *revised simplex* method uses the method described in [1]_, except
that a factorization [2]_ of the basis matrix, rather than its inverse,
is efficiently maintained and used to solve the linear systems at each
iteration of the algorithm.
.. versionadded:: 1.3.0
References
----------
.. [1] Bertsimas, Dimitris, and J. Tsitsiklis. "Introduction to linear
programming." Athena Scientific 1 (1997): 997.
.. [2] Bartels, Richard H. "A stabilization of the simplex method."
Journal in Numerische Mathematik 16.5 (1971): 414-434.
� N)�LinAlgError)�solve� )�_check_unknown_options)�LU)�BGLU)�
_postsolve)�OptimizeResultc �� � | j \ }}d}
t | |||� � \ } }}}}}
|
dk r |� |� � }d}||| |||
|fS |}d}t || ||||||||| |
||� � \ }}}
}|� |� � }|
dk r||k rd}
t j |t �� � }|||k D ]�}| dd�|f } t j t || � � � � }t j |dd�|f � � }t j |t �� � }d||||k <