# Starting point of a nonlinear optimization using Ipopt

**URL:** https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959
**Category:** Optimization (Mathematical)
**Tags:** jump
**Created:** [October 18, 2021, 6:01am UTC](https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959 "2021-10-18T06:01:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![FH96](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@FH96](https://discourse.julialang.org/u/FH96)
#### Post date: [October 18, 2021, 6:01am UTC](https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959/1 "2021-10-18T06:01:29Z")

</div>

If I don’t specify the staring point in a nonlinear optimization using Ipopt ,what does the solver starts with?

---

<div class="post-metadata">

### Author: ![blob](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@blob](https://discourse.julialang.org/u/blob)
#### Post date: [October 18, 2021, 7:14am UTC](https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959/2 "2021-10-18T07:14:43Z")

</div>

If you use JuMP, the starting point is zero (and Ipopt will complain if you have a nonlinearity that is undefined at zero, like 1/x). I don’t know if the value is set by JuMP or by Ipopt itself, though.

---

<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 18, 2021, 7:41am UTC](https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959/3 "2021-10-18T07:41:30Z")

</div>

JuMP\* sets the starting point to `0`, or it projects onto the nearest variable bound if `0` is outside that bounds.

Here are the docs for setting different starting values: [Variables · JuMP](https://jump.dev/JuMP.jl/stable/manual/variables/#Start-values)

\*Really Ipopt.jl does this, not JuMP.

---

<div class="post-metadata">

### Author: ![FH96](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@FH96](https://discourse.julialang.org/u/FH96)
#### Post date: [October 18, 2021, 11:45am UTC](https://discourse.julialang.org/t/starting-point-of-a-nonlinear-optimization-using-ipopt/69959/4 "2021-10-18T11:45:27Z")

</div>

All right, thank you both, also thank @odow for the docs 🙏
