user177911
user177911

Reputation:

CPLEX Error 1001 Out of memory

I was trying to solve an IMP with CPLEX. It throws an exception "CPLEX Error 1001: Out of memory" when I am building the model. The model contains around 2200000 line. I am getting this error while optimizing after using CPXmipopt.

how I can sort it out, note that when I check the memory form task manager, I found some unused memory.

Upvotes: 1

Views: 5266

Answers (1)

user119653
user119653

Reputation:

Have you entered a bigger value for the workMem parameter? the default is 512 kbs if You are using c++ you can add more memory to cplex by using

cplex.setParam(IloCplex::WorkMem ,2000.0);

(that adds 2Mbs of memory) You can also try storing the Node tree on your harddrive using

cplex.setParam(IloCplex::WorkDir ,"c:/cplex/");
        cplex.setParam(IloCplex::NodeFileInd ,2);

/Buxley

Upvotes: 2

Related Questions