Skip to main content

Can the callback function combine two check mechanism?(TSP subtour elimination + Bender's decomposition)

Answered

Comments

2 comments

  • Jacob Jin
    Gurobi-versary
    Curious
    Collaborator

    I have verified that all the lazy constraints' formulations are correct。。。

    0
  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Hi Jacob,

    Could you briefly explain what is \(\texttt{N}\) in your code snippet?

    The case \(\texttt{len(tour) == N}\) cannot be reached because it always lands in \(\texttt{len(tour) < N+1}\).

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.