Skip to main content

gurobi python zero arrays with some entries variables

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 Tetiana,

    If I understood you correctly, instead of having a 3-dimensional variable vector, you want to replace the third variable with a scalar, right? What exactly do you want to achieve?
    If you have a large variable vector where just a few entries are already fixed, you could set the lower and upper bounds of the corresponding fixed variables to the desired scalar. Then, Gurobi will remove the variable in presolving.

    Best regards,
    Mario

    0

Post is closed for comments.