Skip to main content

Relaxed variable in Java API

Answered

Comments

3 comments

  • Official comment
    Michael Winkler
    Gurobi Staff Gurobi Staff

    Hi Abbas,

     

    you can change the type of a variable with by settings it's variable type attribute. E.g., start[0][0].set(GRB.CharAttr.VType, GRB.CONTINUOUS).

     

    Best,

    Michael

  • 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?.
  • A.Omidi
    Gurobi-versary
    Collaborator
    Investigator

    Hi Michael,

     

    Thanks for your advice. It works fine.

    Regards

    Abbas

    0

Post is closed for comments.