XiongPengNUS / rsome

Robust Stochastic Optimization Made Easy
GNU General Public License v3.0
282 stars 54 forks source link

error when trying to get the model status #26

Closed AmalNammouchi closed 1 year ago

AmalNammouchi commented 1 year ago

Hi, I am trying to get the model status and save it in a variable , since I am using Gurobi as a solver I tried model.status but it yields the following error: AttributeError: module 'rsome.ro' has no attribute 'status'

I assume there is a different way to get the status in rsome but I can't find it in the documentation.

Thank you

XiongPengNUS commented 1 year ago

Hi, the solution status of the solver can be accessed by the expression model.solution.status.