Skip to content

Tag: cplex

Print linear constraints of CPLEX LP on Python

I need to print all my linear constraints to verify the correctness of what I wrote but not knowing the CPLEX library for Python well I would not know how to do it. That’s my part of LP: I want to print out these 22 linear constraints. I’m working with CPLEX 12.9 on Python 3.7.9 Answer This will w…

Making CPLEX use a greedy solution

How do you make cplex use a greedy optimization solution as opposed to the optimal solution? Are there parameters you can set or is this not possible? Answer What you can do is to compute the greedy solution yourself and then submit this as a warmstart/MIP start. There are no parameters to force CPLEX to use …