I have a continuous model (the code is in Java). After optimization, I can get the X attributes, but when I try Pi, I get this error message:
Error code: 10005. Unable to retrieve attribute 'Pi'
The lines of Java code are:
double xvals= model.get(GRB.DoubleAttr.Pi, model.getConstrs());
double sp = constrains.get(GRB.DoubleAttr.Pi);
Again, this is a continuous model. This is how I add the variables:
rxnFluxes = model.addVars(l, u, objective, types, null);
Thanks for your help,
Please sign in to leave a comment.