Skip to content
Snippets Groups Projects
Commit 41b31efb authored by Jaime Arias's avatar Jaime Arias
Browse files

fix: run optlp if sog file was generated before

parent 59de8e33
No related branches found
No related tags found
No related merge requests found
...@@ -81,11 +81,13 @@ function run_benchmark { ...@@ -81,11 +81,13 @@ function run_benchmark {
# run optlp # run optlp
sog_file="${output}/${instance_name}_sog.dot" sog_file="${output}/${instance_name}_sog.dot"
output_optlp_file="${output}/${instance_name}.optlp.txt" output_optlp_file="${output}/${instance_name}.optlp.txt"
if [[ -f "${output_optlp_file}" ]]; then if [[ ! -f "${output_optlp_file}" ]]; then
echo "running optlp (timeout ${timeout}): ${sog_file}" if [[ -f "${sog_file}" ]]; then
run_optlp "${sog_file}" "${output}" "${timeout}" >"${output_optlp_file}" echo "running optlp (timeout ${timeout}): ${sog_file}"
else run_optlp "${sog_file}" "${output}" "${timeout}" >"${output_optlp_file}"
echo "skipping optlp (sogMBT timeout)" else
echo "skipping optlp (sogMBT timeout)"
fi
fi fi
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment