Skip to main content

Lazy constraint callbacks in R?

Answered

Comments

4 comments

  • Jakob Schelbert
    Gurobi-versary
    Collaborator

    Hi Velibor,

    As far as I know, the R-API does not permit adding lazy constraints. This is also true for the Matlab-API - both are more "matrix based" interfaces compared to the other APIs.

    0
  • Gwyneth Butera
    Gurobi Staff Gurobi Staff

    As a note of clarification, while you can't use the callback, you can mark linear constraints as lazy in the R and MATLAB APIs via the 'lazy' attribute on a linear constraint. 

    0
  • Marcos Freitas
    First Comment
    Gurobi-versary

    Does anyone know if it's still not possible?

    0
  • Eli Towle
    Gurobi Staff Gurobi Staff

    Callback functions are still not supported in the MATLAB and R interfaces. To add lazy constraints in these APIs, you can use Gwyneth's approach of setting the Lazy attributes of linear constraints.

    1

Please sign in to leave a comment.