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

Lazy constraint callbacks in R?

回答済み

コメント

4件のコメント

  • 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

サインインしてコメントを残してください。