I don’t think JuMP and user-defined operators are the right choice for this problem.
See Should you use JuMP? · JuMP
You cannot register vector-valued user-defined operators, and you cannot register operators with a variable number of arguments.
I don’t think JuMP and user-defined operators are the right choice for this problem.
See Should you use JuMP? · JuMP
You cannot register vector-valued user-defined operators, and you cannot register operators with a variable number of arguments.