# Performance MIPstart

**URL:** https://discourse.julialang.org/t/performance-mipstart/36464
**Category:** Optimization (Mathematical)
**Created:** [March 24, 2020, 8:31pm UTC](https://discourse.julialang.org/t/performance-mipstart/36464 "2020-03-24T20:31:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)
#### Post date: [March 24, 2020, 8:31pm UTC](https://discourse.julialang.org/t/performance-mipstart/36464/1 "2020-03-24T20:31:46Z")

</div>

I’ll share an experience.  
I have a mixed linear optimization problem.  
When I use a feasibre solution (MIPstart), sometimes CPLEX performs worse than if I let it determine an incumbent solution automatically.  
Sometimes when I don’t use MIPstart, CPLEX doesn’t even determine an integer solution.

```julia
for i in I
    for t in T
        set_start_value(s[i,t],1)
    end
end

```

What is your experience in this matter? Fix variables and ensure an incumbet solution or leave CPLEX determine automatically?

---

<div class="post-metadata">

### Author: ![leethargo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leethargo/32/6004_2.png) [@leethargo](https://discourse.julialang.org/u/leethargo)
#### Post date: [March 25, 2020, 6:17am UTC](https://discourse.julialang.org/t/performance-mipstart/36464/2 "2020-03-25T06:17:08Z")

</div>

When you supply a feasible solution, is it complete? That is, do you provide start values for all variables, or only a subset?

If you only provide a partial solution, than many solvers will try to solve the subproblem where those are fixed. This might take significant time and not be worth it if your candidate is of poor quality.

Otherwise, what you observe might be covered by the phenomen of “performance variability”, typical in MIP solvers.

---

<div class="post-metadata">

### Author: ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)
#### Post date: [March 25, 2020, 12:59pm UTC](https://discourse.julialang.org/t/performance-mipstart/36464/3 "2020-03-25T12:59:21Z")

</div>

I provide only the binary variables of my problem. A good advise is supply all variables. I will test.
