# Loops "for" and "while" in JuMP

**URL:** <https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657>\
**Category:** Optimization (Mathematical)\
**Created:** [November 29, 2019, 12:35pm UTC](https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657 "2019-11-29T12:35:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 30, 2019, 6:22pm UTC](https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657/3 "2019-11-30T18:22:35Z")

</div>

Please take the time to read [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757).

In particular, it is easier to help if you can make a minimal reproducible example that demonstrates the error.

If you want to modify coefficients in a nonlinear expression, @Libbum is correct, parameters are the solution.

---

_[View the full topic](https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657)._
