spark-tfocs icon indicating copy to clipboard operation
spark-tfocs copied to clipboard

min ||Ax-b||_2 with linear constraints

Open ghost opened this issue 7 years ago • 3 comments

Hi All, I am wondering if spark-tfocs solves a linear regression problem with linear constraints. i.e.

min ||Ax-b||_2^2 s.t. Ux<=b where U is a matrix?

I know that it would solve without those constraints, but not sure if it handles the constraints.

ghost avatar Aug 16 '17 18:08 ghost

Hi mutmurat, unfortunately TFOCS for Spark does not support quadratic programming out of the box. However if your constraints happen to be very simple ranges you may be able to implement them using projection operators. (For example see the ProjBox operator.)

staple avatar Sep 08 '17 22:09 staple

staple, thank you for the answer.

ghost avatar Sep 09 '17 19:09 ghost

Hi can you please help me set up contraints lasso in py spark?

akshaydse avatar Mar 12 '24 06:03 akshaydse