Skip to main content

add_predictor_constr in Gurobi modeling

Answered

Comments

2 comments

  • Official comment
    Pierre Bonami
    Gurobi Staff 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

  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Florencia,

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

    I have created a Github Issue for it.

    - Riley

     

    0

Please sign in to leave a comment.