Skip to main content

How to add Lazy Constraints and Callbacks in MATLAB?

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • 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?.
  • Eli Towle
    • Gurobi Staff

    The MATLAB API does not support callbacks. If you want to solve the TSP this way, you would have to use another API like Python, C, C++, Java, or .NET.

    In MATLAB, you can specify certain constraints to be lazy constraints by setting the Lazy constraint attribute (see here). This unfortunately won't help you solve the TSP, because these lazy constraints must be added to the model before solving.

    0
  • Ruzbeh Akbar
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you for the answer! 

    0

Post is closed for comments.