メインコンテンツへスキップ

Gurobi 9.1.1 Model() class produces unexpected result with lubridate (R) functions

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff 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 why not try our AI Gurobot?.
  • Eli Towle
    • Gurobi Staff Gurobi Staff

    I suspect the Gurobi library is silently changing your locale. This will be fixed in the next major or minor Gurobi release. As a workaround, you can try querying the locale information before calling gurobipy.Model():

    Sys.getlocale(category="LC_ALL")

    After creating the model, reset the locale to the appropriate value. For example:

    Sys.setlocale(category="LC_ALL", locale="en_US.UTF-8")
    0
  • Upasana Raval
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks a lot Eli for your prompt response! This indeed resolved my issue. I will keep an eye out on the next releases and will use this solution in the interim. 

     

    0
  • Maliheh Aramon
    • Gurobi Staff Gurobi Staff

    Hi Upasana

    Gurobi 9.5 was recently released. Included in this release is a fix for the bug you observed. There is no need to reset the locale explicitly anymore.

    We hope this fix works well for you. Thank you for reporting this bug and please let us know if you see any other issues in the future.

    Best regards,

    Maliheh

    0

投稿コメントは受け付けていません。