Write .NL file containing JuMP model

Dear all,

I would ask you if there exists an easy way to write the .nl file corresponding to a JuMP problem. I already checked the solution proposed in https://discourse.julialang.org/t/how-to-write-nl-file-containing-jump-problem-using-amplnlwriter-jl/2954, but it seems no more working.

Thanks very much. Best regards,
Luca

1 Like

Try write_to_file(model, "model.nl")