gurobi does not support signomial equality constraints
回答済みHello!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!
-
The article How do I divide by a variable in Gurobi? might be helpful.
0
サインインしてコメントを残してください。
コメント
1件のコメント