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

Optimality proof when limited computation time

回答済み

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff

    Hi Hussein,

    However, if I have only 200 seconds to solve the problem, is it possible to avoid the first 510 seconds?

    Unfortunately, it is not possible to skip this part because it is the solution of the root node relaxation which is necessary to get a first valid bound for your model. However, it might be possible to reduce the time spent in this phase significantly.

    You can see that the Barrier algorithm converged to a sub-optimal solution

    Sub-optimal termination - objective 2.12310196e+06

    This can be a sign of a numerically unstable model. This is usually not a problem because Crossover will take care of numerical instabilities by computing a basic solution. This can take longer than usual for numerically difficult models. You can see that the coefficient and bound ranges of your model are not great

    Coefficient statistics:
      Matrix range     [1e-03, 1e+05]
      Objective range  [1e+00, 1e+00]
      Bounds range     [3e-05, 3e+04]
      RHS range        [1e+00, 5e+03]

    with respectively 8 and 9 order of magnitude differences. You could try to improve the numerical properties of your model by applying some scaling as discussed in our Guidelines for Numerical Issues.

    You could try experimenting with parameters to decrease the time spent in the root node relaxation. For example, you could experiment with Presolve, PreSparsify, Method. In particular, you could try Method=2, BarHomogeneous=1. You could also try setting the NoRelHeurTime parameter to 10-20 seconds to try to find a good feasible solution before the root node relaxation.

    You might want to try Gurobi's parameter tuning tool. If doing so, you should let the tuning tool run at least for a day or two. I would set the wanted time limit slightly above your desired goal, e.g., 300 seconds. Please note that it is not recommended to overtune a specific instance because often when using too many parameters, those don't have the same effect on the same instance using different data. In general 1-4 parameters should be enough.

    If possible, you could share the instance and someone might want to take a look at some parameter settings. Note that uploading files in the Community Forum is not possible but we discuss an alternative in Posting to the Community Forum.

    Best regards, 
    Jaromił

    0

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