Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

still the problem with equality constraints #13

Open
xiaoyuanzh opened this issue May 31, 2019 · 2 comments
Open

still the problem with equality constraints #13

xiaoyuanzh opened this issue May 31, 2019 · 2 comments

Comments

@xiaoyuanzh
Copy link

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

@liuq
Copy link
Owner

liuq commented May 31, 2019

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

@xiaoyuanzh
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants