Decision Optimization

Decision Optimization

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

 View Only
  • 1.  internal error while executing main block

    Posted Fri August 17, 2012 02:43 PM

    Originally posted by: fragolka


    Hi.

    I am using the CP Optimizer to solve my scheduling model. I have 100 intances (100 .dat files named Instance001...Instance100) and I want to solve all of them and I have following main block:

    main {
    var iterace = 1;
    var out = new IloOplOutputFile("result.txt");
    var src = new IloOplModelSource("cvicne.mod");
    var def = new IloOplModelDefinition(src);
    var instance;
    for (var i=1; i<100; i++){
    var file= "Instance000";
    file = file.substring(0,9-iterace.toString().length)+iterace+".dat";
    var data = new IloOplDataSource(file);

    instance = new IloOplModel(def,cp);
    instance.addDataSource(data);
    instance.generate();

    var curr = 0;
    if ( cp.solve() ) {
    curr = cp.getObjValue();
    writeln();
    writeln("OBJECTIVE: ",curr);
    out.writeln(iterace,"\t", curr);
    }

    iterace++;
    data.end();
    }
    instance.end();
    def.end();
    src.end();
    out.close();
    }

    However, after solving several instances error occurs: Internal error (please notify ILOG).

    Does anybody know what it means?

    Thanks. Lucie
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: internal error while executing main block

    Posted Thu August 30, 2012 11:47 AM

    Originally posted by: DBRE


    Hi,

    I had a quick look at your code, and cannot see anything wrong.
    Does it always crash on the same dat file?
    Do you see any pb with the memory?

    Cheers,

    Dom
    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: internal error while executing main block

    Posted Thu August 30, 2012 03:49 PM

    Originally posted by: SystemAdmin


    What version of CPLEX Optimization Studio are you working with?
    Does the issue occur inside the IDE or with oplrun ?
    #CPOptimizer
    #DecisionOptimization


  • 4.  Re: internal error while executing main block

    Posted Wed September 05, 2012 05:28 AM

    Originally posted by: fragolka


    Thank you for replying.

    I can't see any problem with the memory. It doesn't always crash on the same dat file. It crashes maybe on 2 or 3 different files - sometimes it solves the dat file the solver crashed last time on.
    I am using Ilog stuido v. 6.1 and CP Optimizer v. 2.1. The error occurs while solving a scheduling problem (using scheduling functions - cummulFunction, overlap constrain etc.). I have completly rewrite the code, so I don't use the predefined scheduling function and the error hasn't occured since then. The .mod file is different, the .dat file is the same.

    I am dealing with another problem. I run an instance and it takes about 20 minutes to solve it normally. However, when I terminated it by abort after one minute, following status occurs: Terminated normally, optimal found (tol =0). Why is the solver running another 19 minutes to be terminated although the optimal solution has been found? The solution time is important for me and this disorts the results. Thank you for answer.
    #CPOptimizer
    #DecisionOptimization


  • 5.  Re: internal error while executing main block

    Posted Fri September 07, 2012 05:02 AM

    Originally posted by: rdumeur


    Dear fragolka,

    The version that you are using is now quite old. Wouldn't it be possible for you to switch to more recent version? IBM ILOG CPLEX Optimization Studio 12.4 (+ fix pack 12.4.0.1) is the most recent one and contains many fixes made since 2.1.

    Cheers,
    #CPOptimizer
    #DecisionOptimization


  • 6.  Re: internal error while executing main block

    Posted Mon October 01, 2012 12:22 PM

    Originally posted by: fragolka


    I have tried to run the same problem on the ILOG CPLEX Optimization Studio and the errors occurs no more... Thanks you for answering
    #CPOptimizer
    #DecisionOptimization