gurobi does not support signomial equality constraints
AnsweredHello!I encountered an error when I was trying to divide one decision variables by another decision variable,I started running the code,there is ''Warning: Solver not applicable (gurobi does not support signomial equality constraints).''
The version of yalmip is up to date and the version of Gurobi is 10.0.1.
I'm wondering if its applicable to devide two decision variables in gurobi.
Here's the code.
clear;clc;close all;
x = sdpvar(3,1);
y = sdpvar(3,1);
a = sdpvar(3,1);
b = sdpvar(1,1);
C = [sum(x) == 10;
sum(y) == 20;
0<= x <= 8;
0<=y<=13;
a == x./y;
b == sum(a)];
ops = sdpsettings('verbose',2,'solver','gurobi');
z = b;
result = optimize(C,z,ops);
if result.problem == 0
x=value(x)
y=value(y)
a = value(a)
b = value(b)
else
disp('error');
end
Looking forward to your reply!Thank you!
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
The article How do I divide by a variable in Gurobi? might be helpful.
0
Post is closed for comments.
Comments
2 comments