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

YALMIP gets mad with quadratically constrained uncertain variables #794

Open
dnmiller opened this issue Aug 28, 2020 · 1 comment
Open

Comments

@dnmiller
Copy link

Hi,

I'm trying to solve a robust optimization problem in which the uncertain variable is a unit vector. When I run optimize, I get an error message that says Report bug in problem classification (linear constraint). So here I am.

Simplest code I can find to reproduce:

x = sdpvar(3, 1);
e = sdpvar(2, 1);
A = randn(2, 3);
V = randn(2, 2);

W = [0 <= x <= 1, e' * e == 1, uncertain(e)];
J = norm(A*x - V*e);
sol = optimize(W, J);

If I try to use robustify instead, I get the error message Some uncertain variables are unconstrained.

So, I'm guessing YALMIP doesn't support quadratic constraints for uncertain variables? Any ideas on how I can translate this into a problem that would make YALMIP happy? I tried parameterizing the problem with a single angle, but ran into the same error.

@johanlofberg
Copy link
Member

thanks for reporting. For the underlying modelling issue, please post a question on the google groups forum for suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants