class_docstr: Test SLSQP algorithm using Example 14.4 from Numerical Methods for
  Engineers by Steven Chapra and Raymond Canale.
  This example maximizes the function f(x) = 2*x*y + 2*x - x**2 - 2*y**2,
  which has a maximum at x=2, y=1.
class_docstr_tok: ["Test","SLSQP","algorithm","using","Example","14.4","from","Numerical","Methods","for","Engineers","by","Steven","Chapra","and","Raymond","Canale",".","This","example","maximizes","the","function","f","(","x",")","=","2","*","x","*","y","+","2","*","x","-","x","*","*","2","-","2","*","y","*","*","2",",","which","has","a","maximum","at","x=2",",","y=1","."]
code: def test_inconsistent_inequalities(self):
      # gh-7618
  
      def cost(x):
          return -1 * x[0] + 4 * x[1]
  
      def ineqcons1(x):
          return x[1] - x[0] - 1
  
      def ineqcons2(x):
          return x[0] - x[1]
  
      # The inequalities are inconsistent, so no solution can exist:
      #
      # x1 >= x0 + 1
      # x0 >= x1
  
      x0 = (1, 5)
      bounds = ((-5, 5), (-5, 5))
      cons = (
          dict(type="ineq", fun=ineqcons1),
          dict(type="ineq", fun=ineqcons2),
      )
      res = minimize(
          cost, x0, method="SLSQP", bounds=bounds, constraints=cons
      )
  
      assert_(not res.success)
  
imports: from numpy.testing import assert_, assert_array_almost_equal, assert_allclose, assert_equal
  from pytest import raises
  import pytest
  import numpy
  from scipy.optimize import fmin_slsqp, minimize, Bounds, NonlinearConstraint
label_desc: Use image node_id 44 for calling the TestSLSQP obj's underlying member method code with example usage: obj.test_inconsistent_inequalities() and returns: unknown, unknown, unknown