GuillotineModels.SaveModel
GuillotineModels.SaveModel
— ModuleSaveModel
module purpose is to provide a delegate-to-solver option to MathOptInterface.write_to_file
. Instead of using the current MOI fallback (that only works for MPS and is kinda memory-hungry and slow), SaveModel.write_to_file
checks if SaveModel.natively_supports
returns true
for its arguments, and in such case calls SaveModel.native_write_to_file
over the object returned by the MOI.RawSolver()
property; otherwise it calls the MOI
fallback.
GuillotineModels.SaveModel.write_to_file
— Methodwrite_to_file(model, filename; format = FORMAT_AUTOMATIC)
Save the model to filename trying to use the solver mechanism instead of the generic JuMP
/MathOptInterface
one.