Skip to main content

How to find absolute difference of list and use those values in maximization optimization model guobipy?

Answered

Comments

4 comments

  • Official comment
    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?.
  • Gnanadeepan D
    • Gurobi-versary
    • First Comment
    • First Question

    From some suggestions, I made all variables as Continuous and then I checked it. It works for minimization objective but not for maximization.

     

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    The default lower bounds for continuous and integer variables are set to 0 in Gurobi.

    Adding

    lb=-grb.GRB.INFINITY

    to all integer and continuous variables in your model makes it feasible.

    Best regards,
    Jaromił

     

    0
  • Gnanadeepan D
    • Gurobi-versary
    • First Comment
    • First Question

    Yes, I did worked. Thankyou.

    0

Post is closed for comments.