#!/bin/bash -f export LD_LIBRARY_PATH=/opt/lipn/software/cplex102/bin/x86_rhel4.0_3.4 for i in `seq 0 1 5` ; do for strategie in \ Cliques_et_DualAscent_alternes \ ; do rm -rf data${i}_${strategie} mkdir data${i}_${strategie} pushd data${i}_${strategie} ../optimized/src/energyManagement \ -n data${i}.txt -r solution_${i} -t 1800 -strat ${strategie} > log_${i} for sol in `ls | grep "^solution_${i}"` ; do echo $sol java -jar ../checker.jar -d ../../data/data$i.txt -r $sol > resultat_checker_${sol} mv constraint_check.txt constraint_check_${sol}.txt done popd done done