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

Finding Eulerian Path in a Directed Graph With Minimal Edge Addition

回答済み

コメント

3件のコメント

  • 正式なコメント
    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?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Stuart,

    You might be interested in the Knowledge Base article How do I determine why my model is infeasible?

    Moreover, note that the default lower bound for variables is 0. If I understand correctly, your \(\texttt{y}\) variables can also be negative, so redefining them as

    y = m.addMVar(shape=var_nodes, lb= -GRB.INFINITY, vtype=GRB.INTEGER, name="y")

    should help.

    Best regards,
    Jaromił

    0
  • Stuart Horine
    • Gurobi-versary
    • First Comment
    • First Question

    You hero! Thanks very much.

    0

投稿コメントは受け付けていません。