Skip to content

Commit

Permalink
test: added more tests for other solvers to use full generator model …
Browse files Browse the repository at this point in the history
…rather than just small generator for macc
  • Loading branch information
vincepick committed Dec 19, 2024
1 parent 4f6e241 commit 9de03f5
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

# avoids having an error if directory already exists
mkdir -p "$AUTOIG/experiments/macc-graded"
cd "$AUTOIG/experiments/macc-graded"
echo "the variable is: "
ls
echo $AUTOIG
mkdir -p "$AUTOIG/experiments/macc-graded-gen"
cd "$AUTOIG/experiments/macc-graded-gen"
python3 "$AUTOIG/scripts/setup.py" --generatorModel "$AUTOIG/data/models/macc/generator.essence" --problemModel "$AUTOIG/data/models/macc/problem.mzn" --instanceSetting graded --minSolverTime 0 --maxSolverTime 5 --solver chuffed --solverFlags="-f" --maxEvaluations 180 --genSolverTimeLimit 3

bash "$AUTOIG/experiments/macc-graded/run.sh"
bash "$AUTOIG/experiments/macc-graded-gen/run.sh"
11 changes: 11 additions & 0 deletions scripts/testScripts/pr_tests/cpsat-maccGradedFullGen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# avoids having an error if directory already exists
echo "the variable is: "
ls
echo $AUTOIG
mkdir -p "$AUTOIG/experiments/macc-graded-gen"
cd "$AUTOIG/experiments/macc-graded-gen"
python3 "$AUTOIG/scripts/setup.py" --generatorModel "$AUTOIG/data/models/macc/generator.essence" --problemModel "$AUTOIG/data/models/macc/problem.mzn" --instanceSetting graded --minSolverTime 0 --maxSolverTime 5 --solver cpsat --solverFlags="-f" --maxEvaluations 180 --genSolverTimeLimit 3

bash "$AUTOIG/experiments/macc-graded-gen/run.sh"
11 changes: 11 additions & 0 deletions scripts/testScripts/pr_tests/gecode-maccGradedFullGen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# avoids having an error if directory already exists
echo "the variable is: "
ls
echo $AUTOIG
mkdir -p "$AUTOIG/experiments/macc-graded-gen"
cd "$AUTOIG/experiments/macc-graded-gen"
python3 "$AUTOIG/scripts/setup.py" --generatorModel "$AUTOIG/data/models/macc/generator.essence" --problemModel "$AUTOIG/data/models/macc/problem.mzn" --instanceSetting graded --minSolverTime 0 --maxSolverTime 5 --solver gecode --solverFlags="-f" --maxEvaluations 180 --genSolverTimeLimit 3

bash "$AUTOIG/experiments/macc-graded-gen/run.sh"
11 changes: 11 additions & 0 deletions scripts/testScripts/pr_tests/picat-maccGradedFullGen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# avoids having an error if directory already exists
echo "the variable is: "
ls
echo $AUTOIG
mkdir -p "$AUTOIG/experiments/macc-graded-gen"
cd "$AUTOIG/experiments/macc-graded-gen"
python3 "$AUTOIG/scripts/setup.py" --generatorModel "$AUTOIG/data/models/macc/generator.essence" --problemModel "$AUTOIG/data/models/macc/problem.mzn" --instanceSetting graded --minSolverTime 0 --maxSolverTime 5 --solver picat --solverFlags="-f" --maxEvaluations 180 --genSolverTimeLimit 3

bash "$AUTOIG/experiments/macc-graded-gen/run.sh"
11 changes: 11 additions & 0 deletions scripts/testScripts/pr_tests/yuck-maccGradedFullGen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# avoids having an error if directory already exists
echo "the variable is: "
ls
echo $AUTOIG
mkdir -p "$AUTOIG/experiments/macc-graded-gen"
cd "$AUTOIG/experiments/macc-graded-gen"
python3 "$AUTOIG/scripts/setup.py" --generatorModel "$AUTOIG/data/models/macc/generator.essence" --problemModel "$AUTOIG/data/models/macc/problem.mzn" --instanceSetting graded --minSolverTime 0 --maxSolverTime 5 --solver yuck --solverFlags="-f" --maxEvaluations 180 --genSolverTimeLimit 3

bash "$AUTOIG/experiments/macc-graded-gen/run.sh"

0 comments on commit 9de03f5

Please sign in to comment.