Skip to main content

Lazy constraint callbacks in R?

Answered

Comments

5 comments

  • Official comment
    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?.
  • 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
    Gurobi-versary
    First Comment

    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

Post is closed for comments.