Skip to main content

MATLAB Gurobi model.A

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.