Skip to main content

Unbounded Ray

Answered

Comments

2 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.
  • Mario Ruthmair
    • Gurobi Staff

    Hi Mina,

    I guess your question is how to obtain the unbounded ray for one particular variable, right?
    You can access the UnbdRay attribute directly for each variable via

    var.UnbdRay

    In your code, it seems you want to access the UnbdRay attribute for the whole variable array (sp1?) in one step.
    How did you create your variables? If you created them via addVars() like

    r = model.addVars(J, ...)
    p = model.addVars(I, J, ...)
    q = model.addVars(I, J, ...)

    with I and J being the index sets for your constraints, then you can access the attribute via

    q[i,j].UnbdRay

    for one particular index i and index j. With this, you can build your feasibility cut.

    Best regards,
    Mario

    0

Post is closed for comments.