Relative Content

Tag Archive for pythoncplexdocplex

In python, docplex reports BrokenPipeError and Invalid argument when solving a particularly large cp model

The model is solved fine, but when the model is relatively large (150,000 variables, 620,600 constraints), cp.solve() reports an error “0SError: [Errno 22] Invalid argument” in self.pout.write(frame) in the _write_message(self, cid, data=None) method. [errorCodeLocation](https://i.sstatic.net/yx8NcT0w.png) [errormsg](https://i.sstatic.net/WRyFmEwX.png) [errormsg](https://i.sstatic.net/Wxf61Flw.png) This problem probably occurred while constructing the solver model python cplex docplex

Use ProgressListener with multiobjective in docplex (CPLEX)

I am translating an implementation of a gurobi model to cplex which uses multi-objective functionality and uses the following callbacks. The purpose of the callbacks is to extract the information from the optimization process as the different objectives are optimized.