From 88a1ac656273d0c7480764053689e4b15ac86666 Mon Sep 17 00:00:00 2001 From: Laurent Perron Date: Mon, 25 Mar 2019 14:38:24 +0100 Subject: [PATCH] fix example --- examples/python/steel_mill_slab_sat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/steel_mill_slab_sat.py b/examples/python/steel_mill_slab_sat.py index 6318fd8b984..b9b1e71513b 100644 --- a/examples/python/steel_mill_slab_sat.py +++ b/examples/python/steel_mill_slab_sat.py @@ -601,7 +601,7 @@ def steel_mill_slab_with_valid_slabs(problem, break_symmetries, output_proto): # Output model proto to file. if output_proto: output_file = open(output_proto, 'w') - output_file.write(str(model.ModelProto())) + output_file.write(str(model.Proto())) output_file.close() ### Solve model. @@ -673,7 +673,7 @@ def steel_mill_slab_with_column_generation(problem, output_proto): # Output model proto to file. if output_proto: output_file = open(output_proto, 'w') - output_file.write(str(model.ModelProto())) + output_file.write(str(model.Proto())) output_file.close() ### Solve model.