# Scip optimizer presolver components takes too long to optimize matrix

**URL:** <https://discourse.julialang.org/t/scip-optimizer-presolver-components-takes-too-long-to-optimize-matrix/105066>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump\
**Created:** [October 17, 2023, 1:08pm UTC](https://discourse.julialang.org/t/scip-optimizer-presolver-components-takes-too-long-to-optimize-matrix/105066 "2023-10-17T13:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrFox](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mrFox](https://discourse.julialang.org/u/mrFox)\
**Post date:** [October 17, 2023, 1:08pm UTC](https://discourse.julialang.org/t/scip-optimizer-presolver-components-takes-too-long-to-optimize-matrix/105066/1 "2023-10-17T13:08:29Z")

</div>

there are two milp problems. When I use gurobi optimizer they are calculated quite quickly: 263s for matrix 1 and 139s for matrix 2. If I use scip optimizer with parallel extension fiberscip the solution cannot be found. If we take into account that both matrices are equal in variables and constraints, one scip presolving matrix on the presolve is 9 s and the second is 933 s. It was found that most of the presolver time is occupied by the components presolver. How does the components presolver heuristics works and how can I speed it up? How can I speed up SCIP optimizer for this problem?  
files here: [https://www.dropbox.com/scl/fo/qnw9bvit52h0wykd29ezq/h?rlkey=pccho59csdvni0m4onpd3tkj1&dl=0](https://www.dropbox.com/scl/fo/qnw9bvit52h0wykd29ezq/h?rlkey=pccho59csdvni0m4onpd3tkj1&dl=0)

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [October 17, 2023, 11:57pm UTC](https://discourse.julialang.org/t/scip-optimizer-presolver-components-takes-too-long-to-optimize-matrix/105066/2 "2023-10-17T23:57:32Z")

</div>

Hi @mrFox, welcome to the forum.

In general, MILPs can be very difficult to solve, and different solvers will perform differently.

On some benchmarks, SCIP is roughly an order of magnitude slower than Gurobi: [https://plato.asu.edu/ftp/milp.html](https://plato.asu.edu/ftp/milp.html) (But is is on average across that particular benchmark set. It might be different for your model.)

You can find a list of the SCIP options here:  
[https://www.scipopt.org/doc/html/PARAMETERS.php](https://www.scipopt.org/doc/html/PARAMETERS.php)

I haven’t tried running your model so you will need to experiment, but searching the options for `components presolver` suggests that this option might disable that particular part:

```julia
set_attribute(model, "constraints/components/maxprerounds", 0)

```

@mbesancon might have other suggestions.
