How to register functions from an array in JuMP?

related: