Skip to main content

retrieve the value of decision variables for multiple optimal solution

Answered

Comments

1 comment

  • Official comment
    Ronald van der Velden
    Gurobi Staff Gurobi Staff

    Hi Maedeh,

    The steps to retrieve the decision variable values for the solutions in the pool are as follows:

    • Select a particular solution using parameter SolutionNumber 
    • Query the value of a specific decision variable using attribute Xn on the variable

    You can find an example on our website.

    Hope this helps!
    Ronald

Please sign in to leave a comment.