@@ -1480,7 +1480,7 @@ def test_solve_unperforming_vrp_model_with_soft_upper_bound_limit(self):
14801480
14811481 routing_model .add_constant_dimension_with_slack (1 , 24 , 24 , False , "dim" )
14821482 dim = routing_model .get_dimension_or_die ("dim" )
1483- dim .set_soft_span_upper_bound_for_vehicle (8 , 1 , 0 )
1483+ dim .set_soft_span_upper_bound_for_vehicle (routing . BoundCost ( 8 , 1 ) , 0 )
14841484 dim .cumul_var (0 ).set_range (6 , 15 )
14851485 dim .cumul_var (1 ).set_range (7 , 7 )
14861486 dim .cumul_var (2 ).set_range (8 , 8 )
@@ -1514,7 +1514,7 @@ def test_solve_vrp_model_with_soft_upper_bound_limit(self):
15141514
15151515 routing_model .add_constant_dimension_with_slack (1 , 24 , 24 , False , "dim" )
15161516 dim = routing_model .get_dimension_or_die ("dim" )
1517- dim .set_soft_span_upper_bound_for_vehicle (8 , 2 , 0 )
1517+ dim .set_soft_span_upper_bound_for_vehicle (routing . BoundCost ( 8 , 2 ) , 0 )
15181518 dim .cumul_var (0 ).set_range (6 , 15 )
15191519 dim .cumul_var (1 ).set_range (7 , 7 )
15201520 dim .cumul_var (2 ).set_range (8 , 8 )
0 commit comments