linopy.model.Model.to_file#

Model.to_file(fn)#

Write out a model to a lp or mps file.