Unrecognized field name "pi"; MATLAB
回答済みI want to retrieve the shadow prices of a small ILP, so I tried using pi but the same error keeps coming. What to do?
c = [2; 1];
n=2;
A=[3 2;3 1;1 2];
b=[80;50;60];
l=[0 0];
model.obj=c;
model.A= sparse(A);
model.rhs=b;
model.vtype=repmat('I',n,1);
model.lb=l;
model.modelsense='max';
results = gurobi(model);
dual=results.pi;
disp(dual)
0
-
正式なコメント
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. -
Please note that the Pi attribute is only available for linear programs. We discuss this in the Knowledge Base article How do I retrieve the (dual) Pi value for a MIP problem?
0
投稿コメントは受け付けていません。
コメント
2件のコメント