# scipy 1.18.1 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Check the validity of the provided solution.

    A valid (optimal) solution satisfies all bounds, all slack variables are
    negative and all equality constraint residuals are strictly non-zero.
    Further, the lower-bounds, upper-bounds, slack and residuals contain
    no nan values.

    Parameters
    ----------
    x : 1-D array
        Solution vector to original linear programming problem
    fun: float
        optimal objective value for original problem
    status : int
        An integer representing the exit status of the optimization::

             0 : Optimization terminated successfully
             1 : Iteration limit reached
             2 : Problem appears to be infeasible
             3 : Problem appears to be unbounded
             4 : Serious numerical difficulties encountered

    slack : 1-D array
        The (non-negative) slack in the upper bound constraints, that is,
        ``b_ub - A_ub @ x``
    con : 1-D array
        The (nominally zero) residuals of the equality constraints, that is,
        ``b - A_eq @ x``
    bounds : 2D array
        The bounds on the original variables ``x``
    message : str
        A string descriptor of the exit status of the optimization.
    tol : float
        Termination tolerance; see [1]_ Section 4.5.

    Returns
    -------
    status : int
        An integer representing the exit status of the optimization::

             0 : Optimization terminated successfully
             1 : Iteration limit reached
             2 : Problem appears to be infeasible
             3 : Problem appears to be unbounded
             4 : Serious numerical difficulties encountered

    message : str
        A string descriptor of the exit status of the optimization.
    
=== parse numpydoc
short_description: 'Check the validity of the provided solution.'
long_description: |
  A valid (optimal) solution satisfies all bounds, all slack variables are
  negative and all equality constraint residuals are strictly non-zero.
  Further, the lower-bounds, upper-bounds, slack and residuals contain
  no nan values.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: 'Solution vector to original linear programming problem'
  kind: param
  key: 'param'
  arg_name: 'x'
  type_name: '1-D array'
  is_optional: False
- DocstringParam
  description: 'optimal objective value for original problem'
  kind: param
  key: 'param'
  arg_name: 'fun'
  type_name: 'float'
  is_optional: False
- DocstringParam
  description: |
    An integer representing the exit status of the optimization::
    
         0 : Optimization terminated successfully
         1 : Iteration limit reached
         2 : Problem appears to be infeasible
         3 : Problem appears to be unbounded
         4 : Serious numerical difficulties encountered
  kind: param
  key: 'param'
  arg_name: 'status'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: |
    The (non-negative) slack in the upper bound constraints, that is,
    ``b_ub - A_ub @ x``
  kind: param
  key: 'param'
  arg_name: 'slack'
  type_name: '1-D array'
  is_optional: False
- DocstringParam
  description: |
    The (nominally zero) residuals of the equality constraints, that is,
    ``b - A_eq @ x``
  kind: param
  key: 'param'
  arg_name: 'con'
  type_name: '1-D array'
  is_optional: False
- DocstringParam
  description: 'The bounds on the original variables ``x``'
  kind: param
  key: 'param'
  arg_name: 'bounds'
  type_name: '2D array'
  is_optional: False
- DocstringParam
  description: 'A string descriptor of the exit status of the optimization.'
  kind: param
  key: 'param'
  arg_name: 'message'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: 'Termination tolerance; see [1]_ Section 4.5.'
  kind: param
  key: 'param'
  arg_name: 'tol'
  type_name: 'float'
  is_optional: False
- DocstringReturns
  description: |
    An integer representing the exit status of the optimization::
    
         0 : Optimization terminated successfully
         1 : Iteration limit reached
         2 : Problem appears to be infeasible
         3 : Problem appears to be unbounded
         4 : Serious numerical difficulties encountered
  kind: returns
  key: 'returns'
  type_name: 'int'
  is_generator: False
  return_name: 'status'
- DocstringReturns
  description: 'A string descriptor of the exit status of the optimization.'
  kind: returns
  key: 'returns'
  type_name: 'str'
  is_generator: False
  return_name: 'message'
=== detect
numpydoc
=== compose numpydoc
Check the validity of the provided solution.

A valid (optimal) solution satisfies all bounds, all slack variables are
negative and all equality constraint residuals are strictly non-zero.
Further, the lower-bounds, upper-bounds, slack and residuals contain
no nan values.

Parameters
----------
x : 1-D array
    Solution vector to original linear programming problem
fun : float
    optimal objective value for original problem
status : int
    An integer representing the exit status of the optimization::

         0 : Optimization terminated successfully
         1 : Iteration limit reached
         2 : Problem appears to be infeasible
         3 : Problem appears to be unbounded
         4 : Serious numerical difficulties encountered
slack : 1-D array
    The (non-negative) slack in the upper bound constraints, that is,
    ``b_ub - A_ub @ x``
con : 1-D array
    The (nominally zero) residuals of the equality constraints, that is,
    ``b - A_eq @ x``
bounds : 2D array
    The bounds on the original variables ``x``
message : str
    A string descriptor of the exit status of the optimization.
tol : float
    Termination tolerance; see [1]_ Section 4.5.

Returns
-------
status : int
    An integer representing the exit status of the optimization::

         0 : Optimization terminated successfully
         1 : Iteration limit reached
         2 : Problem appears to be infeasible
         3 : Problem appears to be unbounded
         4 : Serious numerical difficulties encountered
message : str
    A string descriptor of the exit status of the optimization.
