Following the example here, I’m trying to use JuMP to write a model to a file.
src = JuMP.Model(Clarabel.Optimizer)
filename = "my_model.lp"
dest = FileFormats.Model(filename = filename)
MOI.copy_to(dest, src)
MOI.write_to_file(dest, filename)
I get a “no method matching” error for MOI.write_to_file with suggestions of other inputs. So I’m pretty sure src, and by extension dest are not the correct format, but how do I get them into the correct format?