Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

CPX_PARAM_DETTILIM raising CPLEX Error 1013

  • 1.  CPX_PARAM_DETTILIM raising CPLEX Error 1013

    Posted 06/04/16 04:07 AM

    Originally posted by: Jernej1


    Hello,

     

    I am using CPLEX 12.6.3.0 within a C program. I need to set the deterministic time limit to 150000 ticks and hence I put the following code inside my program

     

     

       status = CPXsetintparam (env, CPX_PARAM_DETTILIM, 150000);

       if ( status ) { 
          fprintf (stderr, 
                   "Failure to set tick limit, error %d.\n", status);
           exit(1);
       } 

     

     

    Now, when I try to run the program I get the following response

     

    CPLEX Error  1013: Bad parameter number to CPLEX parameter routine.
    Failure to set tick limit, error 1013.

     

    Given this, I am wondering - what is the correct way to set the tick limit ? What am I missing with the above approach? 

     

    Best,

     

    J


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPX_PARAM_DETTILIM raising CPLEX Error 1013

    Posted 06/05/16 03:38 AM

    The type of the parameter is 'double', not 'int' (as can be seen here). Use CPXsetdblparam() instead.


    #CPLEXOptimizers
    #DecisionOptimization