# Integer optimisation with user's multivariate functions: Possible in Julia?

**URL:** <https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization\
**Created:** [November 23, 2018, 7:23pm UTC](https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924 "2018-11-23T19:23:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Olegg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olegg/32/51316_2.png) [@Olegg](https://discourse.julialang.org/u/Olegg)\
**Post date:** [November 24, 2018, 5:40pm UTC](https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924/3 "2018-11-24T17:40:43Z")

</div>

I get “LoadError: KeyError: key :g not found”. Here, :g is the user-defined constraint registered with JuMP and added through JuMP.addNLconstraint. This constraint is indexed and added in a loop, as in [JuMP; Rewriting an @eval @NLexpression with a user defined function in local scope w/ Expr](https://discourse.julialang.org/t/jump-rewriting-an-eval-nlexpression-with-a-user-defined-function-in-local-scope-w-expr/8757)

---

_[View the full topic](https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924)._
