Nonlinear Optimization with Many Constraints + Autodifferentiation: Which Julia Solution?

I think you could directly do

@constraint(model, auxdata * x[1:n] .<= 0)

to avoid closures over global variables.

One of the things I like about JuMP is that it lets you add tons of small constraints instead of a single big one. So maybe if your function is too complex you can decompose it?

What kind of error? Can you give the stack trace and the line where it occurs? It is hard to help you with this level of detail.

I have personally helped put large tasks into production using JuMP, so I respectfully disagree :wink: Happy to help you debug yours as best I can though!

1 Like