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

additional argument in callback function

回答済み

コメント

1件のコメント

  • Marika Karbstein
    • Gurobi Staff

    I think you are looking for the following, see the Callback documentation:

    If you would like to pass data to your callback function, you can do so through the Model object. For example, if your program includes the statement model._value = 1 before the optimization begins, then your callback function can query the value of model._value. Note that the name of the user data field must begin with an underscore.

    0

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