Skip to main content

Is there a way to fix non-basic variables (mainly non-basic slack variables)?

Answered

Comments

1 comment

  • Jaromił Najman
    • Gurobi Staff

    Hi Sadaki,

    For the slack variables, I think creating them while building the model enables me to the same thing, but can I fix them without adding them to the model?

    Unfortunately, there is currently no way to fix the slack variables added by Gurobi. The only way would be to create the slack variables yourself as you already mentioned.

    Depending on your application you might want to consider trying an open-source LP solver such as SoPlex or HiGHS, which might give you more freedom with slack variables. You could probably even extend the respective code and add some functionalities yourself.

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.