Decision Optimization

Expand all | Collapse all

Oplrun process is not responding, you must relaunch the Run Configuration

  • 1.  Oplrun process is not responding, you must relaunch the Run Configuration

    Posted Fri January 15, 2021 11:01 AM
    Hi all,

    I am trying to code the Benders Algorithm to solve the Fixed Charge Transportation Problem.
    The code runs fine the first iteration: I can solve the dual subproblem and then the master problem, but I get this error in the second iteration:
    Oplrun process is not responding, you must relaunch the Run Configuration

    I followed the advices here:
    Message "OplRun is not responding, you must relaunch the RunConfig" in OPL IDE

    and I am finding this error in the .log file.

    !ENTRY ilog.odms.ide.core 4 0 2021-01-15 17:44:57.276
    !MESSAGE Oplrun process is not responding, you must relaunch the Run Configuration.

    !ENTRY ilog.odms.ide.core 4 0 2021-01-15 17:44:59.808
    !MESSAGE Connection refused to host: 127.0.0.1; nested exception is:
    java.net.ConnectException: Connection refused: connect

    I am attaching the .mod files, .dat file required to reproduce the error, as well as the .log file.

    The files that goes to the Run Configuration are: BendersAlgorithm.mod and NetworkData.dat.

    Thanks in advance for any help.

    Juan



    ------------------------------
    Juan Esteban Calle Salazar
    ------------------------------

    Attachment(s)

    dat
    NetworkData.dat   626 B 1 version
    mod
    BendersAlgorithm.mod   8 KB 1 version
    log
    .log   183 KB 1 version


  • 2.  RE: Oplrun process is not responding, you must relaunch the Run Configuration

    Posted Fri January 15, 2021 11:34 AM
    This message generally indicates the the OPL process died for some reason.
    When it occurs, run the model with oplrun to check if this is the case.

    With your model, it is the case: oplrun crashes with any version of CPLEX.
    Browsing your model, I suspect there is some problem in the script code, dealing with the "yb" array.

    After commenting all .end() calls, the model runs fine which tends to confirm there is something bad in the workflow.

    ------------------------------
    Vincent Beraudier
    ------------------------------



  • 3.  RE: Oplrun process is not responding, you must relaunch the Run Configuration

    Posted Thu January 21, 2021 06:38 PM
      |   view attached
    Vincent,
    Thanks a lot for your guidance. The mistake was where you point me, I was not properly updating yb.

    Instead of writing:
    yb = relaxedMaster.y

    I had to write:
    for (i in Plants){
    for (j in Customers){
    yb[i][j]=relaxedMaster.y[i][j];
    }
    }

    I am attaching the updated version of the Benders Implementation, just in case it can be useful for somebody.



    ------------------------------
    Juan Esteban Calle Salazar
    ------------------------------

    Attachment(s)