Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Limit the iterations

    Posted Mon March 28, 2016 06:25 AM

    Originally posted by: NguyenHuuTRi


    Hi,

    Could you please help me the way to set the number of iterations as I would like to stop my model with the limited iterations due to time consumption. For your information, I solved my model by MIP in CPLEX

     

    Thanks very much.

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Limit the iterations

    Posted Mon March 28, 2016 04:15 PM

    Hi

    cplex.tilim=10;

    inside an execute block if you want cplex to stop after 10 seconds

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Limit the iterations

    Posted Mon March 28, 2016 08:06 PM

    Originally posted by: NguyenHuuTRi


    Hi,

    I am using the code you provided but after 10 seconds, CPLEX is still running. Could you please advise me the reason why it still run. Thanks.

     

    execute{
    cplex.tilim=10;
    }


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Limit the iterations

    Posted Tue March 29, 2016 02:05 AM

    Hi,

    can you attach your full model ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Limit the iterations

    Posted Tue March 29, 2016 03:15 AM

    Originally posted by: NguyenHuuTRi


     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Limit the iterations

    Posted Tue March 29, 2016 03:16 AM

    Originally posted by: NguyenHuuTRi


    Hi Alex,

     

    here it is. Thanks.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Limit the iterations

    Posted Tue March 29, 2016 03:21 AM

    Hi,

    in order to use your .ops file testsize.ops you should add it to your run configuration.

    Otherwise you may add

    execute{
    cplex.tilim=10;
    }

    in your .mod before the subject to block.

    Regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: Limit the iterations

    Posted Tue March 29, 2016 04:43 AM

    Originally posted by: NguyenHuuTRi


    Hi,

    I have tried to do what you suggested but it does not work at all.

    I wonder if there is any missing steps or setting.

     

    Thanks.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: Limit the iterations

    Posted Tue March 29, 2016 05:36 AM

    Hi,

    the 10s start when the solve starts.

    You seem to have a problem that takes some time at extraction and that is why after 10s you do not have any result.

    You should improve your model.

    Regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer