Skip to main content

node time keeps increasing

Answered

Comments

3 comments

  • Jaromił Najman
    • Gurobi Staff

    But from the log i can see the barrier method already solved something ?

    What you see is the solution of the root node relaxation which usually only takes a fraction of the actual B&B algorithm.

    Can I speed it up somehow ?

    You could try experimenting with the Most important parameters for MIPs. In particular, you might want to experiment with the NoRelHeurTime parameter.

    Could you please share the first log lines as well? From the objective values, it looks like your model have have some numerical issues. Please have a look at our Guidelines for Numerical Issues.

    0
  • Moritz Scheffel
    • Gurobi-versary
    • First Comment
    • First Question

    thank you for answering,
    Here are the first log lines:

    ##############################################################
    ##################### solving ################################

    no of Eqs   (single):113 (1124427)
    no of InEqs (single):57 (1862208)
    no of Vars  (single):175 (2916382)
    Solver script file: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\tmptfg8l1mv.gurobi.script'
    Solver log file: 'C:\Users\Administrator\Downloads\V1_geclustert(5)\V1_geclustert\results\2023-05-27_fullModel_solver.log'
    Solver solution file: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\tmp47c9u4g2.gurobi.txt'
    Solver problem files: ('C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\tmponjs38v3.pyomo.lp',)
    Set parameter Username
    Academic license - for non-commercial use only - expires 2023-11-17
    Read LP format model from file C:\Users\ADMINI~1\AppData\Local\Temp\2\tmponjs38v3.pyomo.lp
    Reading time = 10.93 seconds
    x2916383: 2986636 rows, 2775820 columns, 10048902 nonzeros
    Set parameter Threads to value 16
    Set parameter MIPGap to value 0.1
    Set parameter TimeLimit to value 86400
    Gurobi Optimizer version 10.0.0 build v10.0.0rc2 (win64)

    CPU model: AMD EPYC 7513 32-Core Processor, instruction set [SSE2|AVX|AVX2]
    Thread count: 8 physical cores, 8 logical processors, using up to 16 threads

    Warning: Thread count (16) is larger than processor count (8)
             Reduce the value of the Threads parameter to improve performance


    Optimize a model with 2986636 rows, 2775820 columns and 10048902 nonzeros
    Model fingerprint: 0xb07529cf
    Variable types: 2108236 continuous, 667584 integer (667584 binary)
    Coefficient statistics:
      Matrix range     [3e-06, 3e+04]
      Objective range  [1e+00, 1e+00]
      Bounds range     [1e+00, 1e+10]
      RHS range        [1e-01, 4e+07]
    Warning: Model contains large bounds
             Consider reformulating model or setting NumericFocus parameter
             to avoid numerical issues.
    Presolve removed 1327984 rows and 1250447 columns (presolve time = 5s) ...
    Presolve removed 1368188 rows and 1297915 columns (presolve time = 10s) ...
    Presolve removed 1368188 rows and 1297915 columns (presolve time = 15s) ...
    Presolve removed 1368188 rows and 1297915 columns
    Presolve time: 15.80s
    Presolved: 1618448 rows, 1477905 columns, 4367791 nonzeros
    Variable types: 880593 continuous, 597312 integer (597312 binary)
    Found heuristic solution: objective 4.649413e+12
    Deterministic concurrent LP optimizer: primal simplex, dual simplex, and barrier
    Showing barrier log only...

    Root barrier log...

    Ordering time: 0.12s

    Barrier statistics:
     AA' NZ     : 1.713e+06
     Factor NZ  : 1.419e+07 (roughly 500 MB of memory)
     Factor Ops : 7.818e+08 (less than 1 second per iteration)
     Threads    : 14
    0
  • Jaromił Najman
    • Gurobi Staff

    Thank you for the log snippet.

    You can see 2 quite serious warnings.

    Warning: Thread count (16) is larger than processor count (8)
             Reduce the value of the Threads parameter to improve performance

    This warning means that you force Gurobi to use more threads than you have logical processors. This almost always has a negative effect on the performance because then multiple threads have to share one logical processors. Here, it is recommended to set Threads=8 or just leave it at its default value and let Gurobi decide.

    Warning: Model contains large bounds
             Consider reformulating model or setting NumericFocus parameter
             to avoid numerical issues.

    This is another quite serious warning. Given the large objective values encountered along the solution path and the wide coefficient and bound ranges, it is very likely that your model may run into numerical trouble. Please have a look at our Guidelines for Numerical Issues and try to re-scale your model if possible.

    Maybe a stronger formulation of your model is possible, see Tech Talk - Converting Weak to Strong MIP Formulations.

    Additionally, you should have a look at the Most important parameters for MIPs. In particular, the NoRelHeurTime and MIPFocus parameters.

    If possible, you could try providing a MIP start.

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.