Decision Optimization

Decision Optimization

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


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

    Posted 01/24/17 09:17 AM

    Originally posted by: Khaled Saeed


    Dear all, 

    I am trying to invoke the cplex tuning tool. Unfortunately, I always got this error

    Error using cplexlink1263
    (null)

    Error in Cplex/tuneParam (line 2326)

    Error in Cplex/subsref (line 3969)

     

    and this is the method i use to call the tuning tool 

    % Build model
    Cplex = Cplex('bus.lp');
    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;


    Cplex.writeModel('bus.lp')

    Cplex.Param.tune.display.Cur=2;

    Cplex.Param.tune.timelimit.Cur=50;
    Cplex.Param.tune.repeat.Cur=1;

    Cplex.tuneParam();

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: problem with cplex tuning tool

    Posted 02/02/17 01:30 AM

    Do you get a similar error if you invoke Cplex.solve() instead of Cplex.tuneParam()?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: problem with cplex tuning tool

    Posted 02/02/17 03:52 AM

    Originally posted by: Khaled Saeed


    @DanielJunglas 548c249b-bb6b-42f6-99b8-f0376c80829e thanks for your reply.
     No there is no errors and I can solve the model and get the results. 


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: problem with cplex tuning tool

    Posted 02/07/17 01:13 AM

    Originally posted by: Khaled Saeed


    Dear@DanielJunglas 548c249b-bb6b-42f6-99b8-f0376c80829e,

    I hope you have any useful guides to solve this problem. 


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: problem with cplex tuning tool

    Posted 02/21/17 10:48 AM

    I'm afraid you have hit on a bug in CPLEX matlab connector. Can you please try invoking the tuner like this:

       cplex.tuneParam({cplex.Param.read.datacheck,...
                        cplex.Param.workmem,...
                        cplex.Param.workdir});

    The parameters passed as parameters to the function are parameters that are not considered by the tuner. Here I pass parameters that the tuner does not consider anyway, so this does not change behavior of the tuner.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: problem with cplex tuning tool

    Posted 02/23/17 08:32 AM

    Originally posted by: Khaled Saeed


    Thanks for your reply.

    I have tried your suggestion and I guess the tuning tool works but later I got a Matlab error.
    I've attached the error and Matlab window in the photos.

    Also, I don't know but it might be useful information, I am using Matlab 2014a on Windows 10 Pro x64 and Cplex  12.6.3.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: problem with cplex tuning tool

    Posted 02/27/17 08:52 AM

    Yeah, there is another bug that causes this crash :-( It seems the tuning tool is not usable.

    You can use the tuning tool in the interactive optimizer instead. To do this, use Cplex.writeModel('model.sav.gz') to export the model to a file, then in the interactive optimizer do

    CPLEX> read model.sav.gz
    CPLEX> tune

    A little cumbersome but I'm afraid this is the only way to tune for your model.


    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: problem with cplex tuning tool

    Posted 04/27/17 06:56 AM

    Originally posted by: RWunderling


    The issue will be fixed in the next release.


    #CPLEXOptimizers
    #DecisionOptimization