Constrained least-squares estimation in Python

前端 未结 3 1342
情书的邮戳
情书的邮戳 2021-01-11 12:36

I\'m trying to perform a constrained least-squares estimation using Scipy such that all of the coefficients are in the range (0,1) and sum to 1 (th

3条回答
  •  花落未央
    2021-01-11 13:18

    Since MATLAB's lsqlin is a bounded linear least squares solver, you would want to check out scipy.optimize.lsq_linear.

提交回复
热议问题