#! /bin/bash
#
if ( test -f reid.sol ); then
  echo "Removing old copy of reid.sol"
  rm reid.sol
fi
#
#  Point to cplex.
#
export PATH="/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/:$PATH"
#
cplex < reid_cplex_input.txt > reid_cplex_output.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
#
rm *.log
#
echo "Normal end of execution."
