how to output the decision variable values in gurobi?


1 comment

  • Sonja Mars

    You can simply look at the X attribute of your variables. Here is an example of how to do this in Python. Before accessing the X attribute, please make sure to check if a solution is available. If you are trying to query the solution values, but there is no solution this will result in an error.



    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk