Originally posted by: Olivier OUDOT
Hello Franco,
No, it is impossible to import a MPS file with the Python API of docplex.cp.
CPO command line is available with the CP Interactive process (cpoptimizer.exe) but it only reads CPO files.
Currently, the only way is to write a C++ program that:
- import the MPS file using a IloCplex (cplex.importModel())
- retrieve the IloModel
- then solve the IloModel using a IloCP.
Optionally, you can also use the IloCP to export the model in CPO format, which is then importable in both Python and cpoptimizer.exe.
#CPOptimizer#DecisionOptimization