Skip to main content

Returning dictionary as result of a function

Answered

Comments

1 comment

  • David Torres Sanchez
    • Gurobi Staff

    Hi,

    You can solve the problem after formulating it via calling model.optimize().
    I suggest you take a look a look at the Python examples to quickly see how to retrieve variable values and objective function vals: mip1.py.

    Full list of Python examples.

    Cheers, 
    David

    0

Please sign in to leave a comment.