# Initialize variables in Bonmin

**URL:** https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500
**Category:** Optimization (Mathematical)
**Tags:** question, jump
**Created:** [March 3, 2025, 2:29pm UTC](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500 "2025-03-03T14:29:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BCC](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bcc/32/215320_2.png) [@BCC](https://discourse.julialang.org/u/BCC)
#### Post date: [March 3, 2025, 2:29pm UTC](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500/1 "2025-03-03T14:29:17Z")

</div>

I have an MINLP model implemented in BONMIN. The model functions correctly; however, since it is applied to distribution power systems, its complexity increases as the number of nodes grows. For this reason, I have attempted to initialize the model’s binary variables using:

```julia
@variable(OPF, Y[l in 1:NL, c in 1:NC], Bin, start=Y_sol[l,c])

```

where Y\_sol[l,c] is a binary matrix that contains the initial solution of the problem.

I have noticed that, whether the variables are initialized or not, the solver always starts from the same point, and the iterations proceed in the same way.

In this regard, I also attempted to initialize the model with a suboptimal solution for further refinement. That is, I ran the model for a set period, saved the solution, and then tried to initialize the model with this new solution, hoping it would start from this point and find the optimal solution. However, I again noticed that the model behaves as if the variables were not initialized.

In the documentation, I found that `

> warm\_start

` allows initializing the model with a previous solution, but I have not been able to understand how to implement it.

I am currently working with **Bonmin 1.8.9, Cbc 2.10.8, and Ipopt 3.14.13**.

---

<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: [March 3, 2025, 9:07pm UTC](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500/2 "2025-03-03T21:07:15Z")

</div>

Hi @BCC, welcome to the forum 😄

If you do a find for “warm\_start” on [https://coin-or.github.io/Bonmin/options\_list.html](https://coin-or.github.io/Bonmin/options_list.html) you’ll find

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/6/16f8714ddd1d1e981e64a56a32b958200562f16d.png)

It’s not obvious to me that this will be much help though.

You could try other MINLP solvers, like EAGO.jl, Juniper.jl, or Gurobi.jl.
