Skip to content

Commit

Permalink
Fix: incorrect unless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
senhalil committed Oct 19, 2021
1 parent 5eb9da2 commit 10f71e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/wrapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,8 @@ def test_assert_inapplicable_relations
}]

vrp = TestHelper.create(problem)
assert_includes OptimizerWrapper.config[:services][:vroom].inapplicable_solve?(vrp),
:assert_no_overall_duration
assert_includes OptimizerWrapper.config[:services][:vroom].inapplicable_solve?(vrp),
:assert_no_relations_except_simple_shipments
refute_includes OptimizerWrapper.config[:services][:ortools].inapplicable_solve?(vrp),
Expand Down
1 change: 1 addition & 0 deletions wrappers/vroom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def solver_constraints
:assert_vehicles_no_late_multiplier_or_single_vehicle,
:assert_vehicles_no_overload_multiplier,
:assert_vehicles_start_or_end,
:assert_no_overall_duration,

# Mission constraints
:assert_no_activity_with_position,
Expand Down

0 comments on commit 10f71e2

Please sign in to comment.