Skip to main content

getVarByName c++

Answered

Comments

1 comment

  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Hi Zakarya,

    Using \(\texttt{getVarByName("x1")}\) will return a GRBVar.
    You cannot print this to stdout.
    You can, however, print its value or its name as shown in our mip1_c++.cpp example.

    Cheers, 
    David

    0

Please sign in to leave a comment.