Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

getSolvedTime() isn't working

Archive User

Archive UserMon March 07, 2016 07:23 AM

ALEX FLEISCHER

ALEX FLEISCHERMon March 07, 2016 08:06 AM

ALEX FLEISCHER

ALEX FLEISCHERTue March 08, 2016 02:54 AM

Archive User

Archive UserTue March 08, 2016 03:19 AM

  • 1.  getSolvedTime() isn't working

    Posted Mon March 07, 2016 07:23 AM

    Originally posted by: Rym


    Hello

     

    when i execute IloCplex.getSolvedTime() to display solving time  it make me error message with Unknown variable  "getSolvedTime()" I use Cplex 12.5

     

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: getSolvedTime() isn't working

    Posted Mon March 07, 2016 08:06 AM

    Hi,

    do you use OPL here?

    If yes, try

    execute
    {
    writeln(cplex.getSolvedTime());
    }

    regards

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: getSolvedTime() isn't working

    Posted Mon March 07, 2016 08:13 AM

    Originally posted by: Rym


    Yes I use OPL but already an error message

    Unknown property 'getSolvedTime'.    

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: getSolvedTime() isn't working

    Posted Mon March 07, 2016 09:37 AM

    Hi,

    and what is the object you use ?

    Can you copy the line of the call ?

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: getSolvedTime() isn't working

    Posted Mon March 07, 2016 09:40 AM

    Originally posted by: Rym


    //the model/problem definition

    dvar boolean lumda[V][P];
    dexpr int O = sum( i in V, j in P) lumda[i][j];
    dexpr int OPerVMType[vtype in VMTypes]=sum( i in V, j in P:vms[i]==vtype) lumda[i][j];
    maximize O;

     

    Call: if ( masterCplex.solve() )      

     

    {

    writeln(masterCplex.getSolvedTime());

     

    }

     

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: getSolvedTime() isn't working

    Posted Tue March 08, 2016 02:54 AM

    Hi,

    indeed this

    getSolvedTime()

     

    was not available in 12.5

    The latest version is 12.6.3

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: getSolvedTime() isn't working

    Posted Tue March 08, 2016 03:19 AM

    Originally posted by: Rym


    Hello 

    Ah OK

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization