Skip to main content

Solving PyPSA model with Gurobi in Google Colab - License problem

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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.
  • David Torres Sanchez
    • Gurobi Staff

    Hi Sebastian,

    Unfortunately, I think PyPSA uses Pyomo internally, which creates a default environment for you, so you cannot use the method you described.
    Try saving the license file to be accessible through your Google Colab instance and setting the \(\texttt{GRB_LICENSE_FILE}\) to point to this file (use the full path).

    Cheers, 
    David

    0
  • Sebastián Rivero Equiza
    • Gurobi-versary
    • First Comment
    • First Question

    Hello David,

    Thank you for your answer.

    Regards,

    Sebastián

    0

Post is closed for comments.