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