You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I work with solutions generated by reframed, I often have to look into the optimization status. This becomes a little tricky when the status enumeration is hidden deep into the API. Here is an example:
solution=reframed.FBA(model)
ifsolution.status==reframed.solvers.solution.Status.OPTIMAL:
print("Problem solved sucessfully"else:
print("Something went wrong solving the model")
Instead of writing reframed.solvers.solution.Status.OPTIMAL I would think it would be sufficient to access it with reframed.Status.OPTIMAL.
The text was updated successfully, but these errors were encountered:
Thanks for the quick updates! I guess you mean from gurobipy import Model ? Yes, grobipy worked.
I just relealized I installed reframed via pip install gurobipy, which gives the latest version of 1.2.1. However, the master branch is ahead of the released version.
After uninsalling old released version and installing the current master, test examples worked smoothly without need of any further configurations. I hope not to run into othe configuration issures in the future.
When I work with solutions generated by
reframed
, I often have to look into the optimization status. This becomes a little tricky when the status enumeration is hidden deep into the API. Here is an example:Instead of writing
reframed.solvers.solution.Status.OPTIMAL
I would think it would be sufficient to access it withreframed.Status.OPTIMAL
.The text was updated successfully, but these errors were encountered: