Loading papers/01_genobs_discrepancy_paper_2026/run_minimal.shdeleted 100644 → 0 +0 −6 Original line number Diff line number Diff line #!/bin/bash . sbatch run_soar_comparison.sh -J "min_lin" -o "./min_l.log" -e "min_l.err" "minimal" "linear" 100 "sampling" . sbatch run_soar_comparison.sh -J "min_bl" -o "./min_bl.log" -e "min_bl.err" "minimal" "bilinear" 1200 "sampling" testing/run_minimal.ps1 0 → 100644 +2 −0 Original line number Diff line number Diff line $TESTFOLDER="..\papers\01_genobs_discrepancy_paper_2026" python run_soar_comparison.py --sysname="minimal" --objective="bilinear" --problemtype=200 --layoutsampling="all" --reddeficit --testfolder=$TESTFOLDER No newline at end of file testing/run_soar_comparison.py +10 −2 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ def test_compare_methods( test_layouts = "sampling", overwrite=False, verbose=0, test_folder=None, ): """ Docstring for test_compare_methods Loading @@ -58,7 +59,9 @@ def test_compare_methods( """ # make results folder if it doesn't exist if test_folder is None: test_folder = os.path.dirname(os.path.abspath(__file__)) results_folder = os.path.join(test_folder, "test_results") if not os.path.exists(results_folder): os.mkdir(results_folder) Loading Loading @@ -107,7 +110,7 @@ def test_compare_methods( results = [i for i in range(maxSensWord)] case "pareto": # load pareto optimal layouts exist, run and save if they don't results_path = os.path.join("pareto_fronts", f"{system}_{soarObj}_{soarCriteria}_pareto_front.pkl") results_path = os.path.join(test_folder, "pareto_fronts", f"{system}_{soarObj}_{soarCriteria}_pareto_front.pkl") if os.path.exists(results_path): with open(results_path, "rb") as f: results = pickle.load(f) Loading Loading @@ -359,6 +362,10 @@ if __name__ == "__main__": parser.add_argument( '--overwrite', action='store_true', help='overwrite existing pickle file' ) parser.add_argument( '--testfolder', type=str, help='path to save results', default="./" ) # run_soar_comparison.py --sysname="pilot" # 3. Parse the arguments from the command line args = parser.parse_args() Loading @@ -373,6 +380,7 @@ if __name__ == "__main__": test_layouts=args.layoutsampling, overwrite=args.overwrite, verbose=0, test_folder=args.testfolder, ) t2 = time.time() Loading Loading
papers/01_genobs_discrepancy_paper_2026/run_minimal.shdeleted 100644 → 0 +0 −6 Original line number Diff line number Diff line #!/bin/bash . sbatch run_soar_comparison.sh -J "min_lin" -o "./min_l.log" -e "min_l.err" "minimal" "linear" 100 "sampling" . sbatch run_soar_comparison.sh -J "min_bl" -o "./min_bl.log" -e "min_bl.err" "minimal" "bilinear" 1200 "sampling"
testing/run_minimal.ps1 0 → 100644 +2 −0 Original line number Diff line number Diff line $TESTFOLDER="..\papers\01_genobs_discrepancy_paper_2026" python run_soar_comparison.py --sysname="minimal" --objective="bilinear" --problemtype=200 --layoutsampling="all" --reddeficit --testfolder=$TESTFOLDER No newline at end of file
testing/run_soar_comparison.py +10 −2 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ def test_compare_methods( test_layouts = "sampling", overwrite=False, verbose=0, test_folder=None, ): """ Docstring for test_compare_methods Loading @@ -58,7 +59,9 @@ def test_compare_methods( """ # make results folder if it doesn't exist if test_folder is None: test_folder = os.path.dirname(os.path.abspath(__file__)) results_folder = os.path.join(test_folder, "test_results") if not os.path.exists(results_folder): os.mkdir(results_folder) Loading Loading @@ -107,7 +110,7 @@ def test_compare_methods( results = [i for i in range(maxSensWord)] case "pareto": # load pareto optimal layouts exist, run and save if they don't results_path = os.path.join("pareto_fronts", f"{system}_{soarObj}_{soarCriteria}_pareto_front.pkl") results_path = os.path.join(test_folder, "pareto_fronts", f"{system}_{soarObj}_{soarCriteria}_pareto_front.pkl") if os.path.exists(results_path): with open(results_path, "rb") as f: results = pickle.load(f) Loading Loading @@ -359,6 +362,10 @@ if __name__ == "__main__": parser.add_argument( '--overwrite', action='store_true', help='overwrite existing pickle file' ) parser.add_argument( '--testfolder', type=str, help='path to save results', default="./" ) # run_soar_comparison.py --sysname="pilot" # 3. Parse the arguments from the command line args = parser.parse_args() Loading @@ -373,6 +380,7 @@ if __name__ == "__main__": test_layouts=args.layoutsampling, overwrite=args.overwrite, verbose=0, test_folder=args.testfolder, ) t2 = time.time() Loading