QuadProgpp icon indicating copy to clipboard operation
QuadProgpp copied to clipboard

still the problem with equality constraints

Open xiaoyuanzh opened this issue 5 years ago • 2 comments

If I put CE and ce0 to 0 it says terminate called after throwing an instance of 'std::runtime_error' what(): Constraints are linearly dependent

xiaoyuanzh avatar May 31 '19 14:05 xiaoyuanzh

Yes, this is true since the equality constraints must be linearly independent. If you do not have equality constraints set their number to zero.

liuq avatar May 31 '19 14:05 liuq

Oh, thx you a lot. Yes, If I write this "m = 0; CE.resize(n, m); CE[0][0] = 0.0; CE[1][0] = 0.0; ce0.resize(m);" It works, and your code run very fast, which I appreciate it a lot. By the way, have you considered projection gradient method on a linear constrainted face. In fact, that is the reason I find your code!

xiaoyuanzh avatar May 31 '19 16:05 xiaoyuanzh