The function print(model) outputs the model in the console. How can I print the model in a file (e.g. lp file) ?
Best
Michael.
Thank's ! This works:
f = open("model.lp", "w")
print(f, model)
close(f)
# Using `do` one doesn't have to remember to call `close(f)`
open("model.lp", "w") do f
print(f, model)
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With