# Run time constraints in optimisation

**URL:** <https://discourse.julialang.org/t/run-time-constraints-in-optimisation/47657>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization, argument\
**Created:** [October 2, 2020, 6:02pm UTC](https://discourse.julialang.org/t/run-time-constraints-in-optimisation/47657 "2020-10-02T18:02:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [October 3, 2020, 2:13pm UTC](https://discourse.julialang.org/t/run-time-constraints-in-optimisation/47657/4 "2020-10-03T14:13:41Z")

</div>

What do you mean by _run time_, exactly?

If _run time_ means _the time after creating the model but before calling `optimize!`_, then a simple [`JuMP.fix`](https://jump.dev/JuMP.jl/stable/variables/#JuMP.fix) should suffice.

If _run time_ means _in the middle of an call to `optimize!`_, then see [this post of mine.](https://discourse.julialang.org/t/how-to-make-if-in-the-objective-function/46859/13)

---

_[View the full topic](https://discourse.julialang.org/t/run-time-constraints-in-optimisation/47657)._
