Skip to main content

Gurobi solver stuck in model.optimize()

Awaiting user input

Comments

3 comments

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Jepan,

    This seems a little unusual at first glance.

    It looks like the second screenshot is of a file, and if I understand correctly the output is being written to a file?
    How are you writing this output?

    Is your code being run from a jupyter notebook or a python script?

    What happens if you put the following line after master.optimize() and run the code?

    raise RuntimeError()

    - Riley

    0
  • Jepan Taji
    • First Comment
    • First Question

    I am using Jupyter notebook. And VSCode stops responding and I get no runtime error. 

    The scale is very small and it shouldn't take much time to solve the inital rmp.

     

    0
  • Riley Clement
    • Gurobi Staff Gurobi Staff

    And do you have to restart the jupyter kernel in order to execute cells after this?

    Can you convert the notebook to a python script and see if it crashes, and if it does whether it gives us more information?
    https://stackoverflow.com/a/75628216/11472761

    0

Please sign in to leave a comment.