# How does JuMP export function like set\_lower\_bound()?

**URL:** <https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, function\
**Created:** [July 28, 2023, 9:19pm UTC](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216 "2023-07-28T21:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn\_T](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Post date:** [July 28, 2023, 9:19pm UTC](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216/1 "2023-07-28T21:19:29Z")

</div>

Hi all,

I am learning how JuMP package enables the use of functions like set\_lower\_bound(), these functions are defined in JuMP and could be called by the user from REPL.

But from the file where set\_lower\_bound() is defined, I did not find any “export” command, so I wonder how user can use set\_lower\_bound() directly without returning UndefVarError?

[https://github.com/jump-dev/JuMP.jl/blob/72b91d7bc113971c1d1847069ae9279e16848162/src/variables.jl#L660](https://github.com/jump-dev/JuMP.jl/blob/72b91d7bc113971c1d1847069ae9279e16848162/src/variables.jl#L660)

Thank you

---

<div class="post-metadata">

**Author:** ![lostella](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lostella/32/356_2.png) [@lostella](https://discourse.julialang.org/u/lostella)\
**Post date:** [July 28, 2023, 9:38pm UTC](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216/2 "2023-07-28T21:38:33Z")

</div>

As far as I can see, this is where the magic happens: [https://github.com/jump-dev/JuMP.jl/blob/72b91d7bc113971c1d1847069ae9279e16848162/src/JuMP.jl#L1136-L1159](https://github.com/jump-dev/JuMP.jl/blob/72b91d7bc113971c1d1847069ae9279e16848162/src/JuMP.jl#L1136-L1159)

---

<div class="post-metadata">

**Author:** ![shawn\_T](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Post date:** [July 28, 2023, 10:18pm UTC](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216/3 "2023-07-28T22:18:26Z")

</div>

I think I got it, thank you!
