Originally posted by: SystemAdmin
Hi
I'm implementing a column geneartion based algorithm as described in:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14939755� As described this requires that i have a large number of IloOplModel objects existing at the same time, which gives me a speed up, but it really eats memory. The flow for creating the objects is as:
var subOplArrays = new Array(numVessels);
var subCplexArrays = new Array(numVessels);
...
for(var ves in MasterDataElmts.Vessels) {
subCplexArrays[i] = new IloCplex();
subOplArrays[i] = new IloOplModel(subDef, subCplexArrays[i]);
...
subOplArrays[i].addDataSource(subData);
subOplArrays[i].generate();
subOplArrays[i].settings.mainEndEnabled = true;
subCplexArrays[i].epgap = subProblemGap;
MasterDataElmts.bunkerPlanUniqueId = MasterDataElmts.bunkerPlanUniqueId +1;
writeln("Model object created for vessel: "+i);
i++;
}
this setup restricts me to have at most 100 subproblems due to mem issues, as each model takes about 13 MB. And i'd really like to go much higher.
So my question, what can i do to reduce memery load ? I've tried to make sure that subData only holds the absolutely necessary, and i cant reduce the model it self more than ive done.
Looking forward to any hints!
Christian
#DecisionOptimization#OPLusingCPLEXOptimizer