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

add_predictor_constr in Gurobi modeling

回答済み

コメント

3件のコメント

  • 正式なコメント
    Pierre Bonami
    • Gurobi Staff

    Hi Florencia,

    The issue is that there is no implementation for adding the logarithmic transformation in Gurobi ML. Since the transformation is applied to Gurobi variables in the model, one would need to implement a class that performs it.

    Then the error was not very graceful that I will fix.

    If you really want to use a logarithmic transformer you would need to implement a small class similar to the ones in https://github.com/Gurobi/gurobi-machinelearning/blob/main/src/gurobi_ml/sklearn/preprocessing.py.

    I hope this helps. Best regards,

    Pierre

  • 正式なコメント
    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 Florencia,

    I suspect this may be a bug in gurobi-machinelearning.

    I have created a Github Issue for it.

    - Riley

     

    0

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