coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
540 stars 95 forks source link

Incorrect file extension when call write() with CBC solver #348

Closed alexander-popkov closed 1 year ago

alexander-popkov commented 1 year ago

Describe the bug When I call method model.write('model.mps'), I get a file model.mps.mps.gz instead of model.mps.

To Reproduce The bug happens when I run such script:

m = mip.Model(solver_name=mip.CBC)
m.read('model.lp')
m.write('model.mps')

It arises only for CBC solver

Expected behavior I expect to get a model in the format .mps

Desktop (please complete the following information):

sebheger commented 1 year ago

Thanks for reporting @alexander-popkov

I will close this issue as it is duplicate to #164