constrained-linear-regression icon indicating copy to clipboard operation
constrained-linear-regression copied to clipboard

[Question] Equality constraints + non-negativity constraints

Open spring-haru opened this issue 1 year ago • 2 comments

I wish to estimate

$y=A+Bx_1+Cx_2+u$

subject to

$B+C=1$, $B\geq 0$, $C\geq 0$

Can MatrixConstrainedLinearRegression do it? Does it handle inequality constrains only?

spring-haru avatar May 06 '24 07:05 spring-haru

Yes, currently it handles only inequality constraints. But of course implementations of other types of tasks are welcome!

avidale avatar May 06 '24 15:05 avidale

I decided to use qpsolvers. Thanks anyway.

spring-haru avatar May 07 '24 07:05 spring-haru