Skip to main content

Failed to create new environment in gurobipy

Awaiting user input

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Riley Clement
    • Gurobi Staff

    Hi Zhipeng,

    When you use

    gp.Model("test")

    Gurobi will be using a default environment.

    When you use

    with gp.Model(env=env) as m:

    you are specifying a (probably non-default) environment.

    Can you provide the code where you are creating env?  (Please replace any license details in this code with junk if applicable).

    - Riley

     

    0

Post is closed for comments.