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

Unable to retrieve attribute 'ObjVal', despite GRB_Optimal status

ユーザーの入力を待っています。

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    Hi Robert,

    I think I found the problem: I have the problem that sometimes I add a new constraint, but after that I don't call model.optimize() again. Might this lead to the given error?

    Probably yes. If the constraint cuts of the previous solution and you don't re-optimize, it is possible that the previous solution is lost. However, I am just guessing here. If calling model.optimize() does not help, could you share a minimal working example reproducing the issue?

    Best regards, 
    Jaromił

    0

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