I have modeled a MIP problem in Python Cplex API. Is there any way to read variable values - variable-wise?
Currently I am reading variable values into a list and mapping those from the LP file"
for i, j in zip(cpx.variables.get_names(), cpx.solution.get_values()):
cplex_details_inp.append((i, j))
By this method, I am able to read all variable values at a time, but this method is causing memory issue due to the fact that there are 500k variables.
How to read values variable wise? I don't find any specific document or examples for this.