with python-MIP you can export mps file with
m.write('model.mps')
and then use cplex through import mps in docplex
mdl = ModelReader.read('c:/temp/model.mps', ignore_names=False)
mdl.solve(log_output=True,)
from example
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
------------------------------
Original Message:
Sent: Thu March 13, 2025 10:10 AM
From: PhR
Subject: Python-MIP and Python DOcplex solving time
The Python-MIP web site does not mention that their solver can run on the top of CPLEX.
How did you manage to try it ?
Original Message:
Sent: Tue March 11, 2025 05:03 PM
From: Seyed Mohammad Javad Hosseini
Subject: Python-MIP and Python DOcplex solving time
Hi,
I am solving an optimization problem and I am using Python DOcplex lbrary which uses IBM ILOG CPLEX Optimization Studio academic version. It solves my problem in 14 seconds. However, I need to use Python-MIP which uses CBC solver but it solves the same problem in 16 minutes. I was wondering if there is a way to reduce this simulation time when I use Python-MIP. I know Python-MIP also works with CPLEX. I tried it and the simulation still takes a long time to run. I really appreciate it if you could help me with this.
Thank you.
------------------------------
Seyed Mohammad Javad Hosseini
------------------------------