# Model creation inside a loop

**URL:** <https://discourse.julialang.org/t/model-creation-inside-a-loop/88183>\
**Category:** Optimization (Mathematical)\
**Tags:** question, jump\
**Created:** [October 3, 2022, 7:26pm UTC](https://discourse.julialang.org/t/model-creation-inside-a-loop/88183 "2022-10-03T19:26:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Angel127](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Angel127](https://discourse.julialang.org/u/Angel127)\
**Post date:** [October 4, 2022, 3:17am UTC](https://discourse.julialang.org/t/model-creation-inside-a-loop/88183/3 "2022-10-04T03:17:50Z")

</div>

Hi hendri54, regarding the second guess: How can we do that? Actually, I have recently asked it in a post. Please, see:

> [@How to use a solution as starting point to run my NL model again after modifying something (e.g. a constraint)?](https://discourse.julialang.org/t/how-to-use-a-solution-as-starting-point-to-run-my-nl-model-again-after-modifying-something-e-g-a-constraint/88203):
>
> I have a NL model, and it finds a locally optimal solution after two hours. I would like to apply a nested for loop to use the epsilon constrained method. Then, on each iteration, some right-hand side coefficients will be varying. I want to know how to use the solutions I found (or at least one of them, maybe the very first one) as starting points. Since my model has a lot of variables and constraints, I would like to “load” a solution as a starting point efficiently. Every comment or alternativ…

Thank you

---

_[View the full topic](https://discourse.julialang.org/t/model-creation-inside-a-loop/88183)._
