Skip to main content

Fix a variable and evaluate the Objective function value

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff 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?.
  • Chags
    • Gurobi-versary
    • First Question
    • First Comment

    I usually make this by change the variable bounds

    try:

    w[(7,1)].ub = 2

    w[(7,1)].lb = 2
    0
  • Azi
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you very much. 

     

    Azadeh

     

    0

Post is closed for comments.