# JuMP: Register arbitary number of functions and use as constraints

**URL:** <https://discourse.julialang.org/t/jump-register-arbitary-number-of-functions-and-use-as-constraints/19692>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, loops\
**Created:** [January 16, 2019, 12:10pm UTC](https://discourse.julialang.org/t/jump-register-arbitary-number-of-functions-and-use-as-constraints/19692 "2019-01-16T12:10:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![1ozturkbe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1ozturkbe/32/16461_2.png) [@1ozturkbe](https://discourse.julialang.org/u/1ozturkbe)\
**Post date:** [November 24, 2020, 10:01pm UTC](https://discourse.julialang.org/t/jump-register-arbitary-number-of-functions-and-use-as-constraints/19692/8 "2020-11-24T22:01:29Z")

</div>

FYI, I resolved the issue by managing to “flatten” the inputs to the constraints. Still though, it would have been nice if JuMP had been able to handle vector inputs out of the box! Resolved.

---

_[View the full topic](https://discourse.julialang.org/t/jump-register-arbitary-number-of-functions-and-use-as-constraints/19692)._
