Skip to content

Commit 68be0ab

Browse files
committed
Update column generation
1 parent 3ce1296 commit 68be0ab

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

extern/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ endif()
4545
FetchContent_Declare(
4646
columngenerationsolver
4747
GIT_REPOSITORY https://github.com/fontanf/columngenerationsolver.git
48-
GIT_TAG 9c57300135f8d1ec2a44de4aeb53e0056d24f2f3
48+
GIT_TAG 1414cd0ca3185f301664c9e840aeda20a72e1844
4949
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../columngenerationsolver/"
5050
EXCLUDE_FROM_ALL)
5151
FetchContent_MakeAvailable(columngenerationsolver)

scripts/run_tests.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -79,32 +79,32 @@
7979
(os.path.join("chu1997", "d10100"), "orlibrary"),
8080
]
8181

82-
# if args.tests is None or "greedy" in args.tests:
83-
# print("Column generation heuristic greedy")
84-
# print("----------------------------------")
85-
# print()
82+
if args.tests is None or "greedy" in args.tests:
83+
print("Column generation heuristic greedy")
84+
print("----------------------------------")
85+
print()
8686

87-
# for instance, instance_format in column_generation_data:
88-
# instance_path = os.path.join(
89-
# data_dir,
90-
# instance)
91-
# json_output_path = os.path.join(
92-
# args.directory,
93-
# algorithm.replace("-", "_"),
94-
# instance + ".json")
95-
# if not os.path.exists(os.path.dirname(json_output_path)):
96-
# os.makedirs(os.path.dirname(json_output_path))
97-
# command = (
98-
# generalizedassignmentsolver_main
99-
# + " --verbosity-level 1"
100-
# + " --input \"" + instance_path + "\""
101-
# + " --format \"" + instance_format + "\""
102-
# + " --algorithm \"column-generation-heuristic-greedy\""
103-
# + " --output \"" + json_output_path + "\"")
104-
# print(command)
105-
# status = os.system(command)
106-
# if status != 0:
107-
# sys.exit(1)
108-
# print()
109-
# print()
110-
# print()
87+
for instance, instance_format in column_generation_data:
88+
instance_path = os.path.join(
89+
data_dir,
90+
instance)
91+
json_output_path = os.path.join(
92+
args.directory,
93+
algorithm.replace("-", "_"),
94+
instance + ".json")
95+
if not os.path.exists(os.path.dirname(json_output_path)):
96+
os.makedirs(os.path.dirname(json_output_path))
97+
command = (
98+
generalizedassignmentsolver_main
99+
+ " --verbosity-level 1"
100+
+ " --input \"" + instance_path + "\""
101+
+ " --format \"" + instance_format + "\""
102+
+ " --algorithm \"column-generation-heuristic-greedy\""
103+
+ " --output \"" + json_output_path + "\"")
104+
print(command)
105+
status = os.system(command)
106+
if status != 0:
107+
sys.exit(1)
108+
print()
109+
print()
110+
print()

0 commit comments

Comments
 (0)