Skip to main content

MATLAB Gurobi model.A

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Hi Elvin,

    For these particular constraints, you have to define your matrix to have T columns and T-1 rows, where T is the number of x variables. Then set the diagonal marix entries to -1 and the upper off-diagonal entries to 1. For an example of how to define the A matrix, please refer to our MATLAB examples. In particular, you could have a look at the facility.m example.

    Best regards, 
    Jaromił

    1
  • Elvin Dulce
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jaromił,

    Thank you very much for these information! Highly appreciated

    0

Post is closed for comments.