How does JuMP export function like set_lower_bound()?

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

Thank you

1 Like

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

4 Likes

I think I got it, thank you!

1 Like