Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  cplex tuning tool

    Posted 03/02/16 10:08 PM

    Originally posted by: Khaled Saeed


    Hello, 

    I have coded a MIP for transportation network problem in Matlab and i'm using Cplex as optimization solver. I'm  trying to implement Cplex tuning tool in my code but it doesn't work at all. 

    i'm trying to add the tuning setting to the options of cplex before solving.

    i want to ask if the method i am using below to invoke cplex tuning tool is right or not ? and what is the right way in case its wrong?

     

    ------- Part of my code ----------

    options.Display ='on';

    options.threads=0; 

    options.ExportModel='Tran.lp';

    options.emphasis.mip=1;                   

    options.tuning.timelimit=400;

    options.tune.display=2;       

    [x,fval,exitflag,output]=cplexmilp(S,G,b,Geq,beq,[],[],[],lb,ub,ctype,[],options);

    -------------------------------

    Thank you in advance.  


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: cplex tuning tool

    Posted 03/03/16 02:24 AM

    What you did is wrong. cplexmilp() just solves the problem that is passed in. The tuning parameters are simply ignored.

    The tuning tool is only exposed via the class API, not via toolbox functions, see the tuneParam function in the Cplex class.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: cplex tuning tool

    Posted 03/06/16 04:41 AM

    Originally posted by: Khaled Saeed


    Thanks a lot for your answer. I've updated the code as follow 

    % Build model
    cplex = Cplex('bus');
    cplex.Model.obj=S2;
    cplex.Model.sense='minimize';
    cplex.Model.lb=lb;
    cplex.Model.ub=ub;
    cplex.Model.ctype=ctype;
    cplex.Model.A=A;
    cplex.Model.rhs=rhs;
    cplex.Model.lhs =lhs;

     

    % Tuning the problem
    Cplex.Param.tune.display=2;
    Cplex.Param.tune.timelimit=50;

     

    % Optimize the problem
    cplex.solve();

     

    but still the tuning tool is not working. i'm not sure is this way is the correct one or not ?


    #CPLEXOptimizers
    #DecisionOptimization