Skip to main content

Optimization

Answered

Comments

3 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?.
  • Jaya Sri Pavuluri

    For example: we have a decision variables f, w, x,y . The objective function can be c*(f-£ *x). How to get the f , x values in gurobi python . Please help me with same example

    0
  • Jaromił Najman
    • Gurobi Staff

    If you want to print the final optimal solution point values, you have to access the X attribute. Note that at least 1 feasible solution has to be found during the optimization process to make the X values accessible, cf. mip1.py example.

    Best regards,
    Jaromił

    0

Post is closed for comments.