cmake: Disable line_balancing_sat.py
need input file
This commit is contained in:
@@ -4,6 +4,7 @@ endif()
|
||||
|
||||
file(GLOB PYTHON_SRCS "*.py")
|
||||
# Remove too long examples
|
||||
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/line_balancing_sat.py") # need input file
|
||||
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/arc_flow_cutting_stock_sat.py") # too long
|
||||
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/bus_driver_scheduling_sat.py") # too long
|
||||
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/cover_rectangle_sat.py") # too long
|
||||
|
||||
2
examples/python/line_balancing_sat.py
Normal file → Executable file
2
examples/python/line_balancing_sat.py
Normal file → Executable file
@@ -340,6 +340,8 @@ def solve_scheduling_model(model, hint):
|
||||
def main(argv: Sequence[str]) -> None:
|
||||
if len(argv) > 1:
|
||||
raise app.UsageError('Too many command-line arguments.')
|
||||
if FLAGS.input == '':
|
||||
raise app.UsageError('Missing input file.')
|
||||
|
||||
model = read_model(FLAGS.input)
|
||||
print_stats(model)
|
||||
|
||||
Reference in New Issue
Block a user