Originally posted by: mikeab
here is the model:
main{
thisOplModel.generate();
cplex.solnpoolcapacity = 5;
cplex.PopulateLim = 4 ;
writeln("Pool Capacity = ", cplex.solnpoolcapacity );
writeln("Population Limit = ", cplex.populatelim );
cplex.rootalg = 0;
cplex.nodealg = 0;
cplex.mipsearch = 0;
cplex.solve();
if(cplex.populate()){
var nsolns = cplex.solnPoolNsolns;
var z = new Array();
var total_teams = 0 ;
var milage_slack = 0 ;
for(var s = 0 ; s < nsolns ; s++){
thisOplModel.setPoolSolution(s);
z[s] = thisOplModel.y.solutionValue;
//writeln("z[",s, "]===== ", z[s]);
milage_slack = thisOplModel.Milage_Balance_Slack.solutionValue;
writeln("milage_slack = ", milage_slack);
total_teams = thisOplModel.Total_Teams.solutionValue;
writeln("total_teams = ", total_teams);
thisOplModel.Sol.add(s, cplex.getObjValue(s), milage_slack, total_teams, z[s]);
}
}
thisOplModel.postProcess();
cplex.end();
}
#DecisionOptimization#OPLusingCPLEXOptimizer