fix examples/python/bazel; add time limit to example; remove jniutil; disable dump_vars_test on mac

This commit is contained in:
Laurent Perron
2023-01-28 12:38:26 +01:00
parent 4f19d707fd
commit 576fb3fca5
5 changed files with 6 additions and 78 deletions

View File

@@ -83,8 +83,6 @@ code_sample_py("vendor_scheduling_sat")
code_sample_py("wedding_optimal_chart_sat")
code_sample_py("weighted_latency_problem_sat")
code_sample_py("worker_schedule_sat")
code_sample_py("zebra_sat")

View File

@@ -33,9 +33,10 @@ from ortools.sat.python import cp_model
_OUTPUT_PROTO = flags.DEFINE_string(
'output_proto', '', 'Output file to write the cp_model proto to.')
_PARAMS = flags.DEFINE_string('params',
'num_search_workers:8,log_search_progress:true',
'Sat solver parameters.')
_PARAMS = flags.DEFINE_string(
'params',
'num_search_workers:16,log_search_progress:true,max_time_in_seconds:45',
'Sat solver parameters.')
_INSTANCE = flags.DEFINE_integer('instance', 1, 'Instance to select (1, 2, 3).',
1, 3)