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

valid SOC constraint rejected #504

Closed
mlubin opened this issue Jul 30, 2015 · 3 comments
Closed

valid SOC constraint rejected #504

mlubin opened this issue Jul 30, 2015 · 3 comments

Comments

@mlubin
Copy link
Member

mlubin commented Jul 30, 2015

julia> @addConstraint(m, -2*norm2{x[i],i=1:2} >= -1)
ERROR: Invalid second-order cone constraint -1.0 √((-2 x[1])² + (-2 x[2])²) - 1

@joehuchette, would it be hard to get this working?
Also, why does the negative sign end up both inside and outside the norm?

@mlubin
Copy link
Member Author

mlubin commented Jul 30, 2015

Another strange issue:

julia> @addConstraint(m, 1 >= 2*norm2{x[i],i=1:2})
ERROR: `_construct_constraint!` has no method matching _construct_constraint!(::GenericNorm{2,Float64,Variable}, ::Symbol)

@joehuchette
Copy link
Contributor

Hmm I'll take a look.

joehuchette added a commit that referenced this issue Jul 30, 2015
@joehuchette
Copy link
Contributor

This is fixed now. Please keep breaking!

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

No branches or pull requests

2 participants