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

Get relaxed solution value in callback MIPNODE

回答済み

コメント

3件のコメント

  • Jaromił Najman
    • Gurobi Staff

    To access the node relaxation solution through the JAVA API, you have to use the GRBCallback.getNodeRel() method.

    0
  • Lorenzo Moreschini
    • Gurobi-versary
    • Investigator
    • Conversationalist

    In that way I still have to compute the obj function value, is there any shortcut? (a workaround could be to assign the obj function to a single variable and then read its relaxed value...)

    0
  • Jaromił Najman
    • Gurobi Staff

    In that way I still have to compute the obj function value, is there any shortcut? (a workaround could be to assign the obj function to a single variable and then read its relaxed value...)

    Unfortunately, there is currently no shortcut. Introducing an auxiliary variable to capture the value of the objective function is the correct way to go here.

    0

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