+
    øª¨jp-  ã                   óV   € ^ RI Ht ^ RIt^ RIHu Hu Ht ^ RI	H
t ^ RIHt R tR tR# )é    )ÚwarnN)Ú_highs_options)ÚOptimizeWarningc
                óò  € V P                   p
VP                   pVRJ;'       d    \        P                  ! V4      ^ 8„  pRRRR/p\        P                  ! 4       pW®n        W¾n        W®P                  n        W¾P                  n        \        P                  P                  VP                  n
        Wn        Wnn        W~n        WNn        W^n        WP                  n        W.P                  n        W>P                  n        VP                   ^ 8”  d,   V Uu. uF  p\        P&                  ! V4      NK  	  upVn        \        P*                  ! 4       p\        P,                  ! 4       p\.        P0                  ! 4       pV	P3                  4        EF3  w  ppVe   VR9   d   K  VP5                  V4      pRV8X  d#   \7        R\9        VV/4       2\:        ^R7       KN  VR9   d?   \=        V\>        4      '       d   V'       d   RMRpM\7        RV R	V R
2\:        ^R7       K“  \        P@                  ! V4      p\C        VVV4      w  ppV\        P@                  PD                  8X  d3   \=        V\>        4      '       g   \7        RV R	V R
2\:        ^R7       EK
  V^ 8w  d   \7        V\:        ^R7       EK&  \G        VVV4       EK6  	  VPI                  V4      pV\        PJ                  PL                  8X  dC   VPO                  RVPQ                  4       RVPS                  VPQ                  4       4      /4       V# VPU                  V4      pV\        PJ                  PL                  8X  dA   \        PV                  PX                  pVPO                  RVRVPS                  V4      /4       V# VP[                  4       pV\        PJ                  PL                  8X  dC   VPO                  RVPQ                  4       RVPS                  VPQ                  4       4      /4       V# VPQ                  4       pVP]                  4       pV\        PV                  P^                  \        PV                  P`                  \        PV                  Pb                  \        PV                  Pd                  39  ;'       gv    V\        PV                  P`                  \        PV                  Pb                  \        PV                  Pd                  09   ;'       d    VPf                  \        Ph                  8H  pV\        PV                  P^                  8g  pV'       d	   V'       g   V'       gr   V'       dj   VPO                  RVRRVPS                  V4       RVPk                  VPl                  4       2RVPn                  RVPp                  RVPr                  /4       V# VPu                  4       p VPw                  4       p!\        Px                  ! ^V
34      p"V!Pz                  p#V P|                  p$\        V
4       Fo  p%V#V%,          \        P€                  P‚                  8X  d   V$V%,          V"^ V%3&   K9  V#V%,          \        P€                  P„                  8X  g   Ka  V$V%,          V"^V%3&   Kq  	  VPO                  RVRVPS                  V4      R\        P†                  ! V Pˆ                  4      RVV PŠ                  ,
          R\        P†                  ! V PŒ                  4      RV"RVPf                  RVPn                  RVPp                  RVPr                  /
4       V'       d6   VPO                  RVPŽ                  RVP�                  RVP’                  /4       V# u upi )a¬	  Solve linear programs using HiGHS [1]_.

Assume problems of the form:

    MIN c.T @ x
    s.t. lhs <= A @ x <= rhs
         lb <= x <= ub

Parameters
----------
c : 1-D array, (n,)
    Array of objective value coefficients.
astart : 1-D array
    CSC format index array.
aindex : 1-D array
    CSC format index array.
avalue : 1-D array
    Data array of the matrix.
lhs : 1-D array (or None), (m,)
    Array of left hand side values of the inequality constraints.
    If ``lhs=None``, then an array of ``-inf`` is assumed.
rhs : 1-D array, (m,)
    Array of right hand side values of the inequality constraints.
lb : 1-D array (or None), (n,)
    Lower bounds on solution variables x.  If ``lb=None``, then an
    array of all `0` is assumed.
ub : 1-D array (or None), (n,)
    Upper bounds on solution variables x.  If ``ub=None``, then an
    array of ``inf`` is assumed.
options : dict
    A dictionary of solver options

Returns
-------
res : dict

    If model_status is one of kOptimal,
    kObjectiveBound, kTimeLimit,
    kIterationLimit:

        - ``status`` : HighsModelStatus
            Model status code.

        - ``message`` : str
            Message corresponding to model status code.

        - ``x`` : list
            Solution variables.

        - ``slack`` : list
            Slack variables.

        - ``lambda`` : list
            Lagrange multipliers associated with the constraints
            Ax = b.

        - ``s`` : list
            Lagrange multipliers associated with the constraints
            x >= 0.

        - ``fun``
            Final objective value.

        - ``simplex_nit`` : int
            Number of iterations accomplished by the simplex
            solver.

        - ``ipm_nit`` : int
            Number of iterations accomplished by the interior-
            point solver.

    If model_status is not one of the above:

        - ``status`` : HighsModelStatus
            Model status code.

        - ``message`` : str
            Message corresponding to model status code.

Notes
-----
If ``options['write_solution_to_file']`` is ``True`` but
``options['solution_file']`` is unset or ``''``, then the solution
will be printed to ``stdout``.

If any iteration limit is reached, no solution will be
available.

``OptimizeWarning`` will be raised if any option value set by
the user is found to be incorrect.

References
----------
.. [1] https://highs.dev/
.. [2] https://www.maths.ed.ac.uk/hall/HiGHS/HighsOptions.html
NÚxÚfunzUnrecognized options detected: )Ú
stacklevelÚonÚoffz	Option f"z" is "z4", but only True or False is allowed. Using default.ÚstatusÚmessagezmodel_status is z; primal_status is Úsimplex_nitÚipm_nitÚcrossover_nitÚslackÚlambdaÚ	marg_bndsÚmip_node_countÚmip_dual_boundÚmip_gap)Úsenseéÿÿÿÿ)ÚpresolveÚparallel)JÚsizeÚnpÚsumÚ_hÚHighsLpÚnum_col_Únum_row_Ú	a_matrix_ÚMatrixFormatÚkColwiseÚformat_Ú	col_cost_Ú
col_lower_Ú
col_upper_Ú
row_lower_Ú
row_upper_Ústart_Úindex_Úvalue_ÚHighsVarTypeÚintegrality_Ú_HighsÚHighsOptionsÚhoptÚHighsOptionsManagerÚitemsÚget_option_typer   Údictr   Ú
isinstanceÚboolÚHighsOptionTypeÚcheck_optionÚkBoolÚsetattrÚpassOptionsÚHighsStatusÚkErrorÚupdateÚgetModelStatusÚmodelStatusToStringÚ	passModelÚHighsModelStatusÚkModelErrorÚrunÚgetInfoÚkOptimalÚ
kTimeLimitÚkIterationLimitÚkSolutionLimitÚobjective_function_valueÚ	kHighsInfÚsolutionStatusToStringÚprimal_solution_statusÚsimplex_iteration_countÚipm_iteration_countÚcrossover_iteration_countÚgetSolutionÚgetBasisÚzerosÚ
col_statusÚcol_dualÚrangeÚHighsBasisStatusÚkLowerÚkUpperÚarrayÚ	col_valueÚ	row_valueÚrow_dualr   r   r   )&ÚcÚindptrÚindicesÚdataÚlhsÚrhsÚlbÚubÚintegralityÚoptionsÚnumcolÚnumrowÚisMipÚresÚlpÚiÚhighsÚhighs_optionsÚhoptmanagerÚkeyÚvalÚopt_typer   ÚmsgÚ
opt_statusÚinit_statusÚerr_model_statusÚ
run_statusÚmodel_statusÚinfoÚmipFailConditionÚlpFailConditionÚsolutionÚbasisr   Úbasis_col_statusÚsolution_col_dualÚiis&   &&&&&&&&&&                            ÚbC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\scipy\optimize\_highspy\_highs_wrapper.pyÚ_highs_wrapperr…   	   sg  € ðB �V‰V€FØ�X‰X€FØ˜tÐ#×?Ð?¬¯ª¨{Ó(;¸aÑ(?€Eð 	ˆTØˆtð€Cô 
�Š‹€BØ„KØ„KØ"‡L�LÔØ"‡L�LÔÜŸ?™?×3Ñ3€B‡L�LÔØ„LØ„MØ„MØ„MØ„MØ ‡L�LÔØ!‡L�LÔØ‡L�LÔØ×Ñ˜!ÔÙ7BÓC±{°!œ2Ÿ?š?¨1Ö-±{ÑCˆŒô �IŠI‹K€EÜ—O’OÓ%€MÜ×*Ò*Ó,€KØ—M‘M—O‰ˆˆSàŠ;˜# Ô+Ùð ×.Ñ.¨sÓ3ˆØ�Œ>ÜØ1´$¸¸S°zÓ2BÐ1CÐDÜØõñ
 àÐ.Ô.ä˜c¤4×(Ò(ß"%™$¨5‘CäØ# C 5¨¨s¨eð 42ð 3ä'Ø#$õ	ñ Ü×)Ò)¨(Ó3ˆHÜ& u¨c°3Ó7‰KˆF�CØœ2×-Ñ-×3Ñ3Ô3Ü! #¤t×,Ò,ÜØ# C 5¨¨s¨eð 42ð 3ä'Ø#$õ	ò ð ˜Œ{Ü�Sœ/°a×8Ð8ä˜ s¨C×0ñW $ðZ ×"Ñ" =Ó1€JØ”R—^‘^×*Ñ*Ô*Ø�
‰
à˜%×.Ñ.Ó0Ø˜5×4Ñ4°U×5IÑ5IÓ5KÓLðô	
ð ˆ
à—/‘/ "Ó%€KØ”b—n‘n×+Ñ+Ô+ä×.Ñ.×:Ñ:ÐØ�
‰
àÐ*Ø˜5×4Ñ4Ð5EÓFðô	
ð ˆ
ð —‘“€JØ”R—^‘^×*Ñ*Ô*Ø�
‰
à˜%×.Ñ.Ó0Ø˜5×4Ñ4°U×5IÑ5IÓ5KÓLðô	
ð ˆ
ð ×'Ñ'Ó)€Lð �=‰=‹?€Dð $Ü
×Ñ×$Ñ$Ü
×Ñ×&Ñ&Ü
×Ñ×+Ñ+Ü
×Ñ×*Ñ*ð	,ñ ÷ ð ð 	ä×Ñ×*Ñ*Ü×Ñ×/Ñ/Ü×Ñ×.Ñ.ð
ñ	
÷ 	<ð 	<ð ×*Ñ*¬b¯l©lÑ:ð ð #¤b×&9Ñ&9×&BÑ&BÑB€Oß×"¯E·oØ�
‰
à˜,ØÐ-Ø×,Ñ,¨\Ó:Ð;ð <$à×/Ñ/°×0KÑ0KÓLÐMðOð ˜t×;Ñ;Ø˜4×3Ñ3Ø ×!?Ñ!?ð	ô	
ð ˆ
ð × Ñ Ó"€HØ�N‰NÓ€Eô —’˜!˜V˜Ó%€IØ×'Ñ'ÐØ ×)Ñ)ÐÜ�FŽmˆØ˜BÕ¤2×#6Ñ#6×#=Ñ#=Ô=Ø0°Õ4ˆI�a˜�eÓØ˜bÕ!¤R×%8Ñ%8×%?Ñ%?Ö?Ø0°Õ4ˆI�a˜�eÓñ	 ð ‡J�Jà�lØ�u×0Ñ0°Ó>à”—’˜(×,Ñ,Ó-ð �S˜8×-Ñ-Õ-à”b—h’h˜x×0Ñ0Ó1Ø˜Ø�4×0Ñ0Ø˜4×7Ñ7Ø�t×/Ñ/Ø˜T×;Ñ;ð	
ô÷& Ø�
‰
à  $×"5Ñ"5Ø  $×"5Ñ"5Ø˜4Ÿ<™<ðô	
ð €JùòW Ds   Ä]4c                 óö  € V P                  V4      w  r4\        P                  ! 4       pV\        P                  P
                  8w  d   R# \        P                  P                  \        \        P                  P                  \        \        P                  P                  \        \        P                  P                  \        /pVP                  VR4      pV\        J d   VP!                  W4      '       g   R# V\        J d   VP#                  W4      '       g   R# V\        J d   VP%                  W4      '       g   R# Vf   R# V P'                  V4      w  r8V\        P                  P
                  8w  d   R# R# )é   N)r   zInvalid option name.)r   zInvalid option value.)é   zUnknown option type.)é   z Failed to validate option value.)r   zCheck option succeeded.)ÚgetOptionTyper2   r3   r   r>   ÚkOkr9   r;   r8   ÚkIntÚintÚkDoubleÚfloatÚkStringÚstrÚgetÚcheck_string_optionÚcheck_double_optionÚcheck_int_optionÚgetOptionValue)	Ú
highs_instÚoptionÚvaluer   Úoption_typerr   Úvalid_typesÚexpected_typeÚcurrent_values	   &&&      r„   r:   r:   2  s4  € Ø$×2Ñ2°6Ó:Ñ€FÜ×*Ò*Ó,€Kà”—‘×#Ñ#Ô#Ø)Ð)ô 	×Ñ× Ñ ¤$Ü
×Ñ×Ñ¤Ü
×Ñ×"Ñ"¤EÜ
×Ñ×"Ñ"¤Cð	€Kð  —O‘O K°Ó6€MàœÓØ×.Ñ.¨v×=Ò=Ø.Ð.ØœÓØ×.Ñ.¨v×=Ò=Ø.Ð.ØœÓØ×+Ñ+¨F×:Ò:Ø.Ð.àÒØ(Ð(à&×5Ñ5°fÓ=Ñ€FØ”—‘×#Ñ#Ô#Ø4Ð4Ø'Ð'ó    )Úwarningsr   Únumpyr   Úscipy.optimize._highspy._coreÚoptimizeÚ_highspyÚ_corer   Úscipy.optimize._highspyr   r2   Úscipy.optimizer   r…   r:   © rž   r„   Ú<module>r¨      s#   ðÝ ã ß *Ó *Ý :Ý *òfôR	 (rž   