Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Mar 25, 2019
1 parent 868da26 commit 88a1ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/python/steel_mill_slab_sat.py
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 88a1ac6

Please sign in to comment.