メインコンテンツへスキップ

getVarByName c++

回答済み

コメント

1件のコメント

  • David Torres Sanchez
    • 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

サインインしてコメントを残してください。