Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

qsub + cplex : how to submit an interactive solver to the grid

  • 1.  qsub + cplex : how to submit an interactive solver to the grid

    Posted 07/14/10 12:40 AM

    Originally posted by: SystemAdmin


    I want to solve a LP problem through interactive optimizer and I want submit this job through qsub to a grid.

    I have not known how to redirect a command from a file to cplex instead of typing it; so I can not submit this job to the grid.

    And there is a way to obtain a file name from the command line of the qsub and transfer this file name to cplex as its input instead of fixing it in the script?

    Thanks for your explanation.

    Lessi
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: qsub + cplex : how to submit an interactive solver to the grid

    Posted 07/14/10 06:17 AM

    Originally posted by: SystemAdmin


    Is it possible to run a shell script (that then calls CPLEX) through qsub?

    For example: "qsub bash -- runcplex.sh mymodel.lp" with 'runcplex.sh' being the following:

    #!/bin/bash
     
    cplex <<EOF
    set log $1.log
    read $1
    opt
    disp sol qual
    write $1.sol
    EOF
    


    We never added the option to directly provide a model file name as parameter to the CPLEX interactive, because this piping of input commands always worked for every situation that we encountered so far. If this does not work for qsub, we may change this and add support for command line parameters.

    Tobias
    #CPLEXOptimizers
    #DecisionOptimization