Skip to main content

gurobi python zero arrays with some entries variables

Answered

Comments

1 comment

  • 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

Please sign in to leave a comment.