Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Solution Pool

    Posted 06/05/15 10:14 AM

    Originally posted by: mikeab


    Hi,

     

    I have set the solution pool capacity to the following:

    cplex.solnpoolcapacity = 5;
    cplex.PopulateLim = 4 ;

     

    When CPLEX finishes the model, my Profiler part is blank. It seems like it dosent finish up the model until I choose a solution in the solution pool. 

    Is that right ?

    Also it seems like CPLEX doesnt free up the RAM and everything is still stored in the RAM.

    What should I do ?

     

    Thank


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Solution Pool

    Posted 06/08/15 09:14 AM

    Hi,

    can you post your model so that others could try ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Solution Pool

    Posted 06/08/15 09:16 AM

    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


  • 4.  Re: Solution Pool

    Posted 06/08/15 11:29 AM

    Hi,

    which CPLEX version do you use ?

    I tried with forum.mod and I see the profiler even when I change solution in the pool

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Solution Pool

    Posted 06/08/15 11:43 AM

    Originally posted by: mikeab


    Im using 12.6.0.0

    and my profiler is empty. I mean the Tab exists but it is empty like it is look like a white page with no tables and columns in it.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer