# Question regarding COSMO Convergence

**URL:** <https://discourse.julialang.org/t/question-regarding-cosmo-convergence/53996>\
**Category:** Optimization (Mathematical)\
**Tags:** package, optimization\
**Created:** [January 26, 2021, 4:43pm UTC](https://discourse.julialang.org/t/question-regarding-cosmo-convergence/53996 "2021-01-26T16:43:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 28, 2021, 1:16am UTC](https://discourse.julialang.org/t/question-regarding-cosmo-convergence/53996/2 "2021-01-28T01:16:31Z")

</div>

Please read the first post of [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757). In particular, it’s easier to help if you can provide a minimal working example. You’re almost there, but I can’t run your code because I don’t have “warmstart.jl”.

One reason you are having trouble is that you are enforcing variable bounds as constraints. Do this instead:

```nohighlight
@variable(m, Pgmin[i] <= g[1:times, i = 1:numgenerators] <= Pgmax[i])

```

---

_[View the full topic](https://discourse.julialang.org/t/question-regarding-cosmo-convergence/53996)._
