Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IloComprehensionI

    Posted 02/04/15 10:14 AM

    Originally posted by: gargius


    Hallo,

    I have following problem. I use a .mod file with a .dat file to insert data. The solution process of the models are controlled by Java via oplall.jar. All worked fine until I changed the .mod file in some way. If I solve the model in the IBM ILOG Optimization Studio all works fine. But  over the Java programm the following error message occurs at the command "opl.generate()":

     

    *** ERROR[ENGINE_001] at 151:1-53 CPLEX_Models/contract period construction/Model_ContractPeriodConstruction_P1.mod: Ausnahme von IBM ILOG Concert: IloComprehensionI.

    *** ERROR[ENGINE_001]: Ausnahme von IBM ILOG Concert: IloComprehensionI.

    ### CONCERT exception: IloComprehensionI

    ilog.concert.IloException: IloComprehensionI

    at ilog.opl.opl_lang_wrapJNI.IloOplModel_getOuterModel(Native Method)

    at ilog.opl.IloOplModel.getOuterModel(IloOplModel.java:525)

    at ilog.opl.IloOplModel.generate(IloOplModel.java:130)

     

    Has somebody an idea what the problem is?

    Thanks in advance

     

     

    Best regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: IloComprehensionI

    Posted 02/05/15 04:04 AM

    Hi,

    can you try with  opl.settings. mainEndEnabled = false; with oplrun ?

    Can you attach your model and data ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: IloComprehensionI

    Posted 02/06/15 05:57 AM

    Originally posted by: gargius


    Hi,

    thank you for your answer.

    No, this does not help. In the .mod file he complains about following variable definition

    dvar boolean AtLeastOneChange[<k,a,w1,w2> in Stops];

    If I resort the definitions of the variables he complains about the same line (although there are other definitions of boolean variables). It is quite strange because the model works fine when I solve via the CPLEX Optimization Studio. But when I solve it via Java he complains at the command opl.generate. Before changing the model the commands were exactly the same (in Java and .mod and .dat file) and it worked.

     

    Thanks in advance

    Best regards

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: IloComprehensionI

    Posted 02/06/15 12:05 PM

    hi

    and if you write

    dvar boolean AtLeastOneChange[Stops];

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: IloComprehensionI

    Posted 02/07/15 11:20 AM

    Originally posted by: gargius


    Hi,

     

    thanks. Now the opl.generate command works fine.

    But now following error occurs at cplex.solve:

    ### CONCERT exception: IloAlgorithm cannot extract extractable
    ilog.concert.IloException: IloAlgorithm cannot extract extractable
        at ilog.concert.cppimpl.concert_wrapJNI.IloAlgorithm_extract(Native Method)
        at ilog.concert.cppimpl.IloAlgorithm.extract(IloAlgorithm.java:85)
        at ilog.cplex.IloCplex.extract(IloCplex.java:20355)
        at ilog.cplex.IloCplex.getExtractedCplexImpl(IloCplex.java:20362)
        at ilog.cplex.IloCplex.solve(IloCplex.java:11643)

     

    Again if I solve the model via CPLEX Optimization Studio it works fine.

    Is it possiple that a new version of oplall.jar changed is the reason?

     

    Thanks in advance

    Regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: IloComprehensionI

    Posted 02/08/15 06:16 AM

    Hi,

    again can you attach .mod and .dat ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: IloComprehensionI

    Posted 02/09/15 10:41 AM

    Originally posted by: gargius


    Hi,

    thanks.

    I useto send the .mod and .dat because .dat is with SQL queries and so I have to prepare it with some work.

    But now I solved the problem. It was quite easy:

    In Java I use the

    dataElements.addElement(dataElements.makeElement(....

    command to insert data into the model. I defined an integer in CPLEX but I insert a string for this integer via Java. Unfortunately the error message has given no hint for that.

     

    Thanks for your help

     

    Best regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer