Skip to content

ineqconstr_lsqs.m

Basic Information

  SYNTAX:  x = ineqconstr_lsqs(A,b,B,d)

  PURPOSE:  Inequality constrained least squares solution.  Solves
        min || Ax - b || subject to ||Bx - d|| <= a.

    **************NOT WORKING YET**************

  INPUT:
    A = mxn matrix in LHS of Ax=b least squares problem
    b = mx1 vector in RHS of Ax=b least squares problem
    B = pxn matrix in constraint equation Bx=d
    d = px1 vector (all elts >=0) in constraint equation Bx=d

  OUTPUT:
    x = solution vector for constrained least squares problem

  RESTRICTIONS:  A and B must be full rank.

Dependencies