Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX tunning tool

    Posted 01/13/14 02:29 PM

    Originally posted by: yokito


    Hello,

     

    I have coded a program in CPLEX for the knasack problem. I would like to ask you about how to use the tuning tool because I have read the manual and I do not have much idea. Do I have to include an instruction to the solver? Or before? Does the tuning tool print me which parameter I should use?
     

    void Solver::Solve(IloEnv& aEnv, IloModel& aMod)
    {

        IloCplex cplex(aMod);
        try {
            CreateVariables(aEnv,aMod);   
            CreateObjective(aEnv,aMod);
            CreateConstraints(aEnv,aMod);          
            cplex.exportModel("model.lp");
            cplex.setParam(IloCplex::TiLim, 7200);    // 2 horas de límite
            
        .....}

     

    Thank you in advance and sorry so many questions


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX tunning tool

    Posted 01/14/14 08:39 AM

    Originally posted by: yokito


     

    I forgot to write, that I am using "cplex.tuneParam()" before the cplex.solve();

    The issue is that I am trying to have a report or know how to display the parameters since I have to execute several instances of the problem and I would like to tune CPLEX once. Would be that possible?

    How do I queried or written to a file the tune report?

     

    Thanks in advance


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX tunning tool

    Posted 01/17/14 01:22 PM

    To get the result of tuning use IloCplex::getParameterSet(). The returned parameter set contains the best parameter settings found by the tuning tool (including the parameters you had fixed for tuning).

    Also look at the ilotuneset.cpp example shipped with CPLEX. This illustrates parameter tuning in Concert C++.


    #CPLEXOptimizers
    #DecisionOptimization