ScipyLinearLSQ#
- class cuqi.solver.ScipyLinearLSQ(A, b, bounds=(-inf, inf), **kwargs)#
Wrapper for
scipy.optimize.lsq_linear()
.Solve linear least-squares problems with bounds:
\[\min \|A x - b\|_2^2\]subject to \(lb <= x <= ub\).
- Parameters:
A (ndarray, LinearOperator) – Design matrix (system matrix).
b (ndarray) – The right-hand side of the linear system.
bounds (2-tuple of array_like or scipy.optimize Bounds) – Bounds for variables.
kwargs (Other keyword arguments passed to Scipy’s lsq_linear. See documentation of scipy.optimize.lsq_linear for details.)
- __init__(A, b, bounds=(-inf, inf), **kwargs)#
Methods